/*
Theme Name: Amped
Theme URI: https://the-amped.com
Author: Amped Magazine
Description: Modern editorial music magazine theme.
Version: 3.1.0
License: GNU General Public License v2 or later
Text Domain: amped
*/

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f5f3;
  --text: #111111;
  --text-muted: #777777;
  --accent: #ff003c;
  --accent-neon: #ff2d55;
  --border: rgba(255,255,255,0.08);
  --border-light: #e0e0e0;
  --radius: 0px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', -apple-system, sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

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

.site-branding .site-title { margin: 0; }

.site-title a {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Nav */
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-navigation a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.main-navigation a:hover {
  color: var(--white);
}

.main-navigation .current-menu-item a,
.main-navigation .current-cat a {
  color: var(--accent);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
}

.lang-switcher ul { display: flex; gap: 2px; }

.lang-switcher a {
  display: block;
  padding: 0.25rem 0.35rem;
  font-weight: 600;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  transition: color var(--transition);
}

.lang-switcher a:hover { color: var(--white); }
.lang-switcher .current-lang a { color: var(--accent); }

/* Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   CINEMATIC HERO
   ============================================ */
.cinematic-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cinematic-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg,
    #0a0a0a, #1a0a1e, #0a0a2e, #1e0a0a,
    #0a1a1e, #1a0a2e, #0a0a0a);
  background-size: 600% 600%;
  animation: gradientFlow 20s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 25%; }
  50% { background-position: 50% 100%; }
  75% { background-position: 25% 0%; }
  100% { background-position: 0% 50%; }
}

.cinematic-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.cinematic-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.cinematic-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 12rem);
  letter-spacing: 12px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  position: relative;
  animation: logoReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cinematic-logo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  animation: lineExpand 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    letter-spacing: 30px;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    letter-spacing: 12px;
    filter: blur(0);
  }
}

@keyframes lineExpand {
  from { width: 0; opacity: 0; }
  to { width: 60px; opacity: 1; }
}

.cinematic-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: var(--white);
  margin-top: 2.5rem;
  letter-spacing: 2px;
  animation: fadeInUp 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cinematic-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: rgba(255,255,255,0.3);
  margin-top: 1.25rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Scroll indicator */
.cinematic-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================
   HERO — SPLIT LAYOUT
   ============================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  background: var(--black);
}

.hero-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-main:hover .hero-main-image {
  transform: scale(1.04);
}

.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.hero-category {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--black);
  background: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  max-width: 550px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-title a { color: var(--white); }
.hero-title a:hover { opacity: 0.8; }

.hero-meta {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  font-weight: 400;
}

.hero-sidebar {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.hero-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-left: 1px solid var(--border);
}

.hero-card:first-child {
  border-bottom: 1px solid var(--border);
}

.hero-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-card-image {
  transform: scale(1.05);
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.hero-card-cat {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--black);
  background: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-card-title {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: var(--white);
  line-height: 1.25;
}

.hero-card-title a { color: var(--white); }

/* Hero placeholder */
.hero-placeholder-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.hero-placeholder-wrap::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,0,60,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-placeholder-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  position: relative;
  text-shadow: 0 0 80px rgba(255,0,60,0.3);
}

.hero-placeholder-sub {
  color: rgba(255,255,255,0.5);
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 10px;
  text-transform: uppercase;
  margin-top: 1.5rem;
  position: relative;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent);
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* ============================================
   SECTION — DARK
   ============================================ */
.section-dark {
  background: var(--black);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
}

.hero-section + .section-dark::before,
.hero-section + .container + .section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1400px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 80%, transparent);
}

.section-dark .section-title { color: var(--white); }
.section-dark .post-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
}
.section-dark .post-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.section-dark .post-card-title { color: var(--white); }
.section-dark .post-card-title a:hover { color: var(--accent); }
.section-dark .post-card-excerpt { color: rgba(255,255,255,0.5); }
.section-dark .post-card-meta { color: rgba(255,255,255,0.35); }

/* ============================================
   SECTION — LIGHT
   ============================================ */
.section-light {
  background: var(--off-white);
  color: var(--text);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  padding-left: 1.25rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.section-more {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity var(--transition);
}

.section-more:hover { opacity: 0.6; }

/* ============================================
   POST CARDS
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
}

.post-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #1a1a1a;
}

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

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

.post-card-image .category-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.25rem 0.7rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--black);
  background: var(--accent);
}

.post-card-content {
  padding: 1.25rem 0.75rem;
}

.section-dark .post-card-content {
  padding: 1.25rem 0.75rem;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-card-title a { transition: color var(--transition); }
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-size: 0.72rem;
  color: #aaa;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.post-card-meta .post-card-author {
  font-weight: 600;
}

.no-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  position: relative;
}

.no-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,0,60,0.08) 0%, transparent 70%);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-header-wrap {
  background: var(--black);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

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

.single-category {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--black);
  background: var(--accent);
  margin-bottom: 1.5rem;
}

.single-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.single-meta {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.single-meta span { margin: 0 0.5rem; }

.single-body {
  background: var(--off-white);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.single-featured-image {
  max-width: 960px;
  margin: -3rem auto 3rem;
  position: relative;
  z-index: 1;
}

.single-featured-image img { width: 100%; height: auto; }

.single-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
  color: #333;
}

.single-content p { margin-bottom: 1.75rem; }
.single-content h2 { margin: 3rem 0 1.25rem; }
.single-content h3 { margin: 2.5rem 0 1rem; }

.single-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  background: var(--white);
  font-size: 1.15rem;
  color: #444;
}

.single-content img { margin: 2rem auto; }

.single-content ul, .single-content ol {
  margin: 1.25rem 0 1.75rem 2rem;
  list-style: disc;
}

.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 0.5rem; }

.post-tags {
  max-width: 720px;
  margin: 2.5rem auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tags a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.post-tags a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.related-posts {
  background: var(--black);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.related-posts .section-title { color: var(--white); }

.related-posts .post-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
}

.related-posts .post-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.related-posts .post-card-title { color: var(--white); }
.related-posts .post-card-meta { color: rgba(255,255,255,0.35); }

/* ============================================
   SIDEBAR (for archive/search)
   ============================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.widget li:last-child { border-bottom: none; }
.widget a { transition: color var(--transition); }
.widget a:hover { color: var(--accent); }

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
  text-align: center;
  padding: 1rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   ARCHIVE
   ============================================ */
.archive-header {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--black);
  color: var(--white);
}

.archive-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
}

.archive-description {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.4);
  max-width: 600px;
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.4);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-title { margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-section h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
}

.footer-section a {
  color: rgba(255,255,255,0.35);
  display: block;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-section a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 1px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin: 3rem 0;
}

.pagination a, .pagination span {
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.pagination .current {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

/* ============================================
   CATEGORY COLORS
   ============================================ */
.cat-pop { background: #ff003c; }
.cat-classical { background: #c9a227; }
.cat-jazz { background: #5856d6; }
.cat-rock { background: #ff6b35; }
.cat-electronic { background: #af52de; }
.cat-hiphop { background: #30d158; }
.cat-rnb { background: #ff375f; }
.cat-world { background: #0a84ff; }
.cat-uncategorized { background: #555; }

/* ============================================
   404
   ============================================ */
.error-404-wrap {
  background: var(--black);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404 {
  text-align: center;
}

.error-404 h1 {
  font-size: clamp(6rem, 15vw, 12rem);
  color: var(--accent);
  letter-spacing: -6px;
  line-height: 1;
}

.error-404 p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
}

.error-404 .back-home {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.8rem 2.5rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.error-404 .back-home:hover { opacity: 0.8; }

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

.post-card { animation: fadeUp 0.6s ease both; }
.posts-grid .post-card:nth-child(1) { animation-delay: 0s; }
.posts-grid .post-card:nth-child(2) { animation-delay: 0.1s; }
.posts-grid .post-card:nth-child(3) { animation-delay: 0.2s; }
.posts-grid .post-card:nth-child(4) { animation-delay: 0.1s; }
.posts-grid .post-card:nth-child(5) { animation-delay: 0.2s; }
.posts-grid .post-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-main { min-height: 50vh; }

  .hero-sidebar {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }

  .hero-card { border-left: none; border-top: 1px solid var(--border); }
  .hero-card:first-child { border-bottom: none; border-right: 1px solid var(--border); }

  .posts-grid { grid-template-columns: repeat(2, 1fr); }

  .content-with-sidebar { grid-template-columns: 1fr; }

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

@media (max-width: 768px) {
  /* Cinematic Hero mobile */
  .cinematic-hero { height: 100svh; }
  .cinematic-logo { letter-spacing: 6px; }
  .cinematic-logo::after { width: 40px; }
  .cinematic-tagline { margin-top: 2rem; letter-spacing: 1px; }
  .cinematic-sub { letter-spacing: 2px; }
  .cinematic-scroll { bottom: 2rem; }
  .scroll-line { height: 30px; }

  @keyframes logoReveal {
    from { opacity: 0; letter-spacing: 16px; filter: blur(8px); }
    to { opacity: 1; letter-spacing: 6px; filter: blur(0); }
  }

  /* Header */
  .header-inner {
    flex-wrap: wrap;
    height: 50px;
  }

  .site-title a { font-size: 1.3rem; letter-spacing: 3px; }

  .menu-toggle { display: block; order: 3; }

  .main-navigation {
    display: none;
    width: 100%;
    order: 10;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
  }

  .main-navigation.active { display: block; }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .lang-switcher {
    order: 2;
    margin-left: auto;
    margin-right: 0.25rem;
    border-left: none;
    padding-left: 0;
  }

  .header-right {
    display: contents;
  }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-main {
    min-height: 45vh;
    max-height: 360px;
  }

  .hero-main-overlay {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .hero-category {
    padding: 0.2rem 0.7rem;
    font-size: 0.6rem;
    margin-bottom: 0.75rem;
  }

  .hero-meta { font-size: 0.75rem; }

  .hero-sidebar {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: 180px;
  }

  .hero-card {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .hero-card:first-child {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .hero-card-overlay { padding: 1rem; }

  .hero-card-cat {
    font-size: 0.5rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.35rem;
  }

  .hero-card-title { font-size: 0.85rem; }

  /* Sections */
  .section-dark, .section-light {
    padding: 2rem 0;
  }

  .section-header { margin-bottom: 1.5rem; }
  .section-title { font-size: 0.75rem; letter-spacing: 2px; }

  /* Cards — 2 column on mobile */
  .posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .post-card-image { aspect-ratio: 1 / 1; }

  .post-card-content { padding: 0.75rem 0.5rem; }

  .post-card-title { font-size: 0.85rem; margin-bottom: 0.25rem; }

  .post-card-excerpt { display: none; }

  .post-card-meta { font-size: 0.65rem; }

  .post-card-image .category-badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.5rem;
    letter-spacing: 1px;
  }

  /* Single */
  .single-post-header { padding: 2.5rem 0 1.5rem; }
  .single-title { font-size: 1.6rem; }
  .single-content { font-size: 1rem; line-height: 1.75; padding: 0 0.5rem; }
  .single-featured-image { margin: -1.5rem auto 2rem; }

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

  /* Footer */
  .site-footer { padding: 2.5rem 0 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
  .footer-brand p { font-size: 0.8rem; }
  .footer-section h4 { font-size: 0.65rem; margin-bottom: 0.75rem; }

  /* Archive */
  .archive-header { padding: 2.5rem 0 2rem; }
  .archive-title { font-size: 1.8rem; }
}

/* Small phones */
@media (max-width: 374px) {
  .hero-main { max-height: 300px; }
  .hero-sidebar { height: 150px; }
  .hero-title { font-size: 1.3rem; }
  .hero-card-title { font-size: 0.75rem; }
  .post-card-title { font-size: 0.78rem; }
  .site-title a { font-size: 1.1rem; }
}
