/* Creator Business OS - Solutions Index Page Styles */
/* CRITICAL FIXES: Interactive quiz, accessibility, mobile optimization */

/* CSS Custom Properties with Fallbacks */
:root {
    --gold-primary: #FFD700;
    --gold-secondary: #FFA500;
    --purple-primary: #8B7AB8;
    --purple-secondary: #6B5A9B;
    --white: #FFFFFF;
    --black: #000000;
    --green-success: #10B981;
    --red-error: #EF4444;
    --blue-info: #3B82F6;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #8B7AB8 0%, #6B5A9B 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-dark: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    
    /* Animation timing */
    --animation-fast: 0.15s;
    --animation-normal: 0.3s;
    --animation-slow: 0.6s;
    
    /* Shadows */
    --shadow-small: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    background: var(--black, #000000);
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    background: var(--gradient-dark, linear-gradient(135deg, #1F2937 0%, #111827 100%));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(139, 122, 184, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all var(--animation-normal, 0.3s) ease;
}

.trust-badge:hover {
    border-color: #8B7AB8;
    border-color: var(--purple-primary, #8B7AB8);
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
    transform: translateY(-2px);
}

.trust-badge i {
    color: #FFD700;
    color: var(--gold-primary, #FFD700);
}

/* Quiz Section */
.quiz-section {
    padding: 6rem 0;
    background: #000000;
    background: var(--black, #000000);
}

.quiz-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quiz-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    margin-bottom: 1rem;
}

.quiz-container p {
    font-size: 1.125rem;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    margin-bottom: 3rem;
}

/* CRITICAL FIX: Interactive Quiz Options */
.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--animation-normal, 0.3s) ease;
    text-decoration: none;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    display: block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.quiz-option:hover::before {
    left: 100%;
}

.quiz-option:hover,
.quiz-option:focus {
    border-color: #FFD700;
    border-color: var(--gold-primary, #FFD700);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.05);
}

.quiz-option:focus {
    outline: 2px solid #FFD700;
    outline: 2px solid var(--gold-primary, #FFD700);
    outline-offset: 2px;
}

.quiz-option i {
    font-size: 2.5rem;
    color: #8B7AB8;
    color: var(--purple-primary, #8B7AB8);
    margin-bottom: 1rem;
    transition: all var(--animation-normal, 0.3s) ease;
}

.quiz-option:hover i {
    color: #FFD700;
    color: var(--gold-primary, #FFD700);
    transform: scale(1.1);
}

.quiz-option h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    margin-bottom: 0.5rem;
}

.quiz-option p {
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    font-size: 0.95rem;
    margin: 0;
}

/* Quiz Recommendation Result */
.recommendation-result {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #10B981;
    border: 2px solid var(--green-success, #10B981);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideIn var(--animation-slow, 0.6s) ease-out forwards;
    backdrop-filter: blur(10px);
}

.recommendation-result h3 {
    color: #10B981;
    color: var(--green-success, #10B981);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-result h3 i {
    color: #10B981;
    color: var(--green-success, #10B981);
}

.recommendation-result p {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    margin-bottom: 1.5rem;
    text-align: left;
}

.recommendation-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    background: var(--gradient-success, linear-gradient(135deg, #10B981 0%, #059669 100%));
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--animation-normal, 0.3s) ease;
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
}

.recommendation-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(139, 122, 184, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all var(--animation-normal, 0.3s) ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(139, 122, 184, 0.05) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity var(--animation-normal, 0.3s) ease;
    opacity: 0;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    border-color: #8B7AB8;
    border-color: var(--purple-primary, #8B7AB8);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: #FFD700;
    border-color: var(--gold-primary, #FFD700);
    background: rgba(255, 215, 0, 0.05);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.3);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700 0%, #FFA500 100%));
    color: #000000;
    color: var(--black, #000000);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5); }
}

.pricing-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B7AB8 0%, #6B5A9B 100%);
    background: var(--gradient-purple, linear-gradient(135deg, #8B7AB8 0%, #6B5A9B 100%));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
    transition: all var(--animation-normal, 0.3s) ease;
}

.pricing-card:hover .pricing-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
}

.pricing-icon i {
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-size: 2rem;
}

.pricing-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    color: var(--gold-primary, #FFD700);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-period {
    font-size: 1.5rem;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
}

.price-note {
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    font-weight: 500;
    border-bottom: 1px solid rgba(139, 122, 184, 0.1);
}

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

.feature-list li::before {
    content: '✓';
    color: #10B981;
    color: var(--green-success, #10B981);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--animation-normal, 0.3s) ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700 0%, #FFA500 100%));
    color: #000000;
    color: var(--black, #000000);
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.4));
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    border-color: #8B7AB8;
    border-color: var(--purple-primary, #8B7AB8);
}

.btn-secondary:hover {
    background: #8B7AB8;
    background: var(--purple-primary, #8B7AB8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium, 0 10px 25px rgba(0, 0, 0, 0.3));
}

/* Comparison Preview */
.comparison-preview {
    padding: 6rem 0;
    background: #000000;
    background: var(--black, #000000);
    text-align: center;
}

.comparison-cta {
    max-width: 600px;
    margin: 0 auto;
}

.comparison-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    color: var(--white, #FFFFFF);
    margin-bottom: 1rem;
}

.comparison-cta p {
    font-size: 1.125rem;
    color: #D1D5DB;
    color: var(--gray-300, #D1D5DB);
    margin-bottom: 2rem;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* CRITICAL FIX: Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .quiz-container h2 {
        font-size: 2rem;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quiz-option {
        padding: 1.5rem 1rem;
    }
    
    .quiz-option i {
        font-size: 2rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .comparison-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .quiz-container h2 {
        font-size: 1.75rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* Animations */
.animate-in {
    animation: slideInUp var(--animation-slow, 0.6s) ease-out forwards;
}

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

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

/* Performance Optimizations */
.pricing-card,
.quiz-option,
.trust-badge {
    will-change: transform;
}

.pricing-card:hover,
.quiz-option:hover,
.trust-badge:hover,
.btn:hover {
    will-change: auto;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pricing-card:hover,
    .quiz-option:hover,
    .trust-badge:hover,
    .btn:hover {
        transform: none;
    }
    
    .popular-badge {
        animation: none;
    }
    
    .quiz-option::before {
        display: none;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .quiz-option,
    .pricing-card,
    .recommendation-result {
        border-width: 3px;
        border-style: solid;
    }
    
    .quiz-option h4,
    .pricing-card h3 {
        color: #FFFFFF !important;
        font-weight: 900 !important;
    }
}

/* Focus Management for Accessibility */
.btn:focus,
.quiz-option:focus {
    outline: 3px solid #FFD700;
    outline: 3px solid var(--gold-primary, #FFD700);
    outline-offset: 2px;
}

/* Loading States */
.quiz-option.loading {
    pointer-events: none;
    opacity: 0.7;
}

.quiz-option.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #FFD700;
    border-top: 2px solid var(--gold-primary, #FFD700);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .hero,
    .quiz-section,
    .comparison-preview {
        background: none !important;
        color: #000000 !important;
    }
    
    .pricing-card {
        border: 1px solid #000000 !important;
        background: none !important;
    }
    
    .feature-list li {
        color: #000000 !important;
    }
}