/* ===== COMPONENTS ===== */

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header-content {
    height: 5rem;
  }
}

.logo {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .logo {
    font-size: 1.875rem;
  }
}

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

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 200ms;
}

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

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

.nav-mobile {
  display: block;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none;
  }
}

.nav-mobile .nav-link {
  display: block;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.menu-toggle {
  display: block;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 300ms;
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Button Sizes */
.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
}

.btn-default {
  height: 2.5rem;
  padding: 0.5rem 1rem;
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.btn-xl {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

.btn-icon {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0;
}

/* Button Variants */
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(220, 25%, 20%);
  box-shadow: var(--card-shadow-hover);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--glow-accent);
}

.btn-accent:hover {
  background-color: hsl(38, 95%, 45%);
  box-shadow: none;
}

.btn-hero {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-hero:hover {
  background-color: hsl(220, 25%, 20%);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
}

.btn-hero-outline {
  border: 2px solid hsl(var(--primary-foreground) / 0.2);
  background-color: transparent;
  color: var(--primary-foreground);
}

.btn-hero-outline:hover {
  background-color: var(--primary-foreground);
  color: var(--primary);
  border-color: var(--primary-foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-outline {
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: hsl(30, 15%, 90%);
}

/* ===== CARDS ===== */
.card {
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--card-shadow);
}

/* Product Card */
.product-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 300ms;
  display: block;
  text-decoration: none;
}

.product-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

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

.product-card-content {
  padding: 1.5rem;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.product-card-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: var(--font-body);
}

.product-card-title {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
  transition: color 200ms;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card:hover .product-card-title {
  color: var(--accent);
}

.product-card-excerpt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-family: var(--font-body);
  line-height: 1.625;
  margin-bottom: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--foreground);
  transition: color 200ms;
}

.product-card:hover .product-card-cta {
  color: var(--accent);
}

.product-card-cta svg {
  transition: transform 200ms;
}

.product-card:hover .product-card-cta svg {
  transform: translateX(4px);
}

/* Featured Card */
.featured-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  transition: all 300ms;
}

@media (min-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
  }
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px hsl(220, 25%, 10%, 0.2);
}

.featured-card-image {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

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

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: colors 150ms;
  border: 1px solid transparent;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-outline {
  border-color: var(--border);
  color: var(--foreground);
}

/* Category Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ===== INPUTS ===== */
.input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
  font-family: var(--font-body);
  transition: all 150ms;
}

.input::placeholder {
  color: var(--muted-foreground);
}

.input:focus-visible {
  outline: none;
  ring: 2px solid var(--ring);
  ring-offset: 2px;
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .input {
    font-size: 0.875rem;
  }
}

/* ===== STAR RATING ===== */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.star-rating svg {
  width: 1rem;
  height: 1rem;
}

.star-rating.star-rating-lg svg {
  width: 1.25rem;
  height: 1.25rem;
}

.star {
  color: var(--rating-empty);
}

.star.star-filled {
  color: var(--rating);
  fill: var(--rating);
}

.star-value {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

/* ===== CATEGORY SECTION ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background-color: var(--card);
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  transition: all 300ms;
  text-decoration: none;
  color: var(--card-foreground);
}

.category-item:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.category-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-radius: 0.75rem;
  transition: transform 200ms;
}

.category-item:hover .category-icon {
  transform: scale(1.1);
}

.category-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.category-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.category-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, hsl(220, 25%, 15%) 0%, hsl(220, 20%, 25%) 100%);
  color: var(--primary-foreground);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .newsletter-section {
  background: linear-gradient(135deg, hsl(220, 25%, 6%) 0%, hsl(220, 20%, 15%) 100%);
}

.newsletter-content {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  background-color: hsl(var(--primary-foreground) / 0.1);
  border: 1px solid hsl(var(--primary-foreground) / 0.2);
  color: var(--primary-foreground);
}

.newsletter-input::placeholder {
  color: hsl(var(--primary-foreground) / 0.6);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 200ms;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  color: var(--primary-foreground);
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-bg-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-decoration::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background-color: hsl(38, 95%, 50%, 0.1);
  filter: blur(80px);
}

.hero-bg-decoration::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -25%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background-color: hsl(38, 95%, 50%, 0.05);
  filter: blur(80px);
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary-foreground) / 0.1);
  color: hsl(var(--primary-foreground) / 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 28rem;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
}

.hero-stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.5rem;
  color: var(--accent);
}

.hero-stat-value {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

@media (min-width: 1024px) {
  .hero-stat-value {
    font-size: 1.875rem;
  }
}

.hero-stat-label {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
}

/* ===== REVIEW ARTICLE ===== */
.review-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.review-header-image {
  max-width: 48rem;
  margin: 0 auto 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.review-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.review-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.review-content p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: var(--foreground);
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--card);
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background-color: var(--muted);
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--foreground);
}

.specs-table td {
  color: var(--muted-foreground);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* Pros/Cons Lists */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-cons-section.pros h3 {
  color: hsl(142, 76%, 36%);
}

.pros-cons-section.cons h3 {
  color: hsl(0, 84%, 60%);
}

.pros-cons-list {
  list-style: none;
  padding: 0;
}

.pros-cons-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pros-cons-list li:last-child {
  border-bottom: none;
}

.pros-cons-list li svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pros-cons-section.pros li svg {
  color: hsl(142, 76%, 36%);
}

.pros-cons-section.cons li svg {
  color: hsl(0, 84%, 60%);
}

/* Verdict */
.verdict-box {
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 2rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.verdict-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  .comparison-table {
    display: table;
  }
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.comparison-table th {
  background-color: var(--muted);
  font-weight: 600;
  font-family: var(--font-heading);
}

.comparison-table .highlight {
  background-color: hsl(38, 95%, 50%, 0.1);
  font-weight: 600;
}

/* Dark Mode Toggle */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow-hover);
  transition: all 300ms;
  z-index: 100;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}
