/* ==========================================
   Southbound Dashboard — Today
========================================== */

.eos-today-hero{

    position:relative;
    overflow:hidden;
    margin-bottom:28px;
    padding:6px 0 8px;

}

.eos-today-hero::before{

    content:"";
    position:absolute;
    top:-120px;
    right:-80px;
    width:360px;
    height:280px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(201,173,132,.10) 0%,rgba(201,173,132,.025) 45%,transparent 72%);
    pointer-events:none;

}

.eos-today-hero::after{

    content:"";
    position:absolute;
    top:50%;
    right:4px;
    width:190px;
    height:190px;
    transform:translateY(-50%);
    background-image:url('../brand/sb-mark.svg');
    background-size:contain;
    background-position:center;
    background-repeat:no-repeat;
    opacity:.045;
    mix-blend-mode:screen;
    filter:saturate(.9) brightness(1.15);
    pointer-events:none;

}

.eos-today-hero > div{

    position:relative;
    z-index:1;

}

.eos-today-eyebrow{

    color:var(--text-secondary);
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
    line-height:1.2;
    text-transform:uppercase;
    margin-bottom:8px;

}

.eos-today-hero h1{

    font-family:var(--font-display);
    font-size:44px;
    font-weight:400;
    letter-spacing:.5px;
    line-height:1;
    margin-bottom:8px;

}

.eos-today-phase{

    color:var(--text-secondary);
    font-size:14px;

}

/* ==========================
   Today card
========================== */
.eos-today-card{

    position:relative;
    overflow:hidden;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:24px 26px;
    margin-bottom:28px;

}

.eos-today-card::before{

    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:1px;
    background:linear-gradient(
        90deg,
        transparent 0%,
        rgba(201,173,132,.14) 22%,
        rgba(120,190,255,.55) 50%,
        rgba(166,138,98,.14) 78%,
        transparent 100%
    );
    pointer-events:none;

}

.eos-today-card-header{

    display:flex;
    align-items:baseline;
    justify-content:space-between;
    margin-bottom:16px;

}

.eos-today-card-header h2{

    font-size:18px;

}

.eos-today-date{

    color:var(--text-secondary);
    font-size:13px;

}

.eos-today-items{

    display:flex;
    flex-direction:column;
    gap:10px;

}
.eos-today-item{

    display:flex;
    align-items:center;
    gap:14px;
    background:var(--surface-light);
    border-radius:14px;
    padding:14px 16px;
    text-decoration:none;
    color:inherit;
    transition:.15s;

}

.eos-today-item:hover{

    background:rgba(201,173,132,.1);

}

.eos-today-item-icon{

    font-size:18px;
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:11px;
    background:color-mix(in srgb, currentColor 16%, transparent);

}

.eos-today-item-text{

    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;

}

.eos-today-item-text strong{

    font-size:14.5px;

}

.eos-today-item-text span{

    font-size:13px;
    color:var(--text-secondary);

}

.eos-today-item-run{

    padding:10px 10px 10px 16px;
    gap:10px;

}

.eos-today-item-run:hover{

    background:var(--surface-light);

}

.eos-today-item-link{

    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    flex:1;
    text-decoration:none;
    color:inherit;

}

.eos-today-item-link:hover{

    text-decoration:none;

}

.eos-today-complete-btn{

    flex-shrink:0;
    background:transparent;
    border:1px solid var(--border);
    color:var(--text-secondary);
    padding:9px 16px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    font-family:inherit;
    transition:.15s;
    white-space:nowrap;

}

.eos-today-complete-btn:hover{

    border-color:var(--primary);
    color:var(--primary);

}

.eos-today-complete-btn.done{

    background:rgba(34,197,94,.12);
    border-color:var(--green);
    color:var(--green);

}

.eos-today-complete-btn.done:hover{

    background:rgba(34,197,94,.2);

}

.eos-today-rest{

    color:var(--text-secondary);
    font-size:14.5px;
    padding:10px 2px;
    line-height:1.6;

}

.eos-today-rest a{

    color:var(--primary);

}

.eos-today-loading{

    color:var(--text-secondary);
    font-size:14px;
    padding:10px 2px;

}

/* ==========================
   Nutrition snapshot
========================== */
.eos-nutrition-snap{

    position:relative;
    overflow:hidden;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:22px 26px;
    margin-bottom:28px;

}

.eos-nutrition-snap::before{

    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:1px;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(201,173,132,.28),
        transparent
    );
    pointer-events:none;

}

.eos-nutrition-snap-header{

    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin-bottom:16px;
    font-size:15px;
    font-weight:700;

}

.eos-nutrition-snap-header a{

    color:var(--primary);
    font-size:13px;
    font-weight:600;
    text-decoration:none;

}

.eos-nutrition-snap-header a:hover{
    text-decoration:underline;
}

.eos-nutrition-snap-bars{

    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap:16px;

}

.eos-nutrition-snap-bar-label{

    display:flex;
    justify-content:space-between;
    font-size:12.5px;
    color:var(--text-secondary);
    margin-bottom:6px;

}

.eos-nutrition-snap-track{

    width:100%;
    height:8px;
    background:var(--surface-light);
    border-radius:100px;
    overflow:hidden;

}

.eos-nutrition-snap-fill{

    height:100%;
    background:var(--primary);
    border-radius:100px;

}

.eos-nutrition-snap-empty{

    color:var(--text-secondary);
    font-size:14px;

}

/* ==========================
   Subtle brand treatment for
   the dashboard stat row
========================== */
.stats .stat-card{

    position:relative;
    overflow:hidden;

}

.stats .stat-card::before{

    content:"";
    position:absolute;
    top:0;
    left:18px;
    right:18px;
    height:1px;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(201,173,132,.18),
        transparent
    );
    pointer-events:none;

}

@media (max-width:700px){

    .eos-today-hero::after{
        width:150px;
        height:150px;
        right:-8px;
        opacity:.035;
    }

}

@media (max-width:640px){

    .eos-today-hero h1{ font-size:34px; }

    .eos-today-card,
    .eos-nutrition-snap{
        padding:18px 18px;
    }

}

/* Mobile app shell -- tighten the Today card and its rows further
   so a full day's worth of items fits without feeling like a wall
   of padding. Layered after the 640px rules above so it wins. */
@media (max-width:900px){

    .eos-today-hero{
        margin-bottom:18px;
        padding:2px 0 4px;
    }

    .eos-today-card{
        padding:14px 14px;
        margin-bottom:18px;
    }

    .eos-today-card-header{
        margin-bottom:10px;
    }

    .eos-today-card-header h2{
        font-size:15px;
    }

    .eos-today-date{
        font-size:12px;
    }

    .eos-today-items{
        gap:6px;
    }

    .eos-today-item{
        gap:10px;
        padding:10px 12px;
        border-radius:12px;
    }

    .eos-today-item-run{
        padding:8px 8px 8px 12px;
        gap:8px;
        flex-wrap:wrap;
    }

    .eos-today-item-text strong{
        font-size:13.5px;
    }

    .eos-today-item-text span{
        font-size:12px;
    }

    .eos-today-complete-btn{
        padding:7px 12px;
        font-size:12px;
    }

    /* Weekly Mileage / Recovery / Habit Streak -- style.css's own
       700px rule stacks these into three full-height cards, which
       on a phone is a long scroll of mostly padding for three
       numbers. Row them up instead, sized for a phone screen. This
       file loads after style.css so it wins at equal specificity. */
    .stats{
        grid-template-columns:repeat(3,1fr);
        gap:8px;
        margin-bottom:18px;
    }

    .stat-card{
        padding:12px 10px;
        border-radius:14px;
    }

    .stat-card:hover{
        transform:none;
    }

    .stat-card span{
        margin-bottom:6px;
        font-size:9.5px;
        letter-spacing:.02em;
    }

    .stat-card h2{
        margin-bottom:4px;
        font-size:1.5rem;
        letter-spacing:-.5px;
    }

    .stat-card p{
        font-size:10.5px;
        line-height:1.3;
    }

}

/* ==========================
   Launch splash

   A Strava-style brand moment on app open: the mark holds still,
   a soft glow pulses behind it, then it dissolves into the real
   dashboard. Gated to once per browser session in index.html's
   own inline script -- this is purely the visual/animation half.
========================== */

.eos-splash{

    position:fixed;
    inset:0;
    z-index:5000;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:22px;
    background:radial-gradient(circle at center,#1F3A2C 0%,#0F2019 55%,#07100C 100%);
    transition:opacity .5s ease;

}

.eos-splash-hide{

    opacity:0;
    pointer-events:none;

}

.eos-splash-glow{

    position:absolute;
    width:220px;
    height:220px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(201,173,132,.55) 0%,rgba(201,173,132,.18) 45%,transparent 72%);
    filter:blur(4px);
    animation:eos-splash-pulse 1.6s ease-in-out infinite;

}

.eos-splash-mark{

    position:relative;
    width:96px;
    height:96px;
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.4);

}

.eos-splash-logo{

    width:100%;
    height:100%;
    object-fit:cover;
    display:block;

}

.eos-splash-wordmark{

    position:relative;
    font-family:var(--font-brand);
    font-weight:800;
    font-size:28px;
    letter-spacing:.02em;
    text-transform:uppercase;
    color:var(--cream);

}

@keyframes eos-splash-pulse{

    0%,100%{ opacity:.55; transform:scale(1); }
    50%{ opacity:1; transform:scale(1.12); }

}

@media (prefers-reduced-motion:reduce){

    .eos-splash-glow{
        animation:none;
        opacity:.75;
    }

}
