/* 
  style.css - Central stylesheet for Log Post Games website
*/

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #181a1b;
  --bg-header: #1c1f22;
  --bg-card: #232629;
  --text-main: #f2f2f6;
  --text-muted: #bcbcbc;
  --brand-red: #c1121f;
  --brand-red-bg: #2e2122;
  --brand-blue: #669bbc;
  --brand-orange: #eb5e28;
  --brand-orange-bg: #2d2220;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --radius: 8px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --font-main: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg-header);
  box-shadow: var(--shadow);
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.logo {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

nav a.active,
nav a[aria-current="page"] {
  color: var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
}

nav a:hover {
  color: var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
}

/* Styled regular text link like nav */
.styled-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.styled-link:hover,
.styled-link:focus {
  color: var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
  text-decoration: none;
}

/* Page wrapper */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px 48px 24px;
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px;
  }
  .main-content {
    padding: 96px 8px 32px 8px;
  }
  nav ul {
    gap: 1rem;
  }
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 0 36px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  z-index: 1;
}
.hero-parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('images/your-parallax-image.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.45;
  pointer-events: none;
  transition: background-position 0.3s;
}
.hero > *:not(.hero-parallax-bg) {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 600px;
}
.cta-btn {
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(193,18,31,0.15);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #a00e19;
  transform: translateY(-2px) scale(1.03);
}

/* Section titles & dividers */
.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand-red);
  margin-top: 48px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border-left: 4px solid var(--brand-red);
  padding-left: 12px;
}
.divider {
  width: 42px;
  height: 3px;
  background: var(--brand-red);
  margin: 18px 0 28px 0;
  border-radius: 2px;
  opacity: 0.7;
}

/* Cards & grid layouts */
.cards-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Unified card and game card styles, responsive and classic padding restored */
.card,
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  width: 100%;
  max-width: 350px;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Card image cover (with aspect ratio for responsiveness) */
.card-image-cover,
.game-card .card-image-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #25282b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 8px 8px 0 0;
}

.card-image-cover .cover-img,
.game-card .cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-bottom: 2px solid var(--brand-red);
  border-radius: 8px 8px 0 0;
}

/* News tag badge for top-left of image */
.news-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-red, #c1121f);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 18px;
  box-shadow: 0 2px 8px #0002;
  z-index: 3;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}

.card-title,
.game-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 18px 0 10px 0;
  color: var(--brand-red);
  padding: 0 24px;
}

.card-desc,
.game-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
  padding: 0 24px;
}

/* More Info Button: keep at bottom on desktop/mobile, align with text */
.card .more-info-btn,
.game-card-content .more-info-btn {
  margin-top: auto;
  margin-left: 24px; /* align with card-title and card-desc */
  margin-bottom: 18px; /* restore bottom space */
  align-self: flex-start;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 26px;
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(193,18,31,0.10);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}
.card .more-info-btn:hover,
.game-card-content .more-info-btn:hover,
.card .more-info-btn:focus,
.game-card-content .more-info-btn:focus {
  background: #a00e19;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 900px) {
  .cards-row {
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .card,
  .game-card {
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
    margin-left: 0;
    height: auto;
  }
  .card-image-cover,
  .game-card .card-image-cover {
    aspect-ratio: 16 / 9;
    min-height: 120px;
    max-height: 220px;
    border-radius: 8px 8px 0 0;
  }
  .card-title,
  .game-title,
  .card-desc,
  .game-desc {
    padding-left: 14px;
    padding-right: 14px;
  }
  .card .more-info-btn,
  .game-card-content .more-info-btn {
    margin-left: 14px;
    margin-bottom: 12px;
  }
}

/* Games grid (games.html) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* News/blog listing (news.html) */
.blog-list {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-post {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  padding: 20px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-title-link {
  color: var(--brand-red);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-decoration: none;
  transition: color var(--transition);
  word-break: break-word;
}

.blog-title-link:hover,
.blog-title-link:focus {
  color: #fff;
  text-decoration: underline;
}

.blog-date {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-snippet {
  color: var(--text-main);
  font-size: 1rem;
}

/* News/blog sidebar always full height of main content area */
.news-layout {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  min-height: 60vh;
}

.sidebar {
  width: 240px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  padding: 22px 18px 16px 18px;
  font-size: 1rem;
  margin-top: 8px;
  flex-shrink: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  color: var(--brand-red);
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.sidebar-list {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
}

.sidebar-list li {
  margin-bottom: 6px;
}

.sidebar-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.97rem;
}

.sidebar-link:hover,
.sidebar-link:focus,
.tag-link.active {
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--bg-header);
  color: var(--text-muted);
  text-align: center;
  padding: 30px 0 18px 0;
  margin-top: 64px;
  border-top: 2px solid #232629;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}

.social-icon {
  color: var(--text-muted);
  font-size: 1.6rem;
  transition: color var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.social-icon:hover,
.social-icon:focus {
  color: var(--brand-red);
  transform: translateY(-2px) scale(1.07);
}

footer small {
  font-size: 0.94rem;
}

/* Utility classes */
.sr-only {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .news-layout {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .sidebar {
    width: 100%;
    margin-bottom: 16px;
    height: auto;
  }
}

/* --- Visual Contact CTA Page Styles --- */
.visual-contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.visual-contact-header {
  text-align: center;
  margin-bottom: 14px;
}
.visual-contact-header h1 {
  color: var(--brand-red);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.visual-contact-header p {
  color: var(--text-muted);
  font-size: 1.14rem;
  margin-top: 0;
}
.contact-card-row {
  display: flex;
  gap: 2.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-card {
  flex: 1 1 320px;
  max-width: 420px;
  min-width: 260px;
  background: var(--bg-card);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 18px #0002;
  padding: 32px 24px 24px 24px;
  position: relative;
  overflow: hidden;
  border: 2.5px solid transparent;
  transition: border-color 0.18s;
}
.contact-card.support {
  border-color: var(--brand-red);
  box-shadow: 0 2px 18px #c1121f22;
}
.contact-card.playtest {
  border-color: var(--brand-orange);
  box-shadow: 0 2px 18px #eb5e2822;
}
.contact-card-image {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  margin-bottom: 24px;
  background: var(--brand-red-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  color: var(--brand-red);
  box-shadow: 0 2px 8px #0002;
}
.contact-card.playtest .contact-card-image {
  color: var(--brand-orange);
  background: var(--brand-orange-bg);
}
.contact-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--brand-red);
  letter-spacing: 0.5px;
}
.contact-card.playtest .contact-card-title {
  color: var(--brand-orange);
}
.contact-card-desc {
  color: var(--text-main);
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 20px;
  min-height: 48px;
  line-height: 1.6;
}
.contact-card-email {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red-bg);
  color: var(--brand-red);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 2px;
  margin-bottom: 12px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s;
  border: 1.5px solid var(--brand-red);
  box-shadow: 0 1px 6px #c1121f11;
}
.contact-card-email:hover, .contact-card-email:focus {
  background: var(--brand-red);
  color: #fff;
}
.contact-card.playtest .contact-card-email {
  background: var(--brand-orange-bg);
  color: var(--brand-orange);
  border-color: var(--brand-orange);
  box-shadow: 0 1px 6px #eb5e2822;
}
.contact-card.playtest .contact-card-email:hover,
.contact-card.playtest .contact-card-email:focus {
  background: var(--brand-orange);
  color: #181a1b;
}
@media (max-width: 900px) {
  .visual-contact-wrapper { gap: 18px; }
  .contact-card-row { flex-direction: column; gap: 1.7rem; align-items: center; }
}
/* About Us page specific */
.about-section {
  margin-bottom: 44px;
}

.about-title {
  font-size: 1.5rem;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 18px;
  border-left: 4px solid var(--brand-red);
  padding-left: 12px;
  letter-spacing: 0.5px;
}

.about-lead-row {
  display: flex;
  gap: 38px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.about-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px #0002;
  background: #232629;
  margin-bottom: 4px;
}

.about-bio {
  flex: 1 1 250px;
  min-width: 220px;
  color: var(--text-main);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.core-values-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 8px;
}

.core-value-card {
  background: #232629;
  border-radius: 14px;
  box-shadow: 0 2px 8px #0002;
  padding: 24px 22px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 370px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.core-value-title {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.core-value-desc {
  color: var(--text-main);
  font-size: 1.01rem;
}

.about-vision {
  background: #181a1b;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 1.08rem;
  color: var(--text-main);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px #0002;
}

@media (max-width: 800px) {
  .about-lead-row, .core-values-list {
    flex-direction: column;
    gap: 18px;
  }
  .core-value-card { max-width: 100%; }
}
