/* ============================================
   TEEN PATTI GUIDE - PREMIUM GAMING THEME
   Mobile-First | SEO-Optimized | Fast Loading
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #08080d;
  --bg-secondary: #0f0f18;
  --card: #14141f;
  --card-hover: #1a1a28;
  --border: #1e1e30;
  --border-light: #2a2a40;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --gold-dark: #a07810;
  --gold-glow: rgba(212, 160, 23, 0.15);
  --red: #c0392b;
  --red-light: #e74c3c;
  --green: #27ae60;
  --text: #e8e6e3;
  --text-secondary: #b0aeb8;
  --text-muted: #6a6880;
  --heading: #f5f3f0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 30px rgba(212,160,23,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; color: inherit; }
button { cursor: pointer; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
strong { color: var(--heading); font-weight: 600; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.gold-text { color: var(--gold); }
.red-text { color: var(--red-light); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,23,0.3); }
  50% { box-shadow: 0 0 20px 5px rgba(212,160,23,0.1); }
}
@keyframes cardDeal {
  0% { opacity: 0; transform: translateY(-60px) rotate(-10deg) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}
.animate-in { animation: fadeInUp 0.6s ease-out forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: var(--gold-glow);
}
.nav-search {
  position: relative;
  display: none;
}
.nav-search input {
  width: 220px;
  padding: 8px 14px 8px 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.nav-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.nav-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 13, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px 20px;
  overflow-y: auto;
}
.mobile-menu.active { display: block; animation: fadeIn 0.3s ease; }
.mobile-menu .mobile-search {
  margin-bottom: 24px;
}
.mobile-menu .mobile-search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
}
.mobile-menu .mobile-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.mobile-menu .mobile-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.mobile-menu nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-menu nav a:hover { color: var(--gold); padding-left: 8px; }
.mobile-menu .mobile-cats { margin-top: 24px; }
.mobile-menu .mobile-cats h4 {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.mobile-menu .mobile-cats a {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.mobile-menu .mobile-cats a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-search { display: block; }
  .nav-hamburger { display: none; }
}
@media (min-width: 1024px) {
  .nav-search input { width: 260px; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '♠ ♥ ♦ ♣';
  position: absolute;
  top: 20%;
  right: 5%;
  font-size: 8rem;
  color: rgba(212,160,23,0.04);
  font-family: 'Space Grotesk', sans-serif;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-glow);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease forwards;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-gold 2s infinite;
}
.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}
.hero-stat .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card decoration on hero right */
.hero-cards {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
.hero-card {
  width: 100px;
  height: 140px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow);
}
.hero-card:nth-child(1) { transform: rotate(-15deg) translateX(-40px); animation: cardDeal 0.8s ease 0.5s forwards; opacity: 0; }
.hero-card:nth-child(2) { transform: rotate(-5deg) translateX(0px); animation: cardDeal 0.8s ease 0.7s forwards; opacity: 0; }
.hero-card:nth-child(3) { transform: rotate(5deg) translateX(40px); animation: cardDeal 0.8s ease 0.9s forwards; opacity: 0; }
.hero-card .red { color: var(--red-light); }
.hero-card .black { color: var(--text); }

@media (min-width: 1024px) {
  .hero-cards { display: block; }
  .hero { min-height: 80vh; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  box-shadow: 0 4px 20px rgba(212,160,23,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,160,23,0.35);
  color: #000;
}
.btn-secondary {
  background: var(--card);
  border: 1px solid var(--border-light);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* --- Section --- */
.section {
  padding: 60px 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 0; }
.section-header .section-link {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}

/* --- Article Cards --- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.article-card .card-image {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .card-image img { transform: scale(1.05); }
.article-card .card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(8,8,13,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.article-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article-card .card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-title a { color: var(--heading); }
.article-card .card-title a:hover { color: var(--gold); }
.article-card .card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}
.article-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-card .card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.article-card .card-author .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
}
.article-card .read-more {
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Featured card (larger) */
.featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .featured-card { grid-template-columns: 1fr 1fr; }
}
.featured-card .card-image { aspect-ratio: auto; min-height: 280px; }
@media (min-width: 768px) { .featured-card .card-image { min-height: 100%; } }
.featured-card .card-body { padding: 28px; justify-content: center; }
.featured-card .card-title { font-size: 1.4rem; -webkit-line-clamp: 3; }
@media (min-width: 768px) { .featured-card .card-title { font-size: 1.6rem; } }

/* --- Category Cards --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }

.category-card {
  position: relative;
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.category-card:hover::before { opacity: 1; }
.category-card .cat-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}
.category-card .cat-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 6px;
}
.category-card .cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Trending Keywords --- */
.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}
.tag .tag-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 100px;
}

/* --- FAQ Section --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-light); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Newsletter --- */
.newsletter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter h2 { margin-bottom: 12px; position: relative; }
.newsletter p { color: var(--text-secondary); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; position: relative; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}
.newsletter-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 14px;
}
.footer-about p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--gold); }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: '›'; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--text-secondary); }

/* --- Blog Article Page --- */
.article-header {
  padding: 40px 0 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.article-header .article-category {
  display: inline-block;
  padding: 5px 16px;
  background: var(--gold-glow);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 16px;
}
.article-header h1 {
  margin-bottom: 16px;
  line-height: 1.2;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 1fr 300px; }
  .article-sidebar { order: 2; }
  .article-main { order: 1; }
}

/* Table of Contents */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}
.toc h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 14px;
}
.toc ol { counter-reset: toc; }
.toc li {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.toc li:last-child { border-bottom: none; }
.toc li::before {
  content: counter(toc) ".";
  color: var(--gold);
  font-weight: 600;
  margin-right: 8px;
  font-size: 0.82rem;
}
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--gold); }

/* Article Content */
.article-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
@media (min-width: 768px) { .article-content { padding: 36px 40px; } }

.article-content h2 {
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1.5rem;
}
.article-content h3 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
}
.article-content p { margin-bottom: 16px; line-height: 1.85; }
.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.article-content strong { color: var(--heading); }
.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--gold-light); }

/* Tips Box */
.tip-box {
  background: rgba(212,160,23,0.06);
  border: 1px solid rgba(212,160,23,0.2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.tip-box .tip-label {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Warning Box */
.warning-box {
  background: rgba(192,57,43,0.06);
  border: 1px solid rgba(192,57,43,0.2);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.warning-box .warning-label {
  font-weight: 700;
  color: var(--red-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Pros Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons .pros, .pros-cons .cons {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.pros-cons .pros h4 { color: var(--green); margin-bottom: 12px; font-size: 0.95rem; }
.pros-cons .cons h4 { color: var(--red-light); margin-bottom: 12px; font-size: 0.95rem; }
.pros-cons li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  list-style: none;
}
.pros-cons .pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.pros-cons .cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--red-light);
  font-weight: 700;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 32px;
}
.author-box .author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #000;
  font-weight: 700;
  flex-shrink: 0;
}
.author-box .author-name {
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.author-box .author-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.social-share span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

/* Sidebar */
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget .related-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.sidebar-widget .related-link:last-child { border-bottom: none; }
.sidebar-widget .related-link:hover { color: var(--gold); }
.sidebar-widget .related-link .rl-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.8rem;
  flex-shrink: 0;
  width: 20px;
}

/* Related Posts Grid */
.related-posts {
  margin-top: 48px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .related-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Static Pages (About, Contact, Privacy, Disclaimer) --- */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
}
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.page-content h2 {
  margin: 32px 0 12px;
  font-size: 1.4rem;
}
.page-content p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}
.page-content ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style: disc;
}
.page-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Contact Form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: var(--red); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  color: #000;
  font-weight: 700;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* --- Placeholder images --- */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card) 50%, var(--bg-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* --- Category Page Header --- */
.category-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.category-header .cat-breadcrumb { margin-bottom: 16px; }
.category-header h1 { margin-bottom: 10px; }
.category-header p { color: var(--text-secondary); max-width: 600px; }

/* --- Loading / Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--card) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================
   DOWNLOAD BUTTON STYLES
   ============================================ */

/* Card Download Button */
.card-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.01em;
}
.card-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,160,23,0.35);
  color: #000;
}
.card-download-btn i {
  font-size: 0.95rem;
}

/* Article Page Download CTA */
.download-cta {
  background: linear-gradient(135deg, rgba(212,160,23,0.08) 0%, rgba(212,160,23,0.03) 100%);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.download-cta::after {
  content: '♠';
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 4rem;
  color: rgba(212,160,23,0.06);
  font-family: 'Space Grotesk', sans-serif;
  pointer-events: none;
}

.download-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.download-cta-text h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--heading);
}
.download-cta-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.download-cta-text strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(212,160,23,0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}
.btn-download:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(212,160,23,0.45);
  color: #000;
}
.btn-download i {
  font-size: 1.15rem;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.download-cta-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.download-cta-note i {
  color: var(--green);
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 640px) {
  .download-cta-content {
    flex-direction: column;
    text-align: center;
  }
  .btn-download {
    width: 100%;
    justify-content: center;
  }
  .download-cta-note {
    justify-content: center;
  }
}

/* Sticky Download Bar (appears after scrolling past CTA) */
.sticky-download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(8, 8, 13, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s ease;
}
.sticky-download-bar.visible {
  transform: translateY(0);
  opacity: 1;
}
.sticky-download-bar .sticky-bonus {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
}
.sticky-download-bar .sticky-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.sticky-download-bar .btn-sticky-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.sticky-download-bar .btn-sticky-download:hover {
  box-shadow: 0 4px 16px rgba(212,160,23,0.3);
  color: #000;
}

/* Hide back-to-top when sticky bar is visible */
.sticky-download-bar.visible ~ .back-to-top {
  bottom: 70px;
}