:root {
  /* Dark Theme Base (Cinematic, Premium) */
  --bg-main: #0B0B0C;
  --bg-surface: #141416;
  --bg-card: #1D1D20;
  --accent-gold: #ebb134;
  --accent-gold-hover: #ffcc5c;
  --accent-glow: rgba(235, 177, 52, 0.4);
  --text-main: #F4F4F5;
  --text-muted: #A1A1AA;
  --border-color: #27272A;
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease-in-out;
}

[data-theme="light"] {
  --bg-main: #FAFAFA;
  --bg-surface: #F4F4F5;
  --bg-card: #FFFFFF;
  --accent-gold: #D97706;
  --accent-gold-hover: #F59E0B;
  --accent-glow: rgba(217, 119, 6, 0.2);
  --text-main: #18181B;
  --text-muted: #52525B;
  --border-color: #E4E4E7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

/* LAYOUT UTILITIES */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { text-transform: uppercase; letter-spacing: 2px; }
.text-accent { color: var(--accent-gold); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
  font-family: var(--font-family);
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #000;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #000;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 11, 12, 0.85); /* Dark base, override for light */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: var(--transition);
}

[data-theme="light"] .navbar {
  background-color: rgba(250, 250, 250, 0.85);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
}

.nav-brand span { color: var(--accent-gold); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: var(--accent-gold);
}

/* Search Bar in Nav */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-color);
  position: relative;
}
.nav-search input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  padding: 0.2rem 0.5rem;
  width: 150px;
  font-size: 0.9rem;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  animation: searchDropIn 0.2s ease-out;
}
@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-results.active { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text-main);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-surface); }
.search-result-item img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-info h4 {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-info span {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 600;
}
.search-no-results {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.2rem;
}

/* HERO SECTION */
.hero {
  height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, var(--bg-main) 0%, rgba(0,0,0,0.2) 100%), url('https://placehold.co/1920x1080/1a1a1d/333333?text=Cinematic+Vibe') center/cover;
  z-index: -1;
  opacity: 0.6;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* CARDS COMMON */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: var(--accent-gold);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: var(--bg-surface);
}
.card-img-wrapper img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Ribbon Badge */
.ribbon {
  position: absolute;
  top: 15px; left: -5px;
  background: var(--accent-gold);
  color: #000;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 10;
}
.ribbon::after {
  content: '';
  position: absolute;
  top: 100%; left: 0;
  border-top: 5px solid #a67b14;
  border-left: 5px solid transparent;
}

/* Card Content */
.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.card-title a {
  color: var(--text-main);
}
.card-title a:hover {
  color: var(--accent-gold);
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.card-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-main);
}

/* Star Rating */
.stars {
  color: var(--accent-gold);
  font-size: 0.9rem;
}

/* FOOTER */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-gold);
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border-radius: 50%;
  color: var(--text-main);
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--accent-gold);
  color: #000;
}

/* FORMS */
.newsletter {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
}
.newsletter form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto 0;
  gap: 0.5rem;
}
.newsletter input[type="email"] {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  outline: none;
}
.newsletter input[type="email"]:focus {
  border-color: var(--accent-gold);
}
.form-success {
  display: none;
  color: #4ade80;
  margin-top: 1rem;
  font-weight: 500;
}

/* ANIMATIONS (Scroll triggered) */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.fade-in.appear {
  opacity: 1;
}
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  color: var(--accent-gold);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent-gold);
  color: #000;
}

/* CATEGORY FILTERS */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filter-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
  font-weight: 500;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* ARTICLE LAYOUT */
.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 3rem;
}
.article-meta {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.article-body {
  max-width: 800px;
  margin: 0 auto;
}
.article-body p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.article-body h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: 2rem; }
.article-body h3 { margin-top: 2rem; margin-bottom: 1rem; color: var(--text-main); }
.article-body ul { margin-bottom: 1.5rem; padding-left: 2rem; }
.article-body li { margin-bottom: 0.5rem; }

/* Pros & Cons Table */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
}
.pros-cons h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pros-title { color: #4ade80; }
.cons-title { color: #f87171; }
.pros-cons ul { list-style: none; padding: 0; }
.pros-cons li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.pros ul li::before { content: '✓'; color: #4ade80; position: absolute; left: 0; }
.cons ul li::before { content: '✕'; color: #f87171; position: absolute; left: 0; }

/* Verdict Box */
.verdict-box {
  background: linear-gradient(135deg, var(--bg-surface), #1e1e24);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.verdict-score {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: bold;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Product Embed inside Article */
.product-embed {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  transition: var(--transition);
}
.product-embed:hover {
  border-color: var(--accent-gold);
}
.product-embed img {
  width: 200px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.embed-content { flex: 1; }
.embed-content h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }

/* HAMBURGER MENU */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE OVERLAY */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}
.nav-overlay.active { display: block; }

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Hamburger visible */
  .hamburger { display: block; }

  /* Nav becomes slide-in panel */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    z-index: 105;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
  }
  .nav-menu.active { right: 0; }
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  /* Navbar layout */
  .nav-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav-brand { font-size: 1.3rem; flex: 1;}
  .nav-search {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }
  .nav-search input { width: 100%; }
  .search-results { width: 100%; left: 0; right: 0; }

  /* Hero */
  .hero { height: auto; min-height: 60vh; padding: 4rem 0 3rem; }
  h1 { font-size: 2rem; }

  /* Cards */
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }

  /* Article */
  .pros-cons { grid-template-columns: 1fr; }
  .product-embed { flex-direction: column; text-align: center; }
  .product-embed img { width: 100%; max-width: 250px; }

  /* Newsletter */
  .newsletter { padding: 2rem 1.5rem; }
  .newsletter form { flex-direction: column; }

  /* Filters */
  .filters { gap: 0.5rem; }
  .filter-btn { padding: 0.4rem 1rem; font-size: 0.85rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-icons { justify-content: center; }
  .site-footer { margin-top: 2rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero { min-height: 50vh; padding: 3rem 0 2rem; }
  .hero p { font-size: 1rem; }
  .btn { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
  .card-content { padding: 1rem; }
  .article-body p { font-size: 1rem; }
  .verdict-score { font-size: 3rem; }
}

