/* SmartToys.com Custom Styles */

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --accent: #f59e0b;
  --bg-dark: #0a0f1a;
  --bg-card: #131b2e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Star Ratings */
.stars {
  color: var(--accent);
  letter-spacing: 2px;
}

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

/* Product Cards */
.product-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.product-card:hover::before {
  opacity: 1;
}

/* Category Cards */
.category-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-card:hover {
  transform: translateY(-4px);
  background-color: #1e293b;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(245, 158, 11, 0.2);
}

/* Affiliate Button */
.btn-affiliate {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-affiliate:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* Pros/Cons */
.pro-item::before {
  content: '✓';
  color: #22c55e;
  font-weight: bold;
  margin-right: 8px;
}

.con-item::before {
  content: '✗';
  color: #ef4444;
  font-weight: bold;
  margin-right: 8px;
}

/* Placeholder images */
.product-image-placeholder {
  background: linear-gradient(145deg, #1a2340, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  min-height: 220px;
  position: relative;
}

.product-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08), transparent 70%);
}

/* Navbar */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Footer */
footer a:hover {
  color: var(--accent);
}

/* Rating badge */
.rating-badge {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Section dividers */
.section-heading {
  position: relative;
  padding-bottom: 12px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* Responsive image grid */
@media (max-width: 640px) {
  .product-image-placeholder {
    min-height: 160px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: rgba(245, 158, 11, 0.3);
}

/* Glass card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

/* Subtle text gradient */
.text-gradient {
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
