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

:root {
    /* Vibrant Color Palette */
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #3B82F6;
    --secondary-dark: #2563EB;
    --accent: #F59E0B;
    --accent-gold: #FCD34D;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);

    /* Neutrals */
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: block;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--primary-light);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.9;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 40px;
    min-width: 200px;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--bg-darker);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* ===== GRIDS ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    height: 120px;
}

.bottle-icon {
    width: 80px;
    height: 120px;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
    transition: var(--transition-normal);
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
    transition: var(--transition-normal);
}

.feature-card:hover .bottle-icon,
.feature-card:hover .product-image {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(139, 92, 246, 0.5));
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card.winner {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.card-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.rating {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.feature-list strong {
    color: var(--primary-light);
}

.verdict {
    background: rgba(139, 92, 246, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== ANALYSIS BLOCKS ===== */
.analysis-block {
    margin-bottom: 60px;
}

.analysis-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.product-rank {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.product-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.product-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.spec {
    background: rgba(139, 92, 246, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 500;
}

.value-score {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== TABLES ===== */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid var(--bg-card-hover);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.comparison-table thead {
    background: var(--gradient-primary);
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
}

.comparison-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.comparison-table tbody tr {
    transition: var(--transition-fast);
}

.comparison-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.value-excellent {
    color: #10B981;
    font-weight: 700;
}

.value-good {
    color: #3B82F6;
    font-weight: 700;
}

.value-fair {
    color: #F59E0B;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-excellent {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.badge-good {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

/* ===== WARNING TABLE ===== */
.warning-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.warning-table thead {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.warning-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.warning-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.warning-table tbody tr:hover {
    background: rgba(239, 68, 68, 0.1);
}

.warning-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
}

.warning-box h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 24px;
}

.warning-box p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== GUIDE SECTION ===== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guide-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.guide-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.guide-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.concentration-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.concentration-item {
    background: rgba(139, 92, 246, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.conc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.conc-header strong {
    color: var(--primary-light);
    font-size: 16px;
}

.conc-percent {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.concentration-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.tips-list strong {
    color: var(--primary-light);
}

.occasion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.occasion-item {
    background: rgba(59, 130, 246, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--secondary);
}

.occasion-item strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.occasion-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.trends-list {
    list-style: none;
}

.trends-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.trends-list strong {
    color: var(--accent-gold);
}

/* ===== FAQ SECTION ===== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    transition: var(--transition-normal);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.faq-item h4 {
    color: var(--primary-light);
    margin-bottom: 12px;
    font-size: 18px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 12px;
    font-style: italic;
}

/* ===== BUY BUTTONS ===== */
.buy-button {
    display: block;
    width: 100%;
    padding: 12px 24px;
    margin-top: 20px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-gold);
}

/* ===== CHART SECTION ===== */
.chart-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

#priceQualityChart {
    max-width: 100%;
    height: 500px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
}

.chart-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: none;
}

.chart-tooltip.active {
    display: block;
}

.chart-tooltip strong {
    color: var(--primary-light);
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        padding: 30px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .guide-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    /* Chart responsive */
    .chart-container {
        padding: 20px 10px;
        overflow-x: auto;
    }

    #priceQualityChart {
        min-width: 600px;
        height: 400px;
    }

    .chart-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}