/* Thermal Battery Goldmine Report - Main Styles */
/* Energy Solutions 2026 */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-gold: #f7b801;
    --success-green: #00c896;
    --warning-orange: #ff9f1c;
    --danger-red: #e71d36;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border-color: #dfe6e9;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light-bg);
    font-size: 16px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-link.reports-link {
    background: var(--accent-gold);
    color: var(--dark-bg);
}

/* Reading Progress */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    z-index: 2000;
    transition: width 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Container & Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav .nav-link {
    color: var(--text-light);
    padding: 0.7rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,107,53,0.05);
    border-left-color: var(--primary-color);
}

.sidebar-nav .nav-link.active {
    background: rgba(255,107,53,0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d3561 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--dark-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

/* Thesis Box */
.thesis-box {
    background: rgba(247,184,1,0.15);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.thesis-box h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.highlight-text {
    background: rgba(255,107,53,0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Section Styles */
.content-section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-gold);
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Cards */
.tech-card, .market-card, .water-waste-card, .oman-card, .usa-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.tech-card h4, .market-card h4 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tech-intro, .tech-details {
    margin: 1.5rem 0;
}

.detail-item {
    margin: 1.5rem 0;
}

.detail-item h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.detail-item ul {
    margin-left: 1.5rem;
}

.detail-item li {
    margin: 0.5rem 0;
}

/* Formula Box */
.formula-box {
    background: var(--dark-bg);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.formula {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    text-align: center;
    margin: 1rem 0;
    color: var(--accent-gold);
}

.formula-explanation {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
}

/* Info & Warning Boxes */
.info-box, .warning-box, .insight-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box {
    background: rgba(0,200,150,0.1);
    border-left-color: var(--success-green);
}

.warning-box {
    background: rgba(255,159,28,0.1);
    border-left-color: var(--warning-orange);
}

.insight-box {
    background: rgba(255,107,53,0.1);
    border-left-color: var(--primary-color);
}

.emphasis {
    font-weight: 700;
    color: var(--primary-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th {
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: rgba(255,107,53,0.05);
}

.positive {
    color: var(--success-green);
    font-weight: 600;
}

.negative {
    color: var(--danger-red);
    font-weight: 600;
}

.neutral {
    color: var(--text-light);
}

/* Chart Container */
.chart-container {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
