/*
Theme Name: LubozStudios
Theme URI: https://lubozstudios.com
Author: LubozStudios
Description: Tema oscuro premium para LubozStudios con estética Luboz.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: lubozstudios
*/

/* ==========================================
   IMPORTS & VARIABLES
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Titillium+Web:wght@300;400;600&display=swap');

:root {
  --color-black:    #050505;
  --color-dark:     #0f0f0f;
  --color-dark-alt: #161616;
  --color-gold:     #c4a33d;
  --color-gold-light: #e0c266;
  --color-red:      #800104;
  --color-white:    #ffffff;
  --color-gray:     #a0a0a0;
  --font-heading:   'Syne', sans-serif;
  --font-body:      'Titillium Web', sans-serif;
  --transition:     all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius:         12px;
  --max-width:      1300px;
  --glass:          rgba(255, 255, 255, 0.03);
  --glass-border:   rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; font-size: 15px; }

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-white); }

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1.2rem; color: var(--color-white); opacity: 0.88; }

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding: 4rem 0; }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  padding: 10px 0;
}

.site-header.scrolled {
  position: fixed;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  padding: 5px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-actions-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-header-cta {
  background: var(--color-gold);
  color: #000;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  display: inline-block;
}

.btn-header-cta:hover {
  background: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(196,163,61,0.2);
}

.site-logo a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.site-logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

.site-logo a span {
  color: var(--color-gold);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.main-nav ul,
.main-nav div > ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--color-gold);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--color-white);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
  width: 100%;
}

.main-nav li {
  position: relative;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; height: 100vh;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(196,163,61,0.2);
  }

  .main-nav.open { right: 0; }

  .main-nav ul, .main-nav div > ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .main-nav a { font-size: 1.5rem; }

  .menu-toggle { display: flex; }
  
  .btn-header-cta { display: none; } /* Hide in header, maybe show in menu */
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
}

/* SECTION */
.section {
  padding: 5rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(196, 163, 61, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(128, 1, 4, 0.15) 0%, transparent 55%),
    var(--color-black);
  z-index: 0;
}

/* Separador visual hero → sección */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-black));
  z-index: 1;
}

/* Fix front-page main */
body.home .site-main { padding: 0; }

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-pattern.svg') center/cover;
  opacity: 0.04;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(196, 163, 61, 0.4);
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
  /* sin emojis problemáticos */
}

.hero h1 {
  animation: fadeInUp 0.9s 0.15s ease both;
  margin-bottom: 1.5rem;
}

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

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.75;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.45s ease both;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 163, 61, 0.3);
}

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

/* ==========================================
   SECTION TITLES
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-family: var(--font-heading);
}

.section-divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ==========================================
   BLOG / POSTS GRID
   ========================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--color-dark);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(196, 163, 61, 0.1);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 163, 61, 0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(196,163,61,0.15);
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

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

.post-card-thumb .post-category {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
}

.post-card-body { padding: 1.5rem; }

.post-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--color-gray);
  margin-bottom: 0.75rem;
  align-items: center;
}

.post-card-meta span { display: flex; align-items: center; gap: 0.3rem; }

.post-card h2, .post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.post-card h2 a, .post-card h3 a {
  color: var(--color-white);
  transition: var(--transition);
}

.post-card h2 a:hover, .post-card h3 a:hover { color: var(--color-gold); }

.post-card p { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1rem; }

.post-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.read-more:hover { gap: 0.7rem; color: var(--color-white); }

/* ==========================================
   SINGLE POST
   ========================================== */
.single-post-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 100px;
}

.single-post-hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.single-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 30%, transparent 100%);
}

.single-post-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.single-post-hero-content .post-category-badge {
  background: var(--color-red);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 1rem;
}

.single-post-hero-content h1 { max-width: 800px; }

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-gray);
}

.post-meta-bar a { color: var(--color-gold); }

/* Post Content */
.post-content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }
.entry-content p { margin-bottom: 1.4rem; line-height: 1.85; }
.entry-content ul, .entry-content ol {
  margin: 1.2rem 0 1.2rem 1.8rem;
  line-height: 1.8;
}
.entry-content blockquote {
  border-left: 4px solid var(--color-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(196,163,61,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  opacity: 0.9;
}
.entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.entry-content a { color: var(--color-gold); border-bottom: 1px solid rgba(196,163,61,0.3); }
.entry-content a:hover { color: var(--color-white); border-bottom-color: var(--color-white); }
.entry-content code {
  background: rgba(196,163,61,0.12);
  color: var(--color-gold);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.88em;
}
.entry-content pre {
  background: var(--color-dark);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  border-left: 3px solid var(--color-gold);
  margin: 1.5rem 0;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.post-tags a {
  background: rgba(196,163,61,0.1);
  border: 1px solid rgba(196,163,61,0.3);
  color: var(--color-gold);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

/* ==========================================
   SIDEBAR
   ========================================== */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.widget {
  background: var(--color-dark);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(196,163,61,0.1);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(196,163,61,0.2);
}

.widget ul { list-style: none; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-white); font-size: 0.9rem; opacity: 0.85; transition: var(--transition); }
.widget ul li a:hover { color: var(--color-gold); opacity: 1; padding-left: 6px; }

/* Search Widget */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.search-form input[type="search"]:focus {
  border-color: var(--color-gold);
  background: rgba(196,163,61,0.05);
}

.search-form button {
  background: var(--color-gold);
  color: var(--color-black);
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-form button:hover { background: var(--color-red); color: var(--color-white); }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(196, 163, 61, 0.2);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .site-logo a {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p { font-size: 0.9rem; opacity: 0.65; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--color-gold); padding-left: 5px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

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

.page-numbers {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(196,163,61,0.2);
  color: var(--color-white);
  font-size: 0.9rem;
  transition: var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  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; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Gold shimmer text */
.text-gold-shimmer {
  background: linear-gradient(90deg, var(--color-gold) 25%, #f0d875 50%, var(--color-gold) 75%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
}

/* ──────────────────────────────────────────
   HERO WORD ROTATOR
   ────────────────────────────────────────── */
.hero-rotator {
  display: inline-block;
  position: relative;
  color: var(--color-gold);
  overflow: hidden;
  vertical-align: bottom;
  min-width: 180px;
}

.hero-word {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: var(--color-gold);
  font-style: italic;
  white-space: nowrap;
}

.hero-word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.hero-word.exit {
  opacity: 0;
  transform: translateY(-100%);
  position: absolute;
}

/* ==========================================
   SCROLL TO TOP
   ========================================== */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--color-gold);
  color: var(--color-black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* ==========================================
   MOBILE
   ========================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: fixed; inset: 0; top: 70px; background: rgba(0,0,0,0.97); flex-direction: column; align-items: center; justify-content: center; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; text-align: center; gap: 1.5rem; }
  .main-nav a { font-size: 1.2rem; }
  .menu-toggle { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ========================================== 
   LUXURY WIDGETS SYSTEM 
   ========================================== */ 
.widget { background: var(--color-dark-alt); padding: 30px; border-radius: var(--radius); border: 1px solid var(--glass-border); margin-bottom: 30px; transition: var(--transition); } 
.widget:hover { border-color: var(--color-gold); box-shadow: 0 20px 40px rgba(0,0,0,0.4); } 
.widget-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-gold); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(196,163,61,0.1); text-transform: uppercase; letter-spacing: 2px; } 
.widget ul { list-style: none; padding: 0; } 
.widget li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03); } 
.widget li a { color: rgba(255,255,255,0.6); transition: var(--transition); display: block; } 
.widget li a:hover { color: var(--color-white); padding-left: 8px; }
/* ==========================================
   UNIVERSAL RESPONSIVE SHIELD v1.0
   ========================================== */
@media (max-width: 1024px) {
    :root { --max-width: 100%; }
    .container { padding: 0 1rem; }
    html { font-size: 14px; }
}

@media (max-width: 768px) {
    .site-main { padding: 2rem 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    /* Force grids to single column if not handled */
    .grid-responsive-fallback {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    html { font-size: 13px; }
    .container { padding: 0 20px; }
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    
    /* Notch / Status Bar Protection */
    #site-header-elite { top: 15px !important; }
    body { padding-top: 80px; }
}

/* Horizontal Scroll Indicators for Categories/Filters */
.filter-scroll-wrapper, .category-scroll-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.filter-scroll-wrapper::after {
    content: ''; position: absolute; top: 0; right: 0; width: 40px; height: 100%;
    background: linear-gradient(to right, transparent, #000); pointer-events: none;
}

/* Fix for horizontal scroll issues */
* { max-width: 100vw; box-sizing: border-box; }
img, video, canvas, iframe { max-width: 100%; height: auto; }
.site-main { overflow-x: hidden; }
