/* ========================================
   MightyLife FAQ - Ultra-Modern Design 2026
   ======================================== */

/* === Modern CSS Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CSS Variables === */
:root {
    /* Modern Color Palette */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    
    --green-500: #10b981;
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Spacing System */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
}

/* === Base Styles === */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* === Modern Header === */
.header {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: var(--space-16) 0 var(--space-12);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 50%);
    animation: headerFloat 20s ease-in-out infinite;
}

@keyframes headerFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.header-content {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-8);
}

.logo h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-2);
    letter-spacing: -0.03em;
}

.logo .tagline {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 400;
}

.header-title {
    position: relative;
    z-index: 1;
    padding-top: var(--space-8);
    margin-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.header-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.header-title p {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* === Search Section === */
.search-section {
    background: white;
    padding: var(--space-10) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
}

.search-box {
    margin-bottom: var(--space-6);
    position: relative;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    opacity: 0.4;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 1.125rem 1.5rem 1.125rem 3.25rem;
    font-size: 1.0625rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    background: var(--gray-50);
    transition: all 0.2s;
    outline: none;
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.search-box input:hover {
    border-color: var(--gray-300);
    background: white;
}

.search-box input:focus {
    border-color: var(--blue-500);
    background: white;
    box-shadow: 0 0 0 4px var(--blue-100);
}

/* === Filter Buttons === */
.filter-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6875rem 1.125rem;
    border: none;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--blue-600);
    color: white;
    box-shadow: var(--shadow-md);
}

.filter-btn .icon {
    font-size: 1.125rem;
}

/* === FAQ Category === */
.faq-content {
    padding: var(--space-12) 0;
}

.faq-category {
    background: white;
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.faq-category:hover {
    box-shadow: var(--shadow-md);
}

.faq-category.hidden {
    display: none;
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--gray-100);
}

.category-icon {
    font-size: 1.75rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border-radius: var(--radius-2xl);
    flex-shrink: 0;
}

.category-header h3 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--gray-900);
    flex: 1;
    letter-spacing: -0.01em;
}

.category-count {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

/* === FAQ Items === */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: all 0.2s;
    background: white;
}

.faq-item.hidden {
    display: none;
}

.faq-item:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px var(--blue-100);
}

.faq-question {
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    transition: all 0.2s;
}

.faq-question:hover {
    color: var(--blue-600);
}

.faq-item.active .faq-question {
    color: var(--blue-600);
}

.icon-toggle {
    font-size: 1.375rem;
    color: var(--gray-400);
    transition: all 0.3s;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

.faq-item:hover .icon-toggle {
    background: var(--blue-100);
    color: var(--blue-600);
}

.faq-item.active .icon-toggle {
    transform: rotate(45deg);
    background: var(--blue-600);
    color: white;
}

/* === FAQ Answer === */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 5000px;
}

.faq-answer > *:last-child {
    padding-bottom: var(--space-6);
    margin-bottom: 0;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 0 var(--space-6);
    margin-bottom: var(--space-4);
    color: var(--gray-600);
    line-height: 1.75;
}

.faq-answer h4 {
    padding: 0 var(--space-6);
    margin: var(--space-6) 0 var(--space-3) 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.faq-answer ul,
.faq-answer ol {
    padding-left: calc(var(--space-6) + 1.5rem);
}

.faq-answer ul li,
.faq-answer ol li {
    margin-bottom: var(--space-2);
}

.faq-answer a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.faq-answer a:hover {
    border-bottom-color: var(--blue-600);
}

.faq-answer strong {
    color: var(--gray-900);
    font-weight: 700;
}

/* === Pricing Table === */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
    margin: var(--space-6);
}

.price-option {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    transition: all 0.3s;
    position: relative;
}

.price-option:hover {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.price-option.featured {
    border-color: var(--blue-500);
    background: linear-gradient(135deg, var(--blue-50) 0%, white 100%);
    box-shadow: var(--shadow-md);
}

.price-option.featured::after {
    content: '⭐';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
}

.price-option h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.price-option .price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--blue-600);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.price-option .save {
    display: inline-block;
    background: var(--green-500);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: var(--space-5);
}

.price-option ul {
    list-style: none;
    padding: 0;
}

.price-option ul li {
    margin-bottom: var(--space-3);
    font-size: 0.9375rem;
    color: var(--gray-700);
}

/* === Video Placeholder === */
.video-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    margin: var(--space-6);
    text-align: center;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    transition: all 0.3s;
}

.video-placeholder:hover {
    border-color: var(--gray-400);
    background: white;
}

.video-placeholder p {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.video-placeholder iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-2xl);
    border: none;
    box-shadow: var(--shadow-xl);
}

/* === Buttons === */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--gray-400);
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    right: var(--space-6);
    max-width: 600px;
    margin: 0 auto;
    background: white;
    box-shadow: var(--shadow-xl);
    padding: var(--space-8);
    z-index: 1000;
    transition: all 0.3s;
    border-radius: var(--radius-3xl);
    border: 1px solid var(--gray-200);
}

.cookie-banner.hidden {
    transform: translateY(150%);
    opacity: 0;
}

.cookie-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.cookie-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-3);
}

/* === No Results === */
.no-results {
    text-align: center;
    padding: var(--space-16);
}

.no-results.hidden {
    display: none;
}

.no-results-content {
    background: white;
    border-radius: var(--radius-3xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.no-results .icon {
    font-size: 4rem;
    margin-bottom: var(--space-6);
    opacity: 0.3;
}

.no-results h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.no-results p {
    color: var(--gray-600);
    font-size: 1.0625rem;
}

/* === Footer === */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-16);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.footer-section p {
    color: var(--gray-400);
}

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

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .filter-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        bottom: var(--space-4);
        left: var(--space-4);
        right: var(--space-4);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .faq-question {
        padding: var(--space-4);
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}
