/* BestDealStream - Modern Dark Theme */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border: rgba(255,255,255,0.08);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-primary);
    font-weight: 800; font-size: 1.5rem;
}
.logo-icon { font-size: 1.75rem; }
.logo .highlight {
    background: var(--gradient-1); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

.nav { display: flex; gap: 32px; }
.nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s; font-size: 0.95rem; }
.nav a:hover { color: var(--text-primary); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s; }

/* Hero */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; overflow: hidden;
}
.hero-glow {
    position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }

.badge {
    display: inline-block; padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px; font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 24px;
}

.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.gradient-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 800; background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.875rem; color: var(--text-secondary); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary { background: var(--gradient-1); color: white; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.btn-deal { width: 100%; background: var(--gradient-1); color: white; padding: 12px; font-size: 0.95rem; }
.btn-deal:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* Sections */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.125rem; }

/* Deals */
.deals-section { padding: 100px 0; background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99, 102, 241, 0.03) 50%, var(--bg-dark) 100%); }
.deals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.deal-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s; position: relative;
}
.deal-card:hover { transform: translateY(-8px); border-color: rgba(99, 102, 241, 0.3); box-shadow: var(--shadow-glow); }
.deal-card.featured { border-color: var(--primary); box-shadow: 0 0 30px rgba(99, 102, 241, 0.2); }

.deal-badge { position: absolute; top: 16px; left: 16px; background: var(--gradient-2); color: white; padding: 6px 12px; border-radius: 50px; font-weight: 700; font-size: 0.875rem; z-index: 2; }
.deal-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-card-hover); }
.deal-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.deal-card:hover .deal-image img { transform: scale(1.05); }
.deal-content { padding: 24px; }
.deal-category { display: inline-block; padding: 4px 12px; background: rgba(99, 102, 241, 0.1); color: var(--primary); border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.deal-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.deal-content p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.deal-pricing { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.deal-old-price { color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; }
.deal-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

/* Categories */
.categories-section { padding: 100px 0; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.category-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; text-decoration: none; color: var(--text-primary); transition: all 0.3s; }
.category-card:hover { background: var(--bg-card-hover); border-color: var(--primary); transform: translateY(-4px); }
.category-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.category-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.category-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Newsletter */
.newsletter-section { padding: 100px 0; }
.newsletter-box { background: var(--gradient-1); border-radius: var(--radius); padding: 64px; text-align: center; position: relative; overflow: hidden; }
.newsletter-box::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%); pointer-events: none; }
.newsletter-content { position: relative; z-index: 1; max-width: 500px; margin: 0 auto; }
.newsletter-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.newsletter-content p { opacity: 0.9; margin-bottom: 32px; }
.newsletter-form { display: flex; gap: 12px; margin-bottom: 16px; }
.newsletter-form input { flex: 1; padding: 16px 20px; border: none; border-radius: 12px; font-size: 1rem; background: rgba(255,255,255,0.95); color: #333; }
.newsletter-form input::placeholder { color: #999; }
.newsletter-form .btn { background: var(--bg-dark); color: white; white-space: nowrap; }
.newsletter-note { font-size: 0.85rem; opacity: 0.8; }

/* Footer */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); background: var(--bg-card); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); max-width: 300px; }
.footer-links h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-secondary); font-size: 0.875rem; }
.affiliate-disclaimer { margin-top: 8px; font-size: 0.75rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .hero { padding: 100px 0 60px; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; gap: 32px; }
    .section-header h2 { font-size: 1.75rem; }
    .newsletter-box { padding: 40px 24px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
}