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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* =================================================== */
/* LANDING PAGE STYLES */
/* =================================================== */

/* Full-width header with your image as background */
.header-background {
    background-image: url('https://fcgbusobfdwnpoqyuzoe.supabase.co/storage/v1/object/sign/PPC-AUDIT/report-bg20.jpg?token=eyJraWQiOiJzdG9yYWdlLXVybC1zaWduaW5nLWtleV8wNjJjNGVkZS0wYzRiLTQyMzAtOGE5MC1jMDhmNjhlNDVkNTciLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJQUEMtQVVESVQvcmVwb3J0LWJnMjAuanBnIiwiaWF0IjoxNzcyMzAzNzQyLCJleHAiOjE4MDM4Mzk3NDJ9.2gug9GlfBQlQGtETrvaqrib94cjoJ588wJa0vIVU1KA');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 60px 20px;
    position: relative;
}

/* Dark overlay for better text readability */
.header-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.0); /* Dark overlay */
    z-index: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
}

/* Content that floats on top of the image */
.header-content {
    position: relative;
    z-index: 2; /* Above the overlay */
    color: white;
}

/* Hero Section - Now with white text for contrast */
.hero {
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.highlight {
    color: #ffd700; /* Gold for highlights */
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.subtitle {
    font-size: 1.4rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.stats {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Audit Form - Now transparent on the image */
.audit-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.form-container {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.url-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #dcdfe3;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.url-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.analyze-btn {
    padding: 16px 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.analyze-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

/* Benefits Section */
.benefits-section {
    margin-top: 20px;
}

.benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.benefit {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: rgba(30, 0, 255, 0.9);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.861);
}

/* Main content area below the header */
.main-content {
    padding: 40px 20px;
    background: #000000;
}

/* Footer Styles */
.main-footer {
    background: #000;
    padding: 0;
    margin: 0;
    width: 100%;
    margin-top: -120px; /* This moves the footer up 30 pixels */
}

.footer-container {
    width: 100%;
    margin: 0 auto;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
}

/* =================================================== */
/* CALCULATOR PAGE STYLES */
/* =================================================== */

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Branding */
.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.calculator-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.social-proof {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Calculator Form */
.calculator-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    font-style: italic;
}

.calculate-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

/* Results Section */
.results-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 5px solid #bdc3c7;
}

.result-row.current {
    background: #f8f9fa;
    border-left-color: #3498db;
}

.result-row.potential {
    background: #e8f4f8;
    border-left-color: #2ecc71;
}

.result-row.difference {
    background: #e8f6f3;
    border-left-color: #27ae60;
    font-weight: 700;
}

.ai-badge {
    background: #2ecc71;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-label {
    color: #2c3e50;
    font-weight: 500;
}

.result-value {
    font-weight: 700;
    font-size: 1.3rem;
}

.result-row.current .result-value {
    color: #3498db;
}

.result-row.potential .result-value {
    color: #2ecc71;
}

.result-row.difference .result-value {
    color: #27ae60;
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.cta-text {
    font-size: 1.3rem;
    color: #e74c3c;
    margin-bottom: 25px;
    font-weight: 600;
}

.demo-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.podcast-invite {
    color: #666;
    font-size: 1rem;
}

/* Demo Popup */
.demo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.popup-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.popup-content p {
    color: #666;
    margin-bottom: 25px;
}

.popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.start-demo-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-btn {
    padding: 15px 25px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-demo-btn:hover, .schedule-btn:hover {
    transform: translateY(-2px);
}

/* =================================================== */
/* ANALYSIS PAGE STYLES */
/* =================================================== */

.analysis-page {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    color: white;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Blue Bars */
.top-bar, .bottom-bar {
    background: linear-gradient(90deg, #0062cc, #0096ff, #0062cc);
    height: 8px;
    width: 100%;
}

.top-bar {
    box-shadow: 0 2px 20px rgba(0, 150, 255, 0.5);
}

.bottom-bar {
    box-shadow: 0 -2px 20px rgba(0, 150, 255, 0.5);
    position: fixed;
    bottom: 0;
    left: 0;
}

/* Analysis Container */
.analysis-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* Analyzing Header */
.analyzing-header {
    margin-bottom: 50px;
}

.pulse-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #0096ff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.analyzing-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 150, 255, 0.7);
}

.blinking-cursor {
    animation: blink 1s infinite;
    color: #0096ff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.analyzing-header .subtitle {
    color: #cccccc;
    font-size: 1.2rem;
}

/* Progress Section */
.progress-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 150, 255, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.progress-bar-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 150, 255, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0062cc, #0096ff, #00ccff);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
}

.progress-text {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #0096ff;
    font-weight: 600;
}

/* Analysis Steps */
.analysis-steps {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step:last-child {
    border-bottom: none;
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.completed .step-icon {
    background: #00ff88;
    color: #1a1a1a;
}

.step.active .step-icon {
    background: #0096ff;
    color: white;
    animation: spin 2s linear infinite;
}

.step:not(.completed):not(.active) .step-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step-text {
    color: #cccccc;
    flex: 1;
}

.step.completed .step-text {
    color: #00ff88;
}

.step.active .step-text {
    color: #0096ff;
    font-weight: 600;
}

/* Status Message */
.status-message {
    color: #888;
    font-style: italic;
    margin-top: 20px;
}

/* Force hardware acceleration for smoother animations */
.progress-fill, .analysis-progress-fill {
    transition: width 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: width;
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Make sure the parent containers have proper positioning */
.progress-bar-bg, .analysis-progress-small {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

/* =================================================== */
/* RESPONSIVE DESIGN (All Pages) */
/* =================================================== */

@media (max-width: 768px) {
    /* Landing Page Mobile */
    .header-background {
        padding: 40px 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .form-container {
        flex-direction: column;
    }
    
    .benefits {
        flex-direction: column;
        gap: 10px;
    }
    
    .audit-form {
        padding: 25px 20px;
    }
    
    .stats {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    /* Calculator Page Mobile */
    .calculator-container {
        padding: 20px 15px;
    }
    
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .calculator-form, .results-section {
        padding: 30px 20px;
    }
    
    .result-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    /* Analysis Page Mobile */
    .analysis-container {
        padding: 40px 15px;
    }
    
    .analyzing-header h1 {
        font-size: 2rem;
    }
    
    .progress-section {
        padding: 30px 20px;
    }
    
    .analysis-steps {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Landing Page Mobile Small */
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .benefit {
        font-size: 0.9rem;
        padding: 12px 10px;
    }
    
    .header-background {
        padding: 30px 15px;
    }
    
    /* Calculator Page Mobile Small */
    .calculator-header h1 {
        font-size: 1.8rem;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    /* Analysis Page Mobile Small */
    .analyzing-header h1 {
        font-size: 1.8rem;
    }
}

/* =================================================== */
/* UTILITY STYLES (All Pages) */
/* =================================================== */

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Error Message */
.error-message {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #fbb;
    text-align: center;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}