/* Game Plan page — extends styles.css's dark theme (#1a1a1f body / #1e1e24 cards /
   #333 borders / #00ffcc accent). Scoped styles only live here; shared chrome
   (top-nav-bar, subtab-bar) is inline in gameplan.html to match index.html/journal.html. */

.gp-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

.gp-date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.gp-date-nav-btn {
    background: #2a2a2e;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.gp-date-nav-btn:hover { border-color: #00ffcc; color: #00ffcc; }

.gp-date-label {
    font-size: 15px;
    font-weight: 600;
    color: #ddd;
    min-width: 180px;
    text-align: center;
}
.gp-date-label.is-today { color: #00ffcc; }

.gp-section {
    background: #1e1e24;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.gp-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gp-section-title .gp-hint {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    color: #666;
    letter-spacing: 0;
}

/* Pinned "index card" — My Rules gets a distinct gold accent, not teal, so it reads
   visually separate from the live/computed sections below it. */
.gp-rules-card {
    background: #201c14;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.gp-rules-card .gp-section-title { color: #d4af37; }

.gp-textarea {
    width: 100%;
    background: #14141a;
    color: #eee;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
}
.gp-textarea:focus { outline: none; border-color: #00ffcc; }
.gp-rules-card .gp-textarea:focus { border-color: #d4af37; }

.gp-save-indicator {
    font-size: 11px;
    color: #666;
    margin-top: 6px;
    height: 14px;
    transition: opacity 0.3s;
}
.gp-save-indicator.saved { color: #00cc66; }

.gp-input {
    background: #14141a;
    color: #eee;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}
.gp-input:focus { outline: none; border-color: #00ffcc; }

.gp-risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.gp-risk-field label { display: block; font-size: 12px; color: #999; margin-bottom: 5px; }
.gp-risk-field .gp-input { width: 100%; }

.gp-chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.gp-chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #26262c;
    color: #aaa;
    border: 1px solid #3a3a3a;
}
.gp-chip.warn { background: rgba(255,59,48,0.12); color: #ff6b6b; border-color: rgba(255,59,48,0.35); font-weight: 600; }
.gp-chip.news { background: rgba(255,179,0,0.12); color: #ffb300; border-color: rgba(255,179,0,0.35); }
.gp-chip.ok { background: rgba(0,204,102,0.1); color: #00cc66; border-color: rgba(0,204,102,0.3); }

.gp-empty {
    color: #666;
    font-size: 13px;
    font-style: italic;
    padding: 8px 0;
}

.gp-pair-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2e;
}
.gp-pair-row:last-child { border-bottom: none; }
.gp-pair-symbol {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    min-width: 72px;
    flex-shrink: 0;
}
.gp-pair-match-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #00ffcc;
    background: rgba(0,255,204,0.08);
    border: 1px solid rgba(0,255,204,0.3);
    border-radius: 10px;
    padding: 1px 8px;
    margin-right: 8px;
    flex-shrink: 0;
}
.gp-pair-reasons { color: #999; font-size: 12px; line-height: 1.6; }

.gp-idea-card {
    background: #17171b;
    border: 1px solid #333;
    border-left: 3px solid #00ffcc;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.gp-idea-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.gp-idea-card-head .sym { font-weight: 700; font-size: 14px; }
.gp-idea-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #333;
    color: #ccc;
}
.gp-idea-status.READY { background: rgba(0,204,102,0.15); color: #00cc66; }
.gp-idea-status.PENDING_KILLZONE { background: rgba(255,179,0,0.15); color: #ffb300; }
.gp-idea-status.WATCHING { background: rgba(255,140,0,0.15); color: #ff9800; }
.gp-idea-thesis { color: #aaa; font-size: 12px; line-height: 1.5; margin-bottom: 6px; overflow-wrap: break-word; }
.gp-idea-plan { color: #777; font-size: 11px; font-family: 'SF Mono', Monaco, monospace; overflow-wrap: break-word; }

.gp-gut-read-label { font-size: 11px; color: #666; margin: 8px 0 4px; }

.gp-checklist-item { margin-bottom: 10px; }

/* Twice-daily snapshot sections — cautions/movers/currency strength */
.gp-caution-item {
    border-left: 3px solid #ff6b6b;
    background: rgba(255,59,48,0.06);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
}
.gp-caution-text { color: #eee; font-size: 13px; line-height: 1.5; }
.gp-caution-rule { color: #999; font-size: 11px; margin-top: 4px; font-style: italic; }

.gp-mover-row, .gp-strength-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2e;
    font-size: 13px;
}
.gp-mover-row:last-child, .gp-strength-row:last-child { border-bottom: none; }

/* [v2.4.0] Coach briefing blocks — market read, session plan, one-focus */
.gp-brief-subhead {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #777;
    margin: 12px 0 6px;
}
.gp-brief-subhead:first-child { margin-top: 0; }
.gp-market-read {
    color: #ddd;
    font-size: 13px;
    line-height: 1.65;
    background: #17171b;
    border: 1px solid #2f2f36;
    border-left: 3px solid #00ffcc;
    border-radius: 4px;
    padding: 10px 12px;
    overflow-wrap: break-word;
}
.gp-plan-card {
    background: #17171b;
    border: 1px solid #333;
    border-left: 3px solid #38bdf8;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.gp-plan-head { font-weight: 700; font-size: 13px; color: #fff; margin-bottom: 4px; }
.gp-plan-head span { color: #888; font-weight: 600; font-size: 11px; letter-spacing: 0.5px; }
.gp-plan-note { color: #bbb; font-size: 12.5px; line-height: 1.6; overflow-wrap: break-word; }
.gp-one-focus {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 4px;
    background: rgba(0,255,204,0.07);
    border: 1px solid rgba(0,255,204,0.25);
    color: #00ffcc;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: break-word;
}
.gp-caution-text, .gp-caution-rule, .gp-pair-reasons { overflow-wrap: break-word; }

/* [v2.4.0] Mobile pass — the briefing sections previously had no small-screen rules:
   long coach sentences and monospace plan lines overflowed their cards. */
@media (max-width: 600px) {
    .gp-page { padding: 14px 10px 60px; }
    .gp-section, .gp-rules-card { padding: 13px 12px; }
    .gp-section-title { flex-wrap: wrap; gap: 4px; }
    .gp-section-title .gp-hint { width: 100%; }
    .gp-date-label { min-width: 0; }
    .gp-idea-card, .gp-plan-card { padding: 10px; }
    .gp-idea-card-head { flex-wrap: wrap; gap: 4px; }
    .gp-pair-symbol { min-width: 0; }
    .gp-market-read, .gp-plan-note { font-size: 12.5px; }
}
