/* === AI TrendWave — Dark Theme with Matransition SBI === */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d1a;
  --bg-card: #111128;
  --bg-card-hover: #16163a;
  --accent-primary: #f59e0b;
  --accent-secondary: #f97316;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #888;
  --text-dim: #444;
  --border: #1a1a35;
  --border-glow: rgba(245, 158, 11, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* === Scroll Reveal === */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === Custom Cursor === */
.cursor-dot, .cursor-ring {
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-primary);
  opacity: 0.8;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent-primary);
  opacity: 0.3;
  transition: all 0.08s ease-out;
}
.cursor-ring.hover { width: 48px; height: 48px; opacity: 0.6; background: var(--accent-glow); }

/* === Loading Screen === */
#loader {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
#loader .spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#loader .progress-text {
  margin-top: 16px;
  font-size: 14px; color: var(--text-muted);
  font-family: var(--font-mono);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Particle Canvas === */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* === Navbar === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled { background: rgba(10, 10, 15, 0.95); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent-primary);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

/* === Hero Section === */
.hero {
  position: relative; z-index: 1;
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero .stats {
  display: flex; gap: 48px; flex-wrap: wrap; justify-content: center;
  margin-top: 16px;
}
.hero .stat-item { text-align: center; }
.hero .stat-number {
  font-size: 2rem; font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}
.hero .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* === Text Split Hero === */
.text-split { display: inline-block; }
.text-split .word {
  display: inline-block; overflow: hidden;
  opacity: 0; transform: translateY(40px);
  animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.text-split .word:nth-child(1) { animation-delay: 0.1s; }
.text-split .word:nth-child(2) { animation-delay: 0.2s; }
.text-split .word:nth-child(3) { animation-delay: 0.3s; }
.text-split .word:nth-child(4) { animation-delay: 0.4s; }
.text-split .word:nth-child(5) { animation-delay: 0.5s; }
.text-split .word:nth-child(6) { animation-delay: 0.6s; }
.text-split .word:nth-child(7) { animation-delay: 0.7s; }
.text-split .word:nth-child(8) { animation-delay: 0.8s; }
.text-split .word:nth-child(9) { animation-delay: 0.9s; }
.text-split .word:nth-child(10) { animation-delay: 1.0s; }
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* === Magnetic Button === */
.magnetic-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #000;
  border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.magnetic-btn:hover { box-shadow: 0 0 30px var(--accent-glow); }

/* === Container === */
.container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
}

/* === Section === */
.section {
  position: relative; z-index: 1;
  padding: 60px 0;
}
.section-title {
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 48px; height: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

/* === Article Grid === */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* === Article Card === */
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}
.article-card .card-image {
  width: 100%; height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-secondary));
}
.article-card .card-body { padding: 20px; }
.article-card .card-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-glow);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.article-card .card-title {
  font-size: 1.1rem; font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 12px;
}
.article-card .card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 12px;
}
.article-card .card-read-time {
  display: flex; align-items: center; gap: 4px;
}

/* === Article Page === */
.article-page {
  position: relative; z-index: 1;
  max-width: 800px; margin: 100px auto 60px;
  padding: 0 24px;
}
.article-page .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.3s;
}
.article-page .back-link:hover { color: var(--accent-primary); }
.article-page .article-header { margin-bottom: 32px; }
.article-page .article-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-page .article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 24px;
}
.article-page .article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-page .article-content p {
  margin-bottom: 1.2em;
}
.article-page .article-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5em 0 0.6em;
}
.article-page .article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.2em 0 0.5em;
}
.article-page .article-content ul, .article-page .article-content ol {
  padding-left: 24px; margin-bottom: 1.2em;
}
.article-page .article-content li { margin-bottom: 0.4em; }
.article-page .article-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-page .article-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 12px 20px; margin: 1.2em 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* === Trending Tags Bar === */
.trending-bar {
    position: relative; z-index: 1;
    padding: 14px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.trending-inner {
    display: flex; align-items: center; gap: 16px;
}
.trending-label {
    font-size: 11px; font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 1.5px;
    white-space: nowrap;
    text-transform: uppercase;
}
.trending-tags {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.trending-tag {
    padding: 4px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px; font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
}
.trending-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}

/* === Showcase Section === */
.showcase-section {
    position: relative; z-index: 1;
    padding: 48px 0;
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* === Large Article Card === */
.article-card-large {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
}
.article-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}
.article-card-large .card-image {
    width: 100%; height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-secondary));
    overflow: hidden;
    position: relative;
}
.article-card-large .card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card-large:hover .card-image img {
    transform: scale(1.08);
}
.article-card-large .card-body { padding: 22px; }
.article-card-large .card-title {
    font-size: 1.15rem; font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* === Latest Featured === */
.latest-featured {
    margin-bottom: 24px;
}
.latest-featured .article-card-large .card-image {
    height: 260px;
}
.latest-featured .article-card-large {
    max-width: 100%;
}

/* === Category Page === */
.category-page {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 100px auto 60px;
  padding: 0 24px;
}
.category-page .category-title {
  font-size: 2rem; font-weight: 800;
  margin-bottom: 8px;
}
.category-page .category-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* === Search (simple) === */
.search-bar {
  position: relative; z-index: 1;
  max-width: 600px; margin: -24px auto 40px;
  padding: 0 24px;
}
.search-bar input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}
.search-bar input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}
.search-bar input::placeholder { color: var(--text-dim); }

/* === Toast === */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9997;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .toast-icon { margin-right: 8px; }

/* === Input Underline === */
.input-underline {
  position: relative;
}
.input-underline input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}
.input-underline input:focus { border-bottom-color: var(--accent-primary); }
.input-underline::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}
.input-underline:focus-within::after { width: 100%; }

/* === Breadcrumbs === */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumbs a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover { color: var(--accent-secondary); }
.breadcrumbs .sep { color: var(--text-secondary); margin: 0 4px; }
.breadcrumbs span { color: var(--text-primary); }

/* === Related Articles === */
.related-articles {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.related-articles:hover { border-color: var(--accent-glow); }
.related-articles h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--accent-primary);
}
.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-articles li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.related-articles li:last-child { border-bottom: none; }
.related-articles a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}
.related-articles a:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

/* === Newsletter Section === */
.newsletter {
  position: relative; z-index: 1;
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.newsletter p { color: var(--text-secondary); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; justify-content: center; flex-wrap: wrap; }

/* === Article Card Images === */
.article-card .card-image {
    height: 180px;
    background: var(--bg-card-hover);
    overflow: hidden;
    position: relative;
}
.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover .card-image img {
    transform: scale(1.08);
}

/* === Featured Article Image === */
.article-featured-image {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 0 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-featured-image:hover img {
    transform: scale(1.02);
}
@media (max-width: 768px) {
    .article-featured-image {
        max-height: 250px;
        border-radius: 12px;
    }
    .article-featured-image img {
        max-height: 250px;
    }
}

/* Image fallback when Unsplash fails */
.article-featured-image .img-fallback-placeholder,
.card-image .img-fb {
    display: none;
    position: absolute; inset: 0;
    align-items: center; justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-secondary));
    border-radius: inherit;
}
.card-image .img-fb { font-size: 3rem; }
.article-featured-image.img-fallback .img-fallback-placeholder { display: flex; }
.card-image.img-fallback .img-fb { display: flex; }
.fallback-ai-news, .fb-ai-news { background: linear-gradient(135deg, #0d1b2a, #1b2838) !important; }
.fallback-tech-guides, .fb-tech-guides { background: linear-gradient(135deg, #1a0a2e, #16213e) !important; }
.fallback-remote-income, .fb-remote-income { background: linear-gradient(135deg, #0a2e1a, #1a3a2e) !important; }

/* === Footer === */
footer {
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 12px; color: var(--text-muted);
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent-primary); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* === Skeleton Loading === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 3D Tilt Cards (JS will use this) === */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* === Responsive === */
@media (max-width: 768px) {
  .article-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero .stats { gap: 24px; }
  .newsletter-form { flex-direction: column; align-items: center; }
  
  /* Hamburger menu */
  .hamburger {
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
    padding: 4px; z-index: 1001; gap: 5px;
  }
  .hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .nav-links {
    position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
    background: var(--bg-primary); flex-direction: column;
    padding: 80px 24px 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 30px rgba(0,0,0,0.3); z-index: 1000; gap: 4px;
  }
  .nav-links.active { right: 0; }
  .nav-links a {
    font-size: 1.1rem; padding: 12px 16px; border-radius: 12px;
    display: block;
  }
  .nav-links a:hover { background: var(--bg-card-hover); }
  
  .hero { padding: 60px 16px; }
  .hero h1 { font-size: 1.6rem; }
  .article-page { padding: 0 16px; margin-top: 80px; }
  .article-page .article-title { font-size: 1.4rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .article-categories { grid-template-columns: 1fr; }
  .particle-canvas { display: none; }
  .counters { grid-template-columns: 1fr 1fr; gap: 12px; }
  .counter-value { font-size: 1.6rem; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 100px 32px; }
  .hero h1 { font-size: 2.4rem; }
  .featured-card { min-height: 300px; }
  .featured-image img { height: 300px; }
  .featured-title { font-size: 1.4rem; }
}

/* Desktop: 3 columns for wide screens */
@media (min-width: 1025px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small phones */
@media (max-width: 480px) {
  .article-grid { grid-template-columns: 1fr; gap: 12px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 12px; }
  .nav-logo { font-size: 1rem; }
  .section-title { font-size: 1.3rem; }
  .article-card .card-content { padding: 14px; }
  .article-card .card-title { font-size: 1rem; }
  .hero h1 { font-size: 1.4rem; }
  .category-header h1 { font-size: 1.4rem; }
  .featured-card { min-height: 280px; }
  .featured-title { font-size: 1.2rem; }
  .article-card-large .card-image { height: 160px; }
  .trending-tags { gap: 6px; }
  .trending-tag { font-size: 10px; padding: 3px 10px; }
}

/* === Featured Card === */
.featured-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 360px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: var(--accent-primary);
}
.featured-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}
.featured-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover .featured-image img {
  transform: scale(1.05);
}
.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 40%);
  color: #fff;
}
.featured-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-primary);
  color: #000;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.featured-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}
.featured-excerpt {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 12px;
  max-width: 640px;
}
.featured-meta {
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  gap: 16px;
}

/* Latest section gap */
.latest-section {
  padding-top: 40px;
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger { display: none; }
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; }
  .nav-links { transition: none; }
}
/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .nav-links { transition: none; }
  .fade-in { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
