/* WRINKLEREMOVER.ORG - Complete SEO-Optimized Stylesheet */

.product-overview {
    margin: 0 0 0px 0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 0;
}

.product-image {
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-content {
    /* padding: 20px 0; */
}

.product-content h2 {
    color: #2c3e50;
    font-weight: bold;
    line-height: 1.3;
}

.product-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #495057;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    outline: none !important;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    outline: none !important;
}

.nav-link:hover {
    color: #3498db;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #ecf0f1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #3498db;
    color: white;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* FIXED: Mobile Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0; /* FIXED: Start from top instead of 70px */
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        height: 100vh; /* FIXED: Full viewport height */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 80px 0 2rem 0; /* FIXED: Top padding to account for navbar */
        gap: 0;
        z-index: 999; /* FIXED: Ensure it's below navbar but above content */
        
        /* FIXED: Make menu scrollable */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
        font-size: 1rem; /* FIXED: Slightly larger for better touch targets */
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001; /* FIXED: Ensure hamburger is above menu */
    }

    /* Mobile Dropdown Override */
    .nav-dropdown:hover .dropdown-content {
        display: none !important;
    }
    
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        background-color: #34495e !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: auto !important;
        display: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block !important;
        max-height: 300px;
    }
    
    .dropdown-content a {
        padding: 12px 20px;
        font-size: 0.95rem;
        color: #ecf0f1 !important;
        background-color: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        transition: all 0.2s ease;
    }
    
    .dropdown-content a:hover,
    .dropdown-content a:focus {
        background-color: rgba(52, 152, 219, 0.2) !important;
        color: #3498db !important;
    }

    .nav-dropdown.active {
        background-color: rgba(52, 152, 219, 0.1) !important;
    }
}

/* FIXED: Body scroll prevention when menu is open */
body.menu-open,
html.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* FIXED: Ensure main content doesn't scroll when menu is open */
.container {
    position: relative;
    z-index: 1;
}

/* FIXED: Better hamburger animation */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Typography */
h1 {
    font-size: 1.875rem;
    line-height: 1.2;
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    font-weight: bold;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    color: #34495e;
    margin: 1.25rem 0 0.75rem 0;
    font-weight: 600;
}

h3 {
    font-size: 1.125rem;
    line-height: 1.4;
    color: #34495e;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    line-height: 1.4;
    color: #2c3e50;
    margin: 0.875rem 0 0.375rem 0;
    font-weight: 600;
}

p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0.875rem 0;
    color: #333;
}

small {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #666;
}

ul, ol {
    margin: 0.875rem 0;
    padding-left: 1.5rem;
}

li {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.375rem 0;
}

a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Breadcrumb Navigation */
.breadcrumb-nav { 
    background: #f8f9fa; 
    padding: 10px 0; 
    margin: 0; 
    border-bottom: 1px solid #e9ecef; 
} 

.breadcrumb { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    font-size: 0.875rem; 
    color: #6c757d; 
    list-style: none;
} 

.breadcrumb-item { 
    display: flex; 
    align-items: center; 
} 

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* YMYL Authority Boxes */
.clinical-evidence-box {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid #3498db;
    padding: 18px;
    margin: 25px 0;
    border-radius: 6px;
}

.clinical-evidence-text {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.clinical-evidence-link {
    color: #3498db;
    font-weight: 600;
}

.authority-link-purple {
    background: rgba(155, 89, 182, 0.08);
    border: 1px solid #9b59b6;
    padding: 18px;
    margin: 25px 0;
    border-radius: 6px;
}

.authority-link-green {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid #27ae60;
    padding: 18px;
    margin: 25px 0;
    border-radius: 6px;
}

.authority-link-red {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid #e74c3c;
    padding: 18px;
    margin: 25px 0;
    border-radius: 6px;
}

.authority-text {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.authority-link-purple .authority-link {
    color: #9b59b6;
    font-weight: 600;
}

.authority-link-green .authority-link {
    color: #27ae60;
    font-weight: 600;
}

.authority-link-red .authority-link {
    color: #e74c3c;
    font-weight: 600;
}

.corporate-trust-badge {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid #3498db;
    padding: 18px;
    margin: 25px 0;
    border-radius: 6px;
}

/* Feature Cards and Grids */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* CTA Sections */
.cta-section {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 2rem 0;
}

.cta-section h2,
.cta-section h3 {
    color: white;
    margin-top: 0;
}

.cta-section a {
    color: #3498db;
}

/* Navigation Hubs - Unique Classes */
.homepage-nav-hub {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 4rem 0;
    color: white;
}

.clinical-nav-hub {
    background: linear-gradient(135deg, #28a745, #20c997);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 4rem 0;
    color: white;
}

.ingredients-nav-hub {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 4rem 0;
    color: #333;
}

.results-nav-hub {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 4rem 0;
    color: #333;
}

.review-nav-hub {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    border-left: 4px solid #1976d2;
}

.nav-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.nav-hub-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.nav-hub-card-light {
    background: rgba(255,255,255,0.8);
    padding: 1.5rem;
    border-radius: 10px;
}

.nav-hub-title {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.nav-hub-section-title {
    margin-bottom: 1rem;
}

.nav-hub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-hub-list li {
    margin: 0.5rem 0;
}

/* Statistics Dashboards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.stat-sublabel {
    color: #666;
    font-size: 0.8rem;
}

/* Timeline Styles */
.results-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid;
}

.timeline-week {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-percentage {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
}

.timeline-label {
    margin: 0;
    font-weight: 600;
}

.timeline-description {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Case Study Cards */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.case-study-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top: 4px solid;
}

.case-study-title {
    margin-top: 0;
}

.case-study-baseline {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.case-study-results {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.case-study-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Pros and Cons Grid */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros-card {
    background: #d4edda;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.cons-card {
    background: #f8d7da;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.pros-title {
    color: #155724;
    margin-top: 0;
}

.cons-title {
    color: #721c24;
    margin-top: 0;
}

.pros-list {
    color: #155724;
    margin: 0;
    padding-left: 1rem;
}

.cons-list {
    color: #721c24;
    margin: 0;
    padding-left: 1rem;
}

/* Rating Display */
.expert-rating-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.rating-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rating-text {
    color: #856404;
    margin: 0;
}

.rating-subtitle {
    color: #856404;
    margin: 0.5rem 0 0 0;
}

.rating-score {
    text-align: right;
}

.score-number {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
}

.score-label {
    color: #856404;
    font-size: 0.9rem;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    vertical-align: top;
}

.comparison-table th {
    background: #3498db;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.comparison-table td {
    font-size: 0.85rem;
}

.comparison-table tr:hover {
    background-color: #f5f5f5;
}

/* Scroll to Top Button */
.up {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.up:hover {
    background: #2980b9;
}

.up.visible {
    opacity: 1;
    visibility: visible;
}

/* FAQ Styles */
.faq-item {
    border-bottom: 1px solid #ecf0f1;
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.toc-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    outline: none !important;
}

.toc-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Error Page Styles */
.error-content {
    text-align: center;
    padding: 4rem 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-hub-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .results-timeline {
        grid-template-columns: 1fr;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .rating-display {
        flex-direction: column;
        text-align: center;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .breadcrumb {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.25rem;
    }

    .error-number {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }
}