/* Modern MyCRA Style - 2026 - Phase 3 Enhanced */

/* Modern CSS Custom Properties for consistent theming */
:root {
    /* Primary brand colors */
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #ef4444;
    --primary-600: #dc2626;
    --primary-700: #b91c1c;
    --primary-800: #991b1b;
    --primary-900: #7f1d1d;
    --primary: #c41e3a;
    --primary-dark: #a91944;
    --primary-darker: #8b1538;

    /* Neutral colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic colors */
    --success: #059669;
    --warning: #f59e0b;
    --error: #dc2626;
    --info: #0ea5e9;

    /* Text colors */
    --text-primary: #1a202c;
    --text-secondary: #2d3748;
    --text-muted: #4a5568;
    --text-light: #718096;

    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-gradient: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-200) 100%);

    /* Border and shadows */
    --border-color: rgba(0, 0, 0, 0.04);
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Z-index scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Dark mode support with enhanced color palette */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f8fafc;
        --text-secondary: #e2e8f0;
        --text-muted: #94a3b8;
        --text-light: #64748b;

        --bg-primary: #1e293b;
        --bg-secondary: #0f172a;
        --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

        --border-color: rgba(255, 255, 255, 0.1);
        --border-light: rgba(255, 255, 255, 0.15);

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5), 0 10px 10px rgba(0, 0, 0, 0.4);
    }

    body {
        background: var(--bg-gradient);
        color: var(--text-primary);
    }

    .content-section,
    .access-card,
    .toc,
    .highlight,
    .video,
    .faq {
        background: var(--bg-primary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }


    h2, h3, h4 {
        color: var(--text-secondary);
    }

    p, li {
        color: var(--text-muted);
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    color: #1a202c;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}




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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #8B0000 100%);
    color: white !important;
    padding: 4rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(165, 0, 33, 0.3);
    position: relative;
    overflow: hidden;
}

.hero *,
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-text {
    color: white !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: grain 20s linear infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 10%); }
    80% { transform: translate(-15%, 0%); }
    90% { transform: translate(10%, 5%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Quick Access Cards */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.access-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #A50021;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #A50021, #c41e3a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

/* Content Sections */
.content-section {
    background: white;
    margin: 2rem 0;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #A50021, #c41e3a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

/* Typography */
h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    color: #A50021;
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

ul li::before {
    content: '✓';
    color: #A50021;
    font-weight: bold;
    position: absolute;
    left: 0;
    background: rgba(165, 0, 33, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid #A50021;
}

.toc h2 {
    font-size: 1.8rem;
    color: #A50021;
    margin-bottom: 1.5rem;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc ul li {
    margin-bottom: 1rem;
    padding-left: 0;
}

.toc ul li::before {
    display: none;
}

.toc ul li a {
    color: #A50021;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s;
}

.toc ul li a:hover {
    color: #c41e3a;
    text-decoration: underline;
}

/* Highlight Boxes */
.highlight {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1.5rem;
    border-left: 4px solid #f39c12;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.highlight strong {
    color: #d68910;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #A50021, #c41e3a);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.5rem 1rem 0.5rem 0;
    box-shadow: 0 4px 15px rgba(165, 0, 33, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 0, 33, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(3px);
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.pros, .cons {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pros {
    border-top: 4px solid #27ae60;
}

.cons {
    border-top: 4px solid #e74c3c;
}

.pros h3 {
    color: #27ae60;
}

.cons h3 {
    color: #e74c3c;
}

/* FAQ Section */
.faq {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Video Section */
.video {
    margin-top: 2rem;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.video iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .nav-menu {
        display: none;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .quick-access {
        grid-template-columns: 1fr;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .cta-button {
        display: block;
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* Dark Mode Support */
[data-theme="dark"],
.dark-mode {
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5), 0 10px 10px rgba(0, 0, 0, 0.4);
    --primary-light: rgba(196, 30, 58, 0.2);
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;
}


/* Page Header styling */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #8B0000 100%);
    color: white !important;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header *,
.page-title,
.page-subtitle {
    color: red !important;
}