/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimize rendering */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Hero Section */
.hero {
    background: white;
    padding: 4rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    font-weight: 500;
    color: #666;
}

/* Video Container */
.video-container {
    margin-top: 2rem;
    text-align: center;
}

.video-container iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .video-container iframe {
        width: 100%;
        height: 250px;
    }
}

.product-image {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: none;
    background: transparent;
}


/* Table of Contents */
.table-of-contents {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.table-of-contents h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.table-of-contents ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.table-of-contents a {
    color: #667eea;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    border-left: 3px solid transparent;
}

.table-of-contents a:hover {
    background: #f8f9fa;
    border-left-color: #667eea;
    transform: translateX(5px);
}

/* Content Sections */
.content-section {
    background: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Alternating section backgrounds */
.content-section:nth-child(even) {
    background: #f8f9fa;
}

.content-section:nth-child(odd) {
    background: white;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-section p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.section-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Ingredients Section */
.ingredients {
    background: #f8f9fa !important;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ingredient-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-5px);
}

.ingredient-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.ingredient-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.ingredient-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Benefits Section */
.benefits {
    background: white !important;
}

.benefits-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
}

.benefit-item i {
    color: #667eea;
    font-size: 2rem;
    margin-top: 0.5rem;
}

.benefit-item h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

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

.pros, .cons {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.pros {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
}

.cons {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 5px solid #dc3545;
}

.pros h3, .cons h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pros h3 {
    color: #155724;
}

.cons h3 {
    color: #721c24;
}

.pros ul, .cons ul {
    list-style: none;
}

.pros li, .cons li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.cons li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* Reviews Section */
.reviews {
    background: #f8f9fa !important;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.reviewer-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.verified {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pricing Section */
.pricing {
    background: #f8f9fa;
    color: #333;
}

.pricing h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-intro {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pricing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: #28a745;
    font-size: 1.2rem;
}

.pricing h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-option:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.pricing-option h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.option-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.supply {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.price {
    margin: 1rem 0;
}

.currency {
    font-size: 1.2rem;
    vertical-align: top;
    color: #667eea;
}

.amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

.per-bottle {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.bonus {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.total {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #e9ecef;
}

.check-price-button {
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section CTA Buttons */
.section-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.section-cta .cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.section-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


/* Conclusion Section */
.conclusion {
    background: white !important;
}

.conclusion-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.conclusion h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.conclusion ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.conclusion li {
    margin-bottom: 0.5rem;
    color: #555;
}

.final-rating {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

.final-rating h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.rating-breakdown {
    margin-bottom: 2rem;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-item span:first-child {
    min-width: 120px;
    font-size: 0.9rem;
    color: #666;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 1s ease;
}

.rating-item span:last-child {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

.overall-rating {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.overall-rating span:first-child {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.overall-rating .stars {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem 0;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* CogniCare Links */
.cognicare-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.cognicare-link:hover {
    color: #1e3d6f;
    border-bottom-color: #2c5aa0;
    text-decoration: none;
}

.cognicare-text {
    color: #2c5aa0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.cognicare-text:hover {
    color: #1e3d6f;
    border-bottom-color: #2c5aa0;
}

/* Hero Image Link */
.hero-image-link {
    display: block;
    transition: transform 0.3s ease;
}

.hero-image-link:hover {
    transform: scale(1.02);
}

/* Rating Text Link */
.rating-text-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rating-text-link:hover {
    color: #2c5aa0;
    text-decoration: none;
}

/* Image Loading Optimizations */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .conclusion-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .table-of-contents ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
}

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

/* Loading animation for rating bars */
@keyframes fillBar {
    from { width: 0%; }
    to { width: var(--target-width); }
}

.rating-fill {
    animation: fillBar 1.5s ease-out;
}

/* Hover effects */
.ingredient-card, .review-card, .pricing-card {
    transition: all 0.3s ease;
}

.ingredient-card:hover, .review-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Welcome Modal */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.welcome-modal.show {
    display: flex !important;
}

.welcome-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-modal .modal-content {
    background: white;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.welcome-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.welcome-modal .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.welcome-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.welcome-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.welcome-modal .modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-modal .modal-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    color: white;
}

.welcome-modal .modal-btn:hover {
    color: white;
    text-decoration: none;
}

.welcome-modal .read-review {
    background: #28a745;
    color: white;
}

.welcome-modal .read-review:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.welcome-modal .official-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.welcome-modal .official-page:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
