/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9952a;
  --gold-light: #e8b84b;
  --gold-pale: #fdf6e3;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --mid: #555;
  --light: #f8f6f2;
  --white: #ffffff;
  --border: #e8e3d8;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 6px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: rgba(201,149,42,0.12);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== OVERLAY ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}
.overlay.show { display: block; }

/* ===== HERO ===== */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,149,42,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(201,149,42,0.10) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,149,42,0.2);
  border: 1px solid rgba(201,149,42,0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,149,42,0.4); }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
}

.section-title em { font-style: italic; color: var(--gold); }

.section-sub {
  color: var(--mid);
  margin-top: 12px;
  font-size: 0.95rem;
}

/* ===== CATEGORIES GRID ===== */
.categories-section { padding: 80px 0; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

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

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

.cat-img-wrap { overflow: hidden; }

.cat-body { padding: 24px; }

.cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.cat-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cat-desc { font-size: 0.88rem; color: var(--mid); line-height: 1.6; }

.cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--mid);
}

.cat-arrow { color: var(--gold); font-size: 1.1rem; }

/* ===== ARTICLES GRID ===== */
.articles-section { padding: 80px 0; background: var(--white); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

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

.article-img-wrap { overflow: hidden; height: 220px; }

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-img { transform: scale(1.06); }

.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.article-cat {
  background: var(--gold-pale);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.article-date { color: var(--mid); }
.article-read { color: var(--mid); }

.article-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--dark);
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
}

.article-link::after { content: '→'; transition: transform var(--transition); }
.article-card:hover .article-link::after { transform: translateX(4px); }

/* ===== FEATURED ARTICLE ===== */
.featured-section { padding: 80px 0; }

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.featured-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.15); }

.featured-img-wrap { overflow: hidden; }

.featured-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-img { transform: scale(1.04); }

.featured-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.featured-badge::before { content: '★'; }

.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-excerpt {
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

.featured-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 28px;
}

/* ===== SINGLE ARTICLE ===== */
.article-page { padding: 60px 0 80px; }

.article-page-inner { max-width: 780px; margin: 0 auto; }

.article-page-header { margin-bottom: 40px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

.article-page-cat {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.article-page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}

.article-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.83rem;
  color: var(--mid);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-page-meta span { display: flex; align-items: center; gap: 6px; }

.article-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 32px 0;
}

.article-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #333;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark);
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin: 32px 0 12px;
}

.article-content p { margin-bottom: 20px; }

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.article-content ol { list-style: decimal; }

.article-content strong { color: var(--dark); font-weight: 600; }

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark2);
}

.article-content .tip-box {
  background: linear-gradient(135deg, #fdf6e3, #fef9ec);
  border: 1px solid #f0d895;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.article-content .tip-box h4 {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== CATEGORY PAGE ===== */
.category-page { padding: 0 0 80px; }

.category-hero {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,149,42,0.2) 0%, transparent 70%);
}

.category-hero-content { position: relative; z-index: 1; }

.category-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  margin-top: 8px;
}

.category-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  margin: 8px 0 12px;
}

.category-desc { color: rgba(255,255,255,0.7); max-width: 560px; font-size: 1rem; }

/* ===== TAGS / PILLS ===== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

.tag {
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--mid);
  cursor: pointer;
  transition: all var(--transition);
}

.tag:hover, .tag.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ===== RELATED ARTICLES ===== */
.related-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }

.related-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--dark);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== STATS BAR ===== */
.stats-bar { background: var(--gold); padding: 40px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.85); font-weight: 500; margin-top: 4px; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  padding: 80px 0;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.newsletter-sub { color: rgba(255,255,255,0.65); margin-bottom: 32px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: var(--gold); }

/* ===== BACK BUTTON ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 32px;
  transition: color var(--transition);
  cursor: pointer;
}

.back-btn:hover { color: var(--gold); }
.back-btn::before { content: '←'; }

/* ===== LOADING ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  flex-direction: column;
  gap: 16px;
  color: var(--mid);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NOT FOUND ===== */
.not-found {
  text-align: center;
  padding: 100px 24px;
}

.not-found-code {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo { margin-bottom: 16px; }

.footer-desc { font-size: 0.88rem; line-height: 1.7; max-width: 300px; }

.footer-title {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark2);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 4px;
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link { width: 100%; padding: 12px 16px; }

  .hamburger { display: flex; }

  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 260px; }
  .featured-body { padding: 32px 24px; }

  .articles-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .article-hero-img { height: 280px; }

  .newsletter-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.8rem; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  z-index: 300;
  background: var(--dark, #1a1a1a);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(201,149,42,0.35);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner a { color: var(--gold, #c9952a); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.cookie-banner .btn-outline {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-actions { justify-content: center; }
}
