/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header */
header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #2c5f2d;
    text-decoration: none;
}

nav a {
    margin-left: 25px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

nav a:hover {
    color: #2c5f2d;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.alert-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

.cta-button.secondary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.trust-line {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* Stats Section */
.stats {
    background: white;
    padding: 50px 20px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 16px;
}

/* How It Works */
.how-it-works {
    padding: 60px 20px;
    background: #f8f9fa;
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
}

.step p {
    color: #666;
    font-size: 15px;
}

/* About Section */
.about {
    padding: 60px 20px;
    background: white;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #333;
}

.about p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.about ul {
    margin: 20px 0 20px 30px;
    color: #555;
}

.about li {
    margin-bottom: 10px;
}

.disclosure {
    background: #fff9e6;
    padding: 20px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin-top: 30px;
}

/* Quiz Styles */
.quiz-container {
    min-height: 80vh;
    padding: 40px 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
}

.question {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.question.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.question h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.question-subtitle {
    color: #666;
    margin-bottom: 30px;
}

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

.option-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.option-btn strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 17px;
}

.option-btn span {
    display: block;
    color: #666;
    font-size: 14px;
}

.brand-select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}

.brand-select:focus {
    outline: none;
    border-color: #667eea;
}

.other-brand-input input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.next-btn {
    width: 100%;
    padding: 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.next-btn:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
}

.next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Results Page */
.results-container {
    padding: 40px 20px;
    min-height: 80vh;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.brand-analysis {
    max-width: 800px;
    margin: 0 auto 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.brand-analysis h3 {
    margin-bottom: 15px;
    color: #333;
}

.safety-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.safety-good {
    background: #d4edda;
    color: #155724;
}

.safety-moderate {
    background: #fff3cd;
    color: #856404;
}

.safety-concern {
    background: #f8d7da;
    color: #721c24;
}

/* Email Capture */
.email-capture {
    max-width: 700px;
    margin: 0 auto 50px;
}

.email-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
}

.email-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.email-box p {
    margin-bottom: 20px;
    opacity: 0.95;
}

#email-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 10px;
}

#email-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

#email-form button {
    padding: 12px 30px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#email-form button:hover {
    background: #27ae60;
}

.privacy-note {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

/* Product Cards */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.product-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ff4757;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f8f9fa;
}

.product-name {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.safety-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-label {
    font-size: 13px;
    color: #666;
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.cert-badge {
    font-size: 12px;
    padding: 5px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
}

.product-price {
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.product-why {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-why strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.product-why p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.amazon-button {
    display: block;
    width: 100%;
    padding: 14px;
    background: #ff9900;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.amazon-button:hover {
    background: #e68a00;
}

.affiliate-note {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 10px;
}

/* Methodology */
.methodology {
    max-width: 800px;
    margin: 0 auto 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.methodology h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.methodology ul {
    margin: 15px 0 15px 25px;
}

.methodology li {
    margin-bottom: 10px;
    color: #555;
}

.disclosure-box {
    max-width: 800px;
    margin: 0 auto 30px;
    background: #fff9e6;
    padding: 20px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.disclosure-box p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.cta-retake {
    text-align: center;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .question {
        padding: 25px;
    }
    
    .question h2 {
        font-size: 24px;
    }
    
    #email-form {
        flex-direction: column;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    nav a {
        margin-left: 15px;
        font-size: 13px;
    }
}

/* Blog Preview Section */
.blog-preview {
    padding: 60px 20px;
    background: white;
}

.blog-preview h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.blog-preview .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.blog-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.blog-card h3 a {
    color: #333;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #667eea;
}

.blog-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}
