/* Tracking page only. Flame tier borders stay in styles.css. */

body {
    background: #0B0F17;
}

body.light-mode {
    background: #F1F5F9;
}

.tracking-heading-block h1.em-page-title {
    color: #E8ECF4;
}

.tracking-heading-block .tracking-heading-sub {
    color: #A0AABC;
}

.insight-box {
    background: rgba(124, 58, 237, 0.055);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-left: 4px solid #7C3AED;
    margin-bottom: 25px;
    box-shadow: none;
}

.tracking-insight-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #E8ECF4;
    font-size: 16px;
    font-weight: 600;
}

.em-insight-spark {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: #B69AFB;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(182, 154, 251, 0.35));
}

#smartInsightText {
    margin: 0;
    color: #E8ECF4;
    font-size: 14px;
    line-height: 1.6;
}

.tracking-content .tracking-stat-card,
.tracking-content .chart-card {
    background: #151B27;
    border: 1px solid #252D3B;
    border-radius: 16px;
    box-shadow: none;
    text-align: center;
}

.tracking-content .tracking-stat-card {
    padding: 25px;
}

.tracking-content .chart-card {
    padding: 20px;
    width: 100%;
    height: 350px;
    position: relative;
}

.tracking-content .tracking-stat-card:hover,
.tracking-content .chart-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #252D3B;
}

.tracking-content .tracking-stat-card h3,
.tracking-content .tracking-stat-card .tracking-stat-sub,
.tracking-content .tracking-stat-card .tracking-stat-suffix,
.tracking-content .chart-card h3 {
    color: #A0AABC;
    text-shadow: none;
}

.tracking-content .tracking-stat-value {
    color: #E8ECF4;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}

#streakStatCard {
    background: #151B27;
}

body.light-mode .tracking-heading-block h1.em-page-title,
body.light-mode #smartInsightText,
body.light-mode .tracking-insight-title,
body.light-mode .tracking-content .tracking-stat-value {
    color: #0F172A;
}

body.light-mode .tracking-heading-block .tracking-heading-sub,
body.light-mode .tracking-content .tracking-stat-card h3,
body.light-mode .tracking-content .tracking-stat-card .tracking-stat-sub,
body.light-mode .tracking-content .chart-card h3 {
    color: #64748B;
}

body.light-mode .insight-box {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.22);
    border-left-color: #7C3AED;
}

body.light-mode .em-insight-spark {
    stroke: #7C3AED;
    filter: none;
}

body.light-mode .tracking-content .tracking-stat-card,
body.light-mode .tracking-content .chart-card {
    background: #F8F9FC;
    border-color: #E2E6EE;
}

body.light-mode #streakStatCard {
    background: #F8F9FC;
}

#streakStatCard #streakCountText {
    color: #E8ECF4;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}

.em-track-stat-icon {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto 8px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.em-track-stat-icon--tasks {
    stroke: #B69AFB;
    filter: drop-shadow(0 0 6px rgba(182, 154, 251, 0.28));
}

.em-track-stat-icon--focus {
    stroke: #83C5BE;
    filter: drop-shadow(0 0 6px rgba(131, 197, 190, 0.22));
}

.em-track-stat-icon--score {
    stroke: #A78BFA;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.28));
}

.week-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    color: #B69AFB;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #252D3B;
    border-radius: 6px;
    transform: none;
    box-shadow: none;
}

.week-nav-btn:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(139, 92, 246, 0.45);
    transform: none;
    box-shadow: none;
}

.week-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.em-week-chevron {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(182, 154, 251, 0.35));
}

.week-nav-btn:disabled .em-week-chevron {
    filter: none;
}

body.light-mode #streakStatCard #streakCountText {
    color: #0F172A;
    text-shadow: none;
}

body.light-mode .em-track-stat-icon--tasks,
body.light-mode .em-track-stat-icon--score,
body.light-mode .week-nav-btn {
    stroke: #7C3AED;
    color: #7C3AED;
}

body.light-mode .em-track-stat-icon--focus {
    stroke: #0F766E;
}

body.light-mode .em-track-stat-icon,
body.light-mode .em-week-chevron {
    filter: none;
}

body.light-mode .week-nav-btn {
    background: #F8F9FC;
    border-color: #E2E6EE;
}

body.light-mode .week-nav-btn:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .em-insight-spark,
    .em-track-stat-icon,
    .em-week-chevron {
        filter: none;
    }
}
