/* Gooner Capital White Paper Styles */

/* CSS Variables */
:root {
    --primary-navy: #0a0e27;
    --secondary-navy: #1a1f3a;
    --primary-color: #ff6b00;
    --accent-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --text-muted: #6b7280;
    --border-color: #2a3441;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --background-dark: #0a0e27;
    --background-section: #141937;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    background: var(--primary-navy);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

/* Ensure all text is visible */
* {
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

p, li, span, div, td, th, label, input {
    color: var(--text-primary) !important;
}

/* Specific whitepaper content visibility */
.whitepaper-section * {
    color: var(--text-primary) !important;
}

.whitepaper-section p {
    color: var(--text-secondary) !important;
}

/* White Paper Header */
.whitepaper-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.whitepaper-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s linear infinite;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.header-content h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.header-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.header-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--accent-gold);
}

/* White Paper Sections */
.whitepaper-section {
    padding: 80px 0;
    background: var(--background-dark);
}

.whitepaper-section:nth-child(even) {
    background: var(--background-section);
}

.whitepaper-section h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
}

.whitepaper-section h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    margin-top: 48px;
    color: var(--text-primary);
}

.whitepaper-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.whitepaper-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.summary-card.highlight {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.summary-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    margin-top: 0;
    color: var(--text-primary);
}

.key-stat {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.summary-card p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Thesis Overview */
.thesis-overview {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--accent-gold);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.thesis-overview h3 {
    margin-top: 0;
    color: var(--accent-gold);
}

/* Market Stats */
.market-stats {
    margin: 40px 0;
}

.stat-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    max-width: 500px;
}

.stat-block h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    margin-top: 0;
}

.stat-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-block li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.stat-block li:last-child {
    border-bottom: none;
}

.source {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 16px;
}

/* Mechanism Grid */
.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.mechanism-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
}

.mechanism-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.mechanism-card h4 {
    color: var(--accent-gold);
    margin-top: 0;
    margin-bottom: 12px;
}

.mechanism-card p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Scenario Chart */
.scenario-chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    margin: 40px 0;
}

#scenarioChart {
    max-width: 100%;
    height: 400px;
}

/* Scenarios Grid */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.scenario-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.scenario-card.conservative {
    border-left: 4px solid #ff6b6b;
}

.scenario-card.base {
    border-left: 4px solid var(--accent-gold);
}

.scenario-card.upside {
    border-left: 4px solid #4caf50;
}

.scenario-card h4 {
    margin-top: 0;
    margin-bottom: 16px;
}

.scenario-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.scenario-card p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Interactive effects for scenarios */
.scenario-card {
    cursor: pointer;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.scenario-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    background: rgba(255, 107, 0, 0.05);
}

/* Fade-in animations - default visible, enhance with JS */
.whitepaper-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.whitepaper-section.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.whitepaper-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.whitepaper-section.in-view {
    box-shadow: inset 0 0 0 2px rgba(255, 107, 0, 0.1);
}

/* Navigation Styles for White Paper */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.nav-logo .logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
}

/* Flywheel step highlighting */
.flywheel-step {
    transition: all 0.3s ease;
}

.flywheel-step.highlighted {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
    border-color: var(--primary-color);
}

/* Economics Comparison */
.economics-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.economics-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.economics-card.legacy {
    border-left: 4px solid #ff6b6b;
}

.economics-card.onchain {
    border-left: 4px solid #4caf50;
}

.economics-card h4 {
    margin-top: 0;
    margin-bottom: 16px;
}

.economics-stat {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.economics-arrow {
    font-size: 24px;
    color: var(--accent-gold);
    font-weight: bold;
}

.economics-card small {
    display: block;
    margin-top: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Formula Block */
.formula-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.formula-block h4 {
    margin-top: 0;
    color: var(--accent-gold);
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-gold);
}

/* Flywheel Diagram */
.flywheel-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.flywheel-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    position: relative;
    transition: var(--transition);
}

.flywheel-step:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent-gold);
    color: var(--primary-navy);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.flywheel-step h4 {
    margin-top: 12px;
    margin-bottom: 12px;
    color: var(--accent-gold);
}

.flywheel-step p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Strategy Breakdown */
.strategy-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.strategy-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
}

.strategy-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.strategy-item h4 {
    margin-top: 0;
    color: var(--accent-gold);
}

.strategy-item p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.metric-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
}

.metric-category h4 {
    margin-top: 0;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.metric-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metric-category li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-category li:last-child {
    border-bottom: none;
}

/* Definitions Grid */
.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.definition-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    border-left: 4px solid var(--accent-gold);
}

.definition-card h4 {
    margin-top: 0;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
}

.definition-card p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Risk Analysis */
.risk-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.risk-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    border-left: 4px solid #ff6b6b;
}

.risk-category h4 {
    margin-top: 0;
    color: #ff6b6b;
}

.risk-category p {
    font-size: 14px;
    margin-bottom: 8px;
}

/* Conclusion */
.whitepaper-conclusion {
    background: linear-gradient(135deg, var(--background-section) 0%, var(--background-dark) 100%);
    padding: 80px 0;
    border-top: 2px solid var(--accent-gold);
}

.whitepaper-conclusion h2 {
    font-family: var(--font-display);
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.conclusion-statement {
    font-size: 20px;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 500;
}

.conclusion-points {
    margin: 40px 0;
}

.point {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-secondary);
}

.point i {
    color: var(--accent-gold);
    font-size: 18px;
}

.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cta-section h3 {
    margin-top: 0;
    color: var(--accent-gold);
}

.whitepaper-ctas {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sources Section */
.sources-section {
    background: var(--primary-navy);
    padding: 60px 0;
}

.sources-section h2 {
    font-family: var(--font-display);
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.sources-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.source-category h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.source-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-category li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.source-category li:last-child {
    border-bottom: none;
}

/* White Paper Footer */
.whitepaper-footer {
    background: var(--background-dark);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.whitepaper-footer .footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.whitepaper-footer h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.whitepaper-footer h4 {
    margin-top: 0;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.whitepaper-footer .footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.whitepaper-footer .footer-bottom p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.whitepaper-footer .footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .whitepaper-header {
        padding: 100px 0 60px;
    }
    
    .header-content h1 {
        font-size: 36px;
    }
    
    .header-content h2 {
        font-size: 24px;
    }
    
    .header-subtitle {
        font-size: 16px;
    }
    
    .header-meta {
        flex-direction: column;
        gap: 16px;
    }
    
    .whitepaper-section {
        padding: 60px 0;
    }
    
    .whitepaper-section h2 {
        font-size: 32px;
    }
    
    .whitepaper-section h3 {
        font-size: 24px;
    }
    
    .economics-comparison {
        flex-direction: column;
        gap: 20px;
    }
    
    .economics-arrow {
        transform: rotate(90deg);
    }
    
    .whitepaper-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .whitepaper-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .whitepaper-section {
        padding: 50px 0;
    }
    
    .summary-grid,
    .scenarios-grid,
    .flywheel-diagram,
    .strategy-breakdown {
        grid-template-columns: 1fr;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}