@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121e;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --gold-dark: #8a6d14;
  --blue-deep: #0f3460;
  --blue-mid: #16213e;
  --red-accent: #c0392b;
  --red-light: #e74c3c;
  --text-primary: #e8e6e3;
  --text-secondary: #a09b94;
  --text-muted: #6b6560;
  --border-color: #2a2a3e;
  --border-gold: rgba(201, 162, 39, 0.3);
  --shadow-gold: 0 0 20px rgba(201, 162, 39, 0.15);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 18px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  line-height: 1.3;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(201, 162, 39, 0.4);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.site-logo span {
  color: var(--red-accent);
}

.header-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.header-nav a:hover {
  color: var(--gold);
}

.header-nav a:hover::after {
  width: 100%;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-drop-trigger {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  cursor: pointer;
}

.nav-drop-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-drop-trigger:hover {
  color: var(--gold);
}

.nav-drop-trigger:hover::after {
  width: 100%;
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow-dark);
  z-index: 1001;
  padding: 0.5rem 0;
}

.nav-dropdown:hover .nav-drop-menu {
  display: block;
}

.nav-drop-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-drop-menu a:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.nav-drop-menu a::after {
  display: none;
}

/* ===== SEARCH BAR ===== */
.search-container {
  position: relative;
  width: 320px;
}

.search-bar {
  width: 100%;
  padding: 0.6rem 2.8rem 0.6rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.search-bar:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.2);
}

.search-bar::placeholder {
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold-dark);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--gold);
}

.search-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--bg-primary);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-dark);
  z-index: 100;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.search-result-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== SCROLLING FAQ BANNER ===== */
.scrolling-banner {
  background: linear-gradient(90deg, var(--blue-deep), var(--bg-secondary), var(--blue-deep));
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
}

.scrolling-banner::before,
.scrolling-banner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.scrolling-banner::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary), transparent);
}

.scrolling-banner::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-secondary), transparent);
}

.banner-track {
  display: flex;
  animation: scrollBanner 80s linear infinite;
  width: max-content;
}

.banner-track:hover {
  animation-play-state: paused;
}

@keyframes scrollBanner {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.banner-item {
  flex-shrink: 0;
  padding: 0.4rem 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border-right: 1px solid rgba(201, 162, 39, 0.15);
}

.banner-item:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.banner-item .q-icon {
  color: var(--gold);
  margin-right: 0.4rem;
  font-weight: 700;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero_bg.jpg') center/cover no-repeat;
  filter: brightness(0.45) saturate(1.1);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 18, 0.5) 0%,
    rgba(10, 10, 18, 0.2) 35%,
    rgba(10, 10, 18, 0.45) 70%,
    rgba(10, 10, 18, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.5rem 1.5rem;
  border-radius: 24px;
  margin-bottom: 1.8rem;
  animation: fadeInDown 0.8s ease;
  background: rgba(10, 10, 18, 0.5);
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(201, 162, 39, 0.15);
  letter-spacing: 2px;
}

.hero h1 .highlight {
  color: var(--red-accent);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #d0cdc8;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.6s both;
  flex-wrap: wrap;
}

.hero-meta-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #c9c4bc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-meta-item strong {
  color: var(--gold-light);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.8s both;
  border: none;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
  color: var(--bg-primary);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red-accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.category-count {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-top: 0.8rem;
}

/* ===== GUIDE GRID ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.guide-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.guide-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.guide-card:hover .guide-card-img {
  transform: scale(1.05);
}

.guide-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.guide-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bg-primary);
  background: var(--gold);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
}

.guide-card-body {
  padding: 1.5rem;
}

.guide-card-body h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.guide-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.guide-card-footer span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.read-more-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== GUIDE DETAIL VIEW ===== */
.guide-detail {
  display: none;
  padding-top: 90px;
  min-height: 100vh;
}

.guide-detail.active {
  display: block;
}

.guide-detail-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.guide-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 2rem;
  transition: var(--transition);
  background: none;
  border: none;
}

.guide-back-btn:hover {
  color: var(--gold);
}

.guide-detail-header {
  margin-bottom: 2.5rem;
}

.guide-detail-header .tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.guide-detail-header h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.guide-detail-header .meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.guide-detail-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.guide-detail-content {
  font-size: 1.1rem;
  line-height: 1.85;
}

.guide-detail-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.guide-detail-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  color: var(--gold-light);
}

.guide-detail-content p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

.guide-detail-content ul,
.guide-detail-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.guide-detail-content li {
  margin-bottom: 0.5rem;
}

.guide-detail-content strong {
  color: var(--gold-light);
}

.guide-detail-content .tip-box {
  background: rgba(201, 162, 39, 0.08);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.guide-detail-content .tip-box p {
  color: var(--text-primary);
  margin-bottom: 0;
}

.guide-detail-content .warn-box {
  background: rgba(192, 57, 43, 0.08);
  border-left: 3px solid var(--red-accent);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.guide-detail-content .warn-box p {
  color: var(--text-primary);
  margin-bottom: 0;
}

.guide-detail-content .content-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.guide-detail-content .img-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.guide-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.guide-related h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.related-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.related-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.related-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== GAME INFO SECTION ===== */
.game-info {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 2rem;
}

.game-info-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.game-info-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.game-info-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.game-info-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.info-table {
  width: 100%;
  margin-top: 1.5rem;
}

.info-table tr {
  border-bottom: 1px solid var(--border-color);
}

.info-table td {
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.info-table td:first-child {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--gold);
  width: 140px;
  font-size: 0.85rem;
}

.info-table td:last-child {
  color: var(--text-secondary);
}

/* ===== ABOUT & CONTACT ===== */
.about-section {
  background: var(--bg-secondary);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border-color);
}

.about-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-text h2,
.contact-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p,
.contact-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-text ul {
  list-style: none;
  margin-top: 1rem;
}

.contact-text li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-text li strong {
  color: var(--gold-light);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .game-info-inner {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-container {
    width: 200px;
  }

  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-meta {
    gap: 1rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .guide-detail-header h1 {
    font-size: 1.8rem;
  }

  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .search-page-header {
    flex-wrap: wrap;
  }

  .section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .site-logo {
    font-size: 1rem;
  }

  .search-container {
    width: 150px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ===== VIDEO EMBED ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== COUNTDOWN ===== */
.countdown-bar {
  background: linear-gradient(90deg, var(--red-accent), var(--gold-dark));
  padding: 0.8rem 2rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

.countdown-bar strong {
  font-size: 1.1rem;
}

/* ===== SEARCH RESULTS PAGE ===== */
.search-page {
  display: none;
  padding-top: 90px;
  min-height: 100vh;
  background: var(--bg-primary);
}

.search-page.active {
  display: block;
}

.search-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.search-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.search-page-header h2 {
  font-size: 1.6rem;
  color: var(--gold);
}

.search-query-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 600;
}

.search-result-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.search-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.search-result-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.search-result-card-img-wrap {
  overflow: hidden;
  position: relative;
  height: 180px;
}

.search-result-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.search-result-card:hover .search-result-card-img {
  transform: scale(1.05);
}

.search-result-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bg-primary);
  background: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.search-result-card-body {
  padding: 1.3rem;
}

.search-result-card-body h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-family: 'Cinzel', serif;
}

.search-result-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-color);
}

.search-result-card-footer span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.search-relevance-bar {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.search-relevance-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 2px;
  transition: width 0.3s ease;
}
