/* Dashboard Styles - This Week's Dashboard
 * Embedded CSS for dashboard template
 * Created: May 2026
 * NO TABLE PREFIXES
 */

*{box-sizing:border-box;margin:0;padding:0}

.db{
    background:rgba(15,17,23,0.65);
    color:#f0f0f0;
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    padding:28px 40px;
    min-height:100vh;
    max-width:1040px;
    margin:0 auto;
    border-radius:16px
}

.inner{max-width:960px;margin:0 auto}

/* Header Card */
.header-card{
    background:#1a1d2e !important;
    border:1px solid rgba(245,158,11,0.22);
    box-shadow:0 0 0 1px rgba(245,158,11,0.05),0 0 18px rgba(245,158,11,0.05);
    border-radius:12px;
    padding:25px 30px;
    margin-bottom:18px
}

.greeting{font-size:30px;font-weight:600;color:#f0f0f0;margin-bottom:6px}
.role-line{font-size:17px;color:#8b8fa8}

/* Trial countdown bar */
.bar-row{display:flex;align-items:center;gap:14px;margin-top:14px}
.bar-track{
    width:230px;
    height:7px;
    background:rgba(255,255,255,0.08);
    border-radius:4px;
    overflow:hidden
}
.bar-fill{height:100%;border-radius:4px;background:#f59e0b}
.bar-caption{font-size:16px;font-weight:500;color:#f59e0b}

/* Market Catalysts Strip */
.catalyst-strip{
    background:#1a1d2e !important;
    border:1px solid rgba(245,158,11,0.22);
    box-shadow:0 0 0 1px rgba(245,158,11,0.05),0 0 18px rgba(245,158,11,0.05);
    border-radius:11px;
    padding:15px 21px;
    margin-bottom:16px
}

.strip-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:13px
}

.strip-title{
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    color:#8b8fa8
}

.strip-week{font-size:13px;color:#4a4f66}
.events-row{display:flex;gap:7px;flex-wrap:wrap}

.ep{
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 13px;
    border-radius:8px;
    border:1px solid
}

.ep-day{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;min-width:23px}
.ep-sep{width:1px;height:13px;background:rgba(255,255,255,0.1)}
.ep-name{font-size:16px;font-weight:700;letter-spacing:0.2px}
.ep-time{font-size:14px;opacity:0.65;color:#8b8fa8}

/* Catalyst color classes */
.ep.cpi{background:rgba(251,146,60,0.08);border-color:rgba(251,146,60,0.3);color:#fb923c}
.ep.ppi{background:rgba(245,158,11,0.08);border-color:rgba(245,158,11,0.3);color:#f59e0b}
.ep.nfp{background:rgba(34,197,94,0.07);border-color:rgba(34,197,94,0.28);color:#22c55e}
.ep.fomc{background:rgba(167,139,250,0.08);border-color:rgba(167,139,250,0.3);color:#a78bfa}
.ep.mopex{background:rgba(59,130,246,0.08);border-color:rgba(59,130,246,0.3);color:#3b82f6}
.ep.earnings{background:rgba(34,211,238,0.07);border-color:rgba(34,211,238,0.28);color:#22d3ee}
.ep.gdp{background:rgba(139,143,168,0.07);border-color:rgba(139,143,168,0.2);color:#8b8fa8}

/* Section titles */
.section-title{
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.9px;
    color:#8b8fa8;
    margin-bottom:14px
}

/* Game Plan Cards */
.game-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-bottom:18px
}

.g-card{
    background:#1a1d2e !important;
    border:1px solid rgba(245,158,11,0.22);
    box-shadow:0 0 0 1px rgba(245,158,11,0.05),0 0 18px rgba(245,158,11,0.05);
    border-radius:14px;
    padding:23px 25px;
    cursor:pointer;
    transition:border-color 0.18s,box-shadow 0.18s;
    position:relative;
    display:flex;
    flex-direction:column;
    overflow:hidden
}

.g-card:hover{border-color:rgba(245,158,11,0.35);box-shadow:0 0 0 1px rgba(245,158,11,0.08),0 0 24px rgba(245,158,11,0.08)}
.g-card.done{border-color:rgba(34,197,94,0.28)}

.g-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
/* Emoji lives inline inside .g-title now */
.g-icon{font-size:24px;display:inline-block;vertical-align:middle;margin-right:6px}


.g-check{
    width:23px;
    height:23px;
    border-radius:50%;
    background:#22c55e;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    color:#fff
}

.g-title{font-size:21px;font-weight:600;color:#f0f0f0;margin:0;display:flex;align-items:center;gap:2px}


/* Card data display */
.g-data{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-bottom:14px;
    padding:12px 14px;
    background:rgba(255,255,255,0.03);
    border-radius:9px;
    border:1px solid rgba(255,255,255,0.05)
}

.g-row{display:flex;justify-content:space-between;align-items:center}
.g-key{font-size:15px;color:#8b8fa8}
.g-val{font-size:16px;font-weight:600;color:#f0f0f0}
.g-val.green{color:#22c55e}
.g-val.amber{color:#f59e0b}
.g-val.red{color:#ef4444}
.g-val.blue{color:#3b82f6}
.g-val.hot{color:#ef4444}

.g-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,0.05)
}

.g-action{font-size:14px;font-weight:600;color:#3b82f6}

/* Single-line "As of" caption used by the MEGA0DTE card to indicate data freshness */
.g-caption{
    display:flex;
    align-items:baseline;
    gap:6px;
    color:#8b8fa8;
    margin-top:-4px;
    margin-bottom:10px;
    letter-spacing:0.2px
}
.g-caption-main{font-size:12px;color:#8b8fa8}
.g-caption-sub{font-size:10px;color:#4a4f66}


/* Blur/upgrade overlay for mega_basic */
.upgrade-overlay{
    display:flex;
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    height:65%;
    z-index:3;
    background:linear-gradient(to bottom,rgba(15,17,23,0) 0%,rgba(15,17,23,0.92) 35%,rgba(15,17,23,0.97) 100%);
    border-radius:0 0 14px 14px;
    align-items:flex-end;
    padding:18px 25px
}

.upgrade-btn{
    width:100%;
    padding:12px;
    background:#fbbf24;
    color:#000;
    border:none;
    border-radius:9px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    text-align:center;
    transition:background 0.15s
}
.upgrade-btn:hover{background:#f59e0b}

/* Checklist */
.checklist-card{
    background:#1a1d2e !important;
    border:1px solid rgba(245,158,11,0.22);
    box-shadow:0 0 0 1px rgba(245,158,11,0.05),0 0 18px rgba(245,158,11,0.05);
    border-radius:14px;
    padding:21px 25px;
    margin-bottom:18px
}

.cl-row{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:16px}
.cl-item{display:flex;align-items:flex-start;gap:8px}

.cl-circle{
    width:20px;
    height:20px;
    border-radius:50%;
    border:2px solid #4a4f66;
    flex-shrink:0;
    margin-top:2px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px
}

.cl-circle.done{background:#22c55e;border-color:#22c55e;color:#fff}
.cl-text{font-size:16px;color:#8b8fa8;line-height:1.4}
.cl-text.done{color:#22c55e;text-decoration:line-through}

/* Checklist links */
.cl-link{text-decoration:none;transition:color 0.15s}
.cl-link:not(.done):hover{color:#f0f0f0}

/* Amber title for trial checklist */
.section-title.amber-title{color:#f59e0b}

/* Highlight the first incomplete checklist item */
.cl-item.cl-highlight{
    background:rgba(245,158,11,0.08);
    border-radius:8px;
    padding:6px 8px;
    margin:-6px -8px
}
.cl-item.cl-highlight .cl-text{color:#f0f0f0;font-weight:500}
.cl-item.cl-highlight .cl-circle{border-color:#f59e0b}

/* Progress bar */
.prog-row{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.prog-track{
    flex:1;
    height:6px;
    background:rgba(255,255,255,0.07);
    border-radius:4px;
    overflow:hidden
}
.prog-fill{height:100%;border-radius:4px}
.prog-label{font-size:16px;color:#8b8fa8;white-space:nowrap}

/* CTA blocks */
.cta-block{border-radius:9px;padding:14px 18px}
.cta-block.amber-bg{
    background:rgba(245,158,11,0.07);
    border:1px solid rgba(245,158,11,0.18)
}

.cta-text{font-size:17px;margin-bottom:10px}
.cta-text.amber{color:#f59e0b}
.cta-text.muted{color:#8b8fa8;margin-bottom:0}

.btn{
    display:inline-block;
    padding:10px 21px;
    border-radius:9px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    border:none;
    text-align:center
}
.btn.blue{background:#fbbf24;color:#000}
.btn.blue:hover{background:#f59e0b}
.btn.full{width:100%}

/* Quick links */
.quick-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}

.q-card{
    background:#1a1d2e !important;
    border:1px solid rgba(245,158,11,0.22);
    box-shadow:0 0 0 1px rgba(245,158,11,0.05),0 0 18px rgba(245,158,11,0.05);
    border-radius:14px;
    padding:16px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:12px;
    transition:border-color 0.15s,box-shadow 0.15s
}

.q-card:hover{border-color:rgba(245,158,11,0.35);box-shadow:0 0 0 1px rgba(245,158,11,0.08),0 0 22px rgba(245,158,11,0.08)}
.q-icon{font-size:21px;flex-shrink:0}
.q-label{font-size:15px;color:#f0f0f0;font-weight:500}
.q-sub{font-size:13px;color:#8b8fa8}

/* Gated blur — data renders but is blurred behind upgrade overlay */
.gated-blur{
    filter:blur(12px);
    pointer-events:none;
    user-select:none
}

/* Teaser mode — data visible but clicks go to /upgrade/ */
.g-card[data-access="teaser"]{
    border-color:rgba(59,130,246,0.25);
    box-shadow:0 0 0 1px rgba(59,130,246,0.06),0 0 18px rgba(59,130,246,0.06)
}
.g-card[data-access="teaser"]:hover{
    border-color:rgba(59,130,246,0.4);
    box-shadow:0 0 0 1px rgba(59,130,246,0.1),0 0 22px rgba(59,130,246,0.1)
}
.teaser-chip{
    color:#3b82f6 !important;
    font-weight:600
}

/* Preview mode indicator */
.preview-banner{
    background:rgba(245,158,11,0.12);
    border:1px solid rgba(245,158,11,0.3);
    border-radius:8px;
    padding:8px 16px;
    margin-bottom:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:13px;
    color:#f59e0b
}
.preview-banner a{color:#3b82f6;text-decoration:none;font-weight:500}
.preview-banner a:hover{text-decoration:underline}

/* ─── Opinion Feed ─────────────────────────────────────────── */
.opinion-card{
    background:#1a1d2e !important;
    border:1px solid rgba(245,158,11,0.22);
    box-shadow:0 0 0 1px rgba(245,158,11,0.05),0 0 18px rgba(245,158,11,0.05);
    border-radius:14px;
    padding:10px 0;
    margin-bottom:18px
}
.op-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    padding:14px 25px;
    cursor:pointer;
    transition:background 0.12s
}
.op-row:hover{background:rgba(255,255,255,0.03)}
.op-divider{height:1px;background:rgba(255,255,255,0.05);margin:0 25px}
.op-left{flex:1;min-width:0}
.op-headline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.op-dot{font-size:12px;flex-shrink:0}
.op-title{font-size:16px;font-weight:600;color:#f0f0f0}
.op-badge{
    background:#f59e0b;
    color:#000;
    font-size:10px;
    font-weight:700;
    padding:2px 7px;
    border-radius:4px;
    text-transform:uppercase;
    letter-spacing:0.5px;
    flex-shrink:0
}
.op-hook{font-size:14px;color:#8b8fa8;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.op-date{font-size:13px;color:#4a4f66;white-space:nowrap;flex-shrink:0;padding-top:2px}

/* Unread row subtle highlight */
.op-unread{border-left:3px solid #f59e0b;padding-left:22px}

/* Feed scroll cap — show ~6 entries, scroll for more */
.opinion-card{
    max-height:460px;
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,0.12) transparent
}
.opinion-card::-webkit-scrollbar{width:5px}
.opinion-card::-webkit-scrollbar-track{background:transparent}
.opinion-card::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.12);border-radius:3px}

/* ─── Opinion Modal ────────────────────────────────────────── */
.op-modal-overlay{
    display:none;
    position:fixed;
    top:0;left:0;right:0;bottom:0;
    background:rgba(0,0,0,0.75);
    z-index:9999;
    justify-content:center;
    align-items:center;
    backdrop-filter:blur(4px)
}
.op-modal-overlay.active{display:flex}
.op-modal{
    background:#1a1d2e;
    border:1px solid rgba(245,158,11,0.3);
    border-radius:16px;
    width:90%;
    max-width:640px;
    max-height:85vh;
    overflow-y:auto;
    padding:30px 35px;
    position:relative;
    box-shadow:0 25px 60px rgba(0,0,0,0.5)
}
.op-modal-close{
    position:absolute;
    top:16px;right:20px;
    background:none;
    border:none;
    color:#8b8fa8;
    font-size:28px;
    cursor:pointer;
    line-height:1;
    padding:4px
}
.op-modal-close:hover{color:#f0f0f0}
.op-modal-header{display:flex;align-items:flex-start;gap:12px;margin-bottom:24px}
.op-modal-dot-wrap{display:flex;flex-direction:column;align-items:center;gap:3px;flex-shrink:0;padding-top:4px}
.op-modal-title{font-size:22px;font-weight:600;color:#f0f0f0;margin:0}

/* Status pill label in modal */
.op-status-pill{
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.6px;
    padding:1px 6px;
    border-radius:3px;
    white-space:nowrap
}
.op-status-confirmed{background:rgba(34,197,94,0.15);color:#22c55e}
.op-status-contested{background:rgba(245,158,11,0.15);color:#f59e0b}
.op-status-falsified{background:rgba(239,68,68,0.15);color:#ef4444}
.op-status-monitoring{background:rgba(245,158,11,0.12);color:#d4a017}
.op-status-new{background:rgba(255,255,255,0.08);color:#8b8fa8}

/* Modal sections */
.op-section{margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,0.06)}
.op-section:last-of-type{border-bottom:none}
.op-section-label{
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    color:#8b8fa8;
    margin-bottom:8px
}
.op-section-body{font-size:15px;color:#d1d5db;line-height:1.7;white-space:pre-wrap}
.op-source-link{
    display:inline-block;
    font-size:13px;
    color:#3b82f6;
    text-decoration:none;
    margin-top:8px;
    margin-right:12px
}
.op-source-link:hover{text-decoration:underline}
.op-source-date{font-size:13px;color:#4a4f66}
.op-watch-list{list-style:none;padding:0;margin:0}
.op-watch-list li{
    padding:6px 0;
    font-size:15px;
    color:#d1d5db;
    line-height:1.5;
    border-bottom:1px solid rgba(255,255,255,0.04);
    padding-left:16px;
    position:relative
}
.op-watch-list li::before{
    content:'•';
    position:absolute;
    left:0;
    color:#f59e0b;
    font-weight:bold
}
.op-watch-list li:last-child{border-bottom:none}
.op-thesis-impact{
    background:rgba(245,158,11,0.08);
    border:1px solid rgba(245,158,11,0.2);
    border-radius:8px;
    padding:10px 14px;
    font-size:14px;
    color:#f59e0b;
    margin-top:8px
}

/* Mobile responsive */
@media (max-width:720px){
    .db{padding:18px 14px}
    .game-grid{grid-template-columns:1fr}
    .cl-row{grid-template-columns:1fr}
    .quick-row{grid-template-columns:1fr 1fr}
    .bar-row{flex-direction:column;align-items:flex-start;gap:8px}
    .bar-track{width:100%}

    /* Opinion feed mobile */
    .op-row{padding:12px 18px}
    .op-divider{margin:0 18px}
    .op-title{font-size:15px}
    .op-hook{font-size:13px;-webkit-line-clamp:3}
    .op-unread{padding-left:15px}

    /* Modal → bottom-sheet on mobile */
    .op-modal-overlay.active{align-items:flex-end}
    .op-modal{
        width:100%;
        max-width:100%;
        max-height:90vh;
        border-radius:20px 20px 0 0;
        padding:24px 20px;
        animation:slideUp 0.25s ease-out
    }
    .op-modal::before{
        content:'';
        display:block;
        width:40px;
        height:4px;
        background:rgba(255,255,255,0.2);
        border-radius:2px;
        margin:0 auto 16px
    }
    .op-modal-title{font-size:19px}
}

@keyframes slideUp{
    from{transform:translateY(100%)}
    to{transform:translateY(0)}
}
