/* ==========================================
   Passive Radiative Cooling Report
   Intelligence Report Design System
   Cool Sky Blue / Deep Ocean Slate
   ========================================== */

:root {
    --primary-color: #0284c7;
    --secondary-color: #0f766e;
    --accent-color: #38bdf8;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    --info-color: #0284c7;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;

    --border-color: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--text-primary); background: var(--bg-primary); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,250,252,0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.header-container { max-width: 1500px; margin: 0 auto; padding: 0.9rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-primary); font-weight: 800; font-size: 1.2rem; }
.main-nav { display: flex; gap: 1.75rem; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color var(--transition-fast); }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.reports-link { color: var(--primary-color); font-weight: 700; }

.report-container { display: grid; grid-template-columns: 280px 1fr; max-width: 1500px; margin: 0 auto; gap: 3rem; padding: 2rem 2rem; align-items: start; }

.sidebar { position: sticky; top: 75px; height: fit-content; max-height: calc(100vh - 90px); overflow-y: auto; }
.sidebar-header { padding: 1rem 1.25rem; background: linear-gradient(135deg, #0284c7, #0f766e); border-radius: 10px; margin-bottom: 0.75rem; color: white; }
.sidebar-header h3 { font-size: 0.95rem; font-weight: 700; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-nav .nav-link { padding: 0.7rem 1rem; border-radius: 7px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: all var(--transition-fast); }
.sidebar-nav .nav-link:hover { background: var(--bg-secondary); color: var(--primary-color); }
.sidebar-nav .nav-link.active { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; font-weight: 600; }

.metrics-widget { margin-top: 1.5rem; padding: 1.25rem; background: var(--bg-secondary); border-radius: 10px; border: 1px solid var(--border-color); }
.metrics-widget h4 { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.metric-item { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--border-color); }
.metric-item:last-child { border-bottom: none; }
.metric-label { font-size: 0.8rem; color: var(--text-secondary); }
.metric-value { font-weight: 700; color: var(--primary-color); font-family: var(--font-mono); font-size: 0.9rem; }
.metric-value.negative { color: var(--danger-color); }
.metric-value.warning { color: var(--warning-color); }

.main-content { max-width: 920px; min-width: 0; padding-bottom: 4rem; }

.hero-section { margin-bottom: 4rem; }
.classification-banner { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1.2rem; background: linear-gradient(135deg, #0284c7, #0f766e); color: white; border-radius: 6px; margin-bottom: 2rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.report-metadata { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.badge { padding: 0.35rem 0.85rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sector-badge { background: #e0f2fe; color: #0369a1; }
.type-badge { background: #dbeafe; color: #1e40af; }
.priority-badge { background: #fef3c7; color: #b45309; }

.hero-title { margin-bottom: 1.5rem; }
.title-main { display: block; font-size: 2.6rem; font-weight: 900; line-height: 1.1; background: linear-gradient(135deg, #0284c7, #0f766e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.title-sub { display: block; font-size: 1.3rem; font-weight: 600; color: var(--text-secondary); margin-top: 0.75rem; line-height: 1.4; }
.lead-text { font-size: 1.125rem; line-height: 1.9; color: var(--text-secondary); }

.stats-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin: 2.5rem 0; }
.stat-card { padding: 1.75rem; border-radius: 12px; background: var(--bg-secondary); border: 2px solid var(--border-color); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.stat-primary { border-color: var(--primary-color); background: linear-gradient(135deg, rgba(2,132,199,0.08), rgba(15,118,110,0.08)); }
.stat-warning { border-color: var(--warning-color); background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.08)); }
.stat-success { border-color: var(--success-color); background: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(20,184,166,0.08)); }
.stat-danger { border-color: var(--danger-color); background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(239,68,68,0.08)); }
.stat-info { border-color: var(--info-color); background: linear-gradient(135deg, rgba(2,132,199,0.08), rgba(14,165,233,0.08)); }
.stat-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.stat-number { font-size: 2.25rem; font-weight: 900; line-height: 1; margin-bottom: 0.2rem; }
.stat-unit { font-size: 0.9rem; color: var(--text-secondary); font-weight: 600; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.4rem; }

.olympus-box { background: linear-gradient(135deg, #0f172a 0%, #082f49 100%); padding: 2.5rem; border-radius: 16px; margin-bottom: 3rem; color: white; }
.olympus-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.25rem; color: #38bdf8; }
.olympus-box p { margin-bottom: 1rem; line-height: 1.85; color: #e2e8f0; }

.decision-matrix { overflow-x: auto; margin: 2rem 0; }
.decision-matrix table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.decision-matrix th { background: rgba(255,255,255,0.1); padding: 0.9rem 1.25rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; text-align: left; color: #7dd3fc; }
.decision-matrix td { padding: 0.85rem 1.25rem; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.08); color: #e2e8f0; }

.section-main { margin-bottom: 5rem; padding-top: 2rem; }
.section-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 1rem; line-height: 1.2; }
.section-number { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; flex-shrink: 0; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; border-radius: 12px; font-size: 1.4rem; font-weight: 900; }
.section-meta { display: flex; gap: 1rem; font-size: 0.875rem; flex-wrap: wrap; }

.content-block { margin-bottom: 2.5rem; }
.lead-paragraph { font-size: 1.2rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 2rem; }

.physics-box { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 2px solid #7dd3fc; border-radius: 12px; padding: 2rem; margin: 2rem 0; font-family: var(--font-mono); position: relative; overflow: hidden; }
.physics-box::before { content: "\03A3"; position: absolute; right: 1.5rem; top: 0.5rem; font-size: 5rem; color: rgba(2,132,199,0.08); font-family: serif; pointer-events: none; }
.physics-box h4 { color: #0369a1; font-size: 1.1rem; margin-bottom: 1.25rem; font-family: var(--font-body); }
.formula-line { background: white; border-radius: 8px; padding: 1rem 1.5rem; margin: 0.75rem 0; border-left: 3px solid var(--primary-color); font-size: 0.95rem; }
.formula-result { background: linear-gradient(135deg, #0284c7, #0f766e); color: white; border-radius: 8px; padding: 1rem 1.5rem; margin-top: 1rem; font-size: 1.05rem; font-weight: 700; }

.table-wrapper { overflow-x: auto; margin: 2rem 0; border-radius: 10px; box-shadow: var(--shadow-md); }
.data-table { width: 100%; border-collapse: collapse; background: white; }
.data-table thead { background: linear-gradient(135deg, #0284c7, #0f766e); color: white; }
.data-table th, .data-table td { padding: 1rem 1.25rem; text-align: left; font-size: 0.95rem; }
.data-table th { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.data-table tbody tr { border-bottom: 1px solid var(--border-color); }
.data-table tbody tr:hover { background: var(--bg-secondary); }

.calculator-box { background: linear-gradient(135deg, #0f172a, #082f49); color: white; border-radius: 16px; padding: 2.5rem; margin: 2rem 0; position: relative; overflow: hidden; }
.calculator-box h4 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; color: #38bdf8; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.calc-field label { display: block; font-weight: 600; font-size: 0.85rem; color: #94a3b8; margin-bottom: 0.5rem; text-transform: uppercase; }
.calc-field input[type="range"] { width: 100%; accent-color: #38bdf8; }
.calc-field .value-display { display: block; font-size: 1.5rem; font-weight: 800; color: #38bdf8; margin-top: 0.25rem; font-family: var(--font-mono); }
.calc-result { background: linear-gradient(135deg, rgba(2,132,199,0.3), rgba(15,118,110,0.2)); border: 2px solid #0284c7; border-radius: 12px; padding: 2rem; text-align: center; margin-top: 1.5rem; }
.calc-result .result-label { font-size: 0.9rem; color: #94a3b8; text-transform: uppercase; font-weight: 600; }
.calc-result .result-number { font-size: 2.8rem; font-weight: 900; color: #38bdf8; font-family: var(--font-mono); line-height: 1.2; }

.sponsorship-banner { display: flex; margin: 2.5rem 0; border-radius: 12px; background: linear-gradient(135deg, #0e203b, #173b54); border: 1px solid rgba(132, 185, 255, 0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.25); overflow: hidden; }
.sp-bar { width: 6px; background: linear-gradient(180deg, #549ad2, #9dceec, #549ad2); }
.sp-body { padding: 2rem 2.5rem; display: flex; align-items: center; width: 100%; }
.sp-text-col { flex: 1; }
.sp-label { font-size: 0.75rem; font-weight: 800; color: #9dceec; text-transform: uppercase; margin-bottom: 0.75rem; }
.sp-hl { font-size: 1.45rem; font-weight: 900; color: white; margin-bottom: 0.75rem; }
.sp-copy { font-size: 0.95rem; color: #f1f5f9; }

/* Chart Containers */
.chart-container { background:#fff; border-radius:14px; box-shadow:0 4px 24px rgba(2,132,199,0.08),0 1px 4px rgba(0,0,0,0.06); margin:2rem 0; overflow:hidden; border:1px solid #e2e8f0; }
.chart-header { background:linear-gradient(135deg,#0284c7,#0f766e); padding:1rem 1.5rem; display:flex; align-items:center; gap:0.75rem; }
.chart-header h4 { margin:0; color:#fff; font-size:0.95rem; font-weight:700; }
.chart-subtitle { color:rgba(255,255,255,0.72); font-size:0.78rem; margin-left:auto; font-weight:500; }
.chart-body { padding:1.5rem; }
.chart-footer { padding:0.65rem 1.5rem; background:#f8fafc; border-top:1px solid #e2e8f0; font-size:0.76rem; color:#78716c; }

/* Methodology & Sources */
.data-sources-section { background: var(--bg-secondary); padding: 2.5rem; border-radius: 12px; margin-top: 4rem; margin-bottom: 3rem; border: 1px solid var(--border-color); }
.data-sources-section h3 { margin-top: 0; font-size: 1.4rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.data-sources-section ul { list-style: none; padding-left: 0; }
.data-sources-section ul li { padding: 0.35rem 0 0.35rem 1.5rem; position: relative; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.data-sources-section ul li::before { content: "\2022"; position: absolute; left: 0; color: var(--primary-color); font-weight: 900; font-size: 1.2rem; }

/* Alert / Disclaimer */
.alert-block { padding: 1.5rem; border-radius: 8px; border-left: 4px solid; margin: 2rem 0; background: white; }
.alert-block.warning { background: rgba(245,158,11,0.08); border-color: var(--warning-color); }
.alert-block.warning h4 { color: #b45309; margin-top: 0; margin-bottom: 0.5rem; font-size: 1.1rem; }
.alert-block p { margin-bottom: 0; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.report-footer { background: #0f172a; color: #e2e8f0; padding: 3rem 0; text-align: center; border-top: 1px solid #1e293b; margin-top: 4rem; width: 100%; clear: both; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-content p { margin: 0.5rem 0; font-size: 0.9rem; }
.footer-content a { color: #6ee7b7; text-decoration: none; transition: color 0.2s; }
.footer-content a:hover { color: #a7f3d0; }
