/* ============================================
   REPORT DETAIL - PRIMEVERSE INSPIRED DESIGN
   Modern Green/Blue Glassmorphism Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   COLOR VARIABLES - Green/Blue Theme
   ============================================ */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    /* Ocean Blue Gradient */
    --blue-from: #0ea5e9;    /* Ocean blue */
    --blue-to: #38bdf8;      /* Sky blue */
    --blue-glow: rgba(14, 165, 233, 0.3);

    /* Green Gradient (Secondary) */
    --green-from: #10b981;
    --green-to: #34d399;
    --green-glow: rgba(16, 185, 129, 0.3);

    /* Accent Colors - Ocean Palette */
    --accent-blue: #0ea5e9;  /* Ocean blue */
    --accent-sky: #38bdf8;   /* Sky blue */
    --accent-green: #10b981;
    --accent-cyan: #06b6d4;

    /* Semantic Colors */
    --success: #10b981;
    --danger: #ff3366;
    --warning: #0ea5e9;  /* Ocean blue */
    --neutral: #888888;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Glass Effects */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-blue: 0 8px 32px var(--blue-glow);
    --shadow-green: 0 8px 32px var(--green-glow);

    /* Border Radius */
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE OVERRIDES
   ============================================ */
.pair-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--accent-cyan);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--accent-blue);
    font-weight: 600;
}

/* ============================================
   REPORT HEADER - Hero Section
   ============================================ */
.report-header {
    background: linear-gradient(135deg, var(--blue-from) 0%, var(--blue-to) 100%);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-blue);
}


.report-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}


.report-title-section {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.pair-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.pair-code-large {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.pair-name-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.report-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* Meta Grid */
.report-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.meta-item {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.meta-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.session-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   REPORT LAYOUT - Sidebar + Content
   ============================================ */
.report-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .report-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SIDEBAR - Glassmorphism Cards
   ============================================ */
.report-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}


.sidebar-section:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(9, 0, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(9, 0, 255, 0.25),
                0 0 0 1px rgba(9, 0, 255, 0.15) inset,
                0 0 40px rgba(9, 0, 255, 0.15);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fear Factor Section */
.fear-factor-section {
    border-left: 4px solid var(--accent-green);
}

/* OHLC Grid */
.ohlc-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ohlc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.ohlc-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.ohlc-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.ohlc-value.high {
    color: var(--success);
}

.ohlc-value.low {
    color: var(--danger);
}

.ohlc-value.positive {
    color: var(--success);
}

.ohlc-value.negative {
    color: var(--danger);
}

.ohlc-change {
    border-top: 1px solid var(--glass-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Candlestick Visual */
.ohlc-candlestick {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ohlc-candlestick svg {
    max-width: 100%;
    height: auto;
}

.candlestick-svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Candlestick styles from SVG */
.candle-label {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
}

/* Quick Actions */
.quick-actions {
    border-left: 4px solid var(--accent-blue);
}

.quick-link {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.quick-link:last-child {
    margin-bottom: 0;
}

.quick-link:hover {
    background: linear-gradient(135deg, var(--blue-from) 0%, var(--blue-to) 100%);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: var(--shadow-blue);
}

/* ============================================
   REPORT CONTENT - Main Article
   ============================================ */
.report-content {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.report-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Typography within report */
.report-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 100%) 1;
}

.report-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.report-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.report-body strong {
    color: var(--text-primary);
    font-weight: 700;
}

.report-body ul,
.report-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.report-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.report-body li::marker {
    color: var(--accent-blue);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.report-body table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
}

.report-body thead {
    background: linear-gradient(135deg, var(--blue-from) 0%, var(--blue-to) 100%);
}

.report-body th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.report-body td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.report-body tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.report-body tbody tr:last-child td {
    border-bottom: none;
}

/* Code Blocks */
.report-body pre,
.report-body code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
}

.report-body pre {
    padding: 1rem;
    overflow-x: auto;
}

/* Blockquotes */
.report-body blockquote {
    border-left: 4px solid var(--accent-green);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-blue) 100%) 1;
}

/* ============================================
   BIAS INDICATORS
   ============================================ */
.bias-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.bias-indicator.bias-long {
    background: linear-gradient(135deg, var(--green-from) 0%, var(--green-to) 100%);
    color: var(--bg-primary);
}

.bias-indicator.bias-short {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3);
}

.bias-indicator.bias-neutral {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

/* Confidence Badges */
.confidence-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.confidence-badge.confidence-high {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.confidence-badge.confidence-medium {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.confidence-badge.confidence-low {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* ============================================
   RELATED REPORTS
   ============================================ */
.related-reports {
    margin-top: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-session {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.related-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.related-bias {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.bias-mini {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bias-mini.bias-long {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.bias-mini.bias-short {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
}

.bias-mini.bias-neutral {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.confidence-mini {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .pair-detail-container {
        padding: 1rem 0.75rem;
    }

    .report-header {
        padding: 2rem 1.5rem;
    }

    .report-title {
        font-size: 1.75rem;
    }

    .pair-code-large {
        font-size: 1.5rem;
    }

    .report-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-layout {
        grid-template-columns: 1fr;
    }

    .report-sidebar {
        position: static;
    }

    .report-content {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATED GLOW EFFECTS
   ============================================ */
/* Green Glow for Long Bias */

/* Blue-Purple Glow for Short Bias */
