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

:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --bg-nav: rgba(15,15,15,0.95);
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --text: #e5e5e5;
  --text-muted: #9ca3af;
  --text-heading: #f5f5f5;
  --border: #2a2a2a;
  --radius: 12px;
  --max-w: 1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* === Navigation === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .accent { color: var(--amber); }

.nav-links { display: flex; gap: 8px; list-style: none; }

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--amber);
  background: rgba(245,158,11,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === Hero === */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, transparent 60%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
  line-height: 1.2;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #000;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--amber-light);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.25);
}

/* === Section Headers === */
.section { padding: 64px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
}

.section-title .accent { color: var(--amber); }

.section-link {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === Category Cards === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

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

/* === Article Cards Grid === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

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

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card-tag {
  background: rgba(245,158,11,0.12);
  color: var(--amber);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card h3 a { color: var(--text-heading); }
.article-card h3 a:hover { color: var(--amber); }

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.article-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === Article Page === */
.article-page { padding: 100px 0 64px; }

.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 28px 0 12px;
}

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

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

.article-content li {
  margin-bottom: 8px;
  color: var(--text);
}

.article-content strong { color: var(--text-heading); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.back-link:hover { color: var(--amber); }

/* === Category Page === */
.category-page { padding: 100px 0 64px; }

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

.category-page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.category-page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* === Footer === */
.footer {
  margin-top: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* === Mobile === */
@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

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

  .hero { padding: 120px 20px 60px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
