/* EY Report Styles - Consistent with Main Dashboard */

/* EY Brand Colors */
:root {
    --ey-yellow: #FFE600;
    --ey-black: #2E2E38;
    --ey-gray-dark: #747480;
    --ey-gray-medium: #C4C4CD;
    --ey-gray-light: #F2F2F2;
    --ey-white: #FFFFFF;
    --ey-blue: #00A3E0;
    --ey-green: #00A88E;
    --ey-red: #EE3124;
    --ey-purple: #7E3F98;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Rogers Brand Colors */
    --rogers-red: #E20A16;
    --rogers-red-dark: #C40914;
    --rogers-red-light: #FF4550;
    --rogers-black: #000000;
    --rogers-gray: #6C757D;
    --rogers-blue: #004A9F;
    
    /* Bell Brand Colors */
    --bell-blue: #0066CC;
    --bell-blue-dark: #004499;
    --bell-blue-light: #3388FF;
    --bell-gray: #545454;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'EYInterstate', -apple-system, sans-serif;
    background: var(--ey-gray-light);
    color: var(--ey-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Professional Header */
.header {
    background: var(--ey-white);
    border-bottom: 1px solid var(--ey-gray-medium);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--ey-black);
    color: var(--ey-white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ey-logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-decoration: none;
    color: var(--ey-white);
    display: inline-block;
}

.ey-logo:hover {
    color: var(--ey-yellow);
    text-decoration: none;
}

.ey-logo::after {
    content: '';
    font-weight: 700;
}

.header-meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

.header-main {
    padding: 2rem;
    background: var(--ey-white);
    text-align: center;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--ey-black);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 1.125rem;
    color: var(--ey-gray-dark);
    margin-bottom: 2rem;
}

/* Navigation */
.nav-container {
    background: var(--ey-white);
    border-bottom: 1px solid var(--ey-gray-medium);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-tabs {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    justify-content: center;
}

.nav-tab {
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ey-gray-dark);
    position: relative;
    transition: color 0.2s;
    font-family: 'Inter', 'EYInterstate', -apple-system, sans-serif;
}

.nav-tab:hover {
    color: var(--ey-black);
}

.nav-tab.active {
    color: var(--ey-black);
    font-weight: 600;
}

.nav-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ey-yellow);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--ey-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--ey-gray-light);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--ey-blue);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--ey-gray-dark);
    margin: 0 0.5rem;
}

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

/* Report Container - Narrower for better readability */
.report-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Professional Cards */
.card {
    background: var(--ey-white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Report Section */
.report-section {
    background: var(--ey-white);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.report-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--ey-gray-light);
}

.report-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--ey-black);
    margin-bottom: 0.5rem;
}

.report-subtitle {
    font-size: 1.125rem;
    color: var(--ey-gray-dark);
}

/* Report Content Styling */
.report-content {
    line-height: 1.8;
    color: var(--ey-black);
}

.report-content h1 {
    font-size: 2rem;
    font-weight: 300;
    margin: 3rem 0 1.5rem;
    color: var(--ey-black);
    border-bottom: 2px solid var(--ey-gray-light);
    padding-bottom: 1rem;
}

.report-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--ey-black);
}

.report-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--ey-black);
}

.report-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--ey-black);
}

.report-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.report-content strong {
    font-weight: 600;
    color: var(--ey-black);
}

.report-content em {
    font-style: italic;
}

.report-content ul, .report-content ol {
    margin: 1rem 0 1rem 2rem;
}

.report-content li {
    margin-bottom: 0.5rem;
}

.report-content blockquote {
    border-left: 4px solid var(--ey-yellow);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--ey-gray-dark);
    font-style: italic;
}

.report-content code {
    background: var(--ey-gray-light);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.report-content pre {
    background: var(--ey-gray-light);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

.report-content pre code {
    background: none;
    padding: 0;
}

/* Tables */
.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.report-content th {
    background: var(--ey-gray-light);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--ey-gray-medium);
}

.report-content td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--ey-gray-light);
}

.report-content tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Links */
.report-content a {
    color: var(--ey-blue);
    text-decoration: none;
    font-weight: 500;
}

.report-content a:hover {
    text-decoration: underline;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--ey-gray-light) 0%, var(--ey-white) 100%);
    border-left: 4px solid var(--ey-yellow);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.highlight-metric {
    font-weight: 600;
    color: var(--ey-blue);
}

/* Key Findings */
.key-finding {
    background: var(--ey-white);
    border: 1px solid var(--ey-gray-light);
    border-left: 4px solid var(--ey-yellow);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.key-finding-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ey-black);
    margin-bottom: 0.5rem;
}

.key-finding-content {
    color: var(--ey-gray-dark);
}

/* Footer */
.footer {
    background: var(--ey-white);
    border-top: 1px solid var(--ey-gray-medium);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--ey-gray-dark);
    font-size: 0.875rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--ey-gray-dark);
    text-decoration: none;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--ey-black);
}

/* Back to Top Button */
.back-to-dashboard {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--ey-black);
    color: var(--ey-white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s;
    font-size: 0.875rem;
}

.back-to-dashboard:hover {
    background: var(--ey-yellow);
    color: var(--ey-black);
    transform: translateY(-2px);
}

/* Print Styles */
@media print {
    .header-top, .breadcrumb, .footer, .back-to-dashboard {
        display: none;
    }
    
    .report-section {
        box-shadow: none;
        border: 1px solid var(--ey-gray-medium);
    }
    
    .report-content {
        max-width: 100%;
    }
}

/* Additional styles for reports */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--ey-gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ey-black);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--ey-gray-dark);
}

.callout-box {
    background: linear-gradient(135deg, var(--ey-gray-light) 0%, var(--ey-white) 100%);
    border-left: 4px solid var(--ey-yellow);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.code-block {
    background: var(--ey-gray-light);
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.metric-card {
    background: var(--ey-white);
    border: 1px solid var(--ey-gray-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.metric-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ey-black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phase-card {
    background: var(--ey-gray-light);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.phase-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ey-black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-tabs {
        gap: 1rem;
        font-size: 0.875rem;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .nav-tab {
        padding: 1rem 0;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    .header-title {
        font-size: 1.75rem;
    }
    
    .report-container {
        padding: 1rem;
    }
    
    .report-section {
        padding: 1.5rem;
    }
    
    .report-content h1 {
        font-size: 1.5rem;
    }
    
    .report-content h2 {
        font-size: 1.25rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Fix for navigation tab visibility */
.nav-tabs::-webkit-scrollbar {
    height: 4px;
}

/* Rogers Brand Styling */
.rogers-branded {
    border-left: 4px solid var(--rogers-red);
    position: relative;
}

.rogers-branded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rogers-red) 0%, var(--rogers-red-light) 100%);
}

.rogers-branded .card-title {
    color: var(--rogers-red-dark);
}

.rogers-branded .highlight-metric {
    color: var(--rogers-red);
    background: rgba(226, 10, 22, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.rogers-report-header {
    background: linear-gradient(135deg, var(--rogers-red), var(--rogers-red-dark));
    color: var(--ey-white);
    padding: 3rem 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 8px 8px 0 0;
}

.rogers-report-header .report-title {
    color: var(--ey-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.rogers-report-header .report-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
}

.rogers-insight-box {
    border-left: 4px solid var(--rogers-red);
    background: linear-gradient(135deg, 
        rgba(226, 10, 22, 0.05) 0%, 
        rgba(226, 10, 22, 0.02) 100%);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.rogers-insight-box .insight-title {
    color: var(--rogers-red-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.rogers-button {
    background: var(--rogers-red);
    color: var(--ey-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.rogers-button:hover {
    background: var(--rogers-red-dark);
    color: var(--ey-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(226, 10, 22, 0.3);
}

/* Bell Brand Styling (matching Rogers structure) - Updated */
.bell-branded {
    border-left: 4px solid var(--bell-blue) !important;
    position: relative !important;
}

.bell-branded::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, var(--bell-blue) 0%, var(--bell-blue-light) 100%) !important;
}

.bell-branded .card-title {
    color: var(--bell-blue-dark);
}

.bell-branded .highlight-metric {
    color: var(--bell-blue);
    background: rgba(0, 102, 204, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Enhanced styling for Rogers when selected */
.card.rogers-selected {
    border: 2px solid var(--rogers-red);
    box-shadow: 0 8px 24px rgba(226, 10, 22, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.card.bell-selected {
    border: 2px solid var(--bell-blue);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Segmented control Rogers styling */
.segmented-option[data-value="rogers"].active {
    background: var(--rogers-red);
    color: var(--ey-white);
}

.segmented-option[data-value="bell"].active {
    background: var(--bell-blue);
    color: var(--ey-white);
}

/* Rogers specific highlights in reports */
.rogers-highlight {
    background: linear-gradient(120deg, transparent 0%, rgba(226, 10, 22, 0.1) 50%, transparent 100%);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--rogers-red);
    margin: 1rem 0;
}

.rogers-stat {
    background: var(--rogers-red);
    color: var(--ey-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin: 0.25rem;
}

.rogers-recommendation {
    background: rgba(226, 10, 22, 0.05);
    border: 1px solid rgba(226, 10, 22, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.rogers-recommendation h3 {
    color: var(--rogers-red-dark);
    margin-bottom: 1rem;
}

.rogers-recommendation h4 {
    color: var(--rogers-red);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}