/*
|---------------------------------------------------------------------
| SEC POWer
|----------------------------------------------------------------------
| File: assets/css/index.css
|----------------------------------------------------------------------
| Purpose:
| Homepage stylesheet for SEC POWer index.php.
|----------------------------------------------------------------------
*/

/* ==========================================================
   BASE
   ========================================================== */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#e8edf4;
    color:#222;
}

a{
    text-decoration:none;
    color:inherit;
}

.page-wrap{
    max-width:1180px;
    margin:0 auto;
    padding:18px;
}

/* ==========================================================
   HERO
   ========================================================== */

.hero{
    background:#173a6b;
    color:#ffffff;
    border:3px solid #ffffff;
    border-radius:18px;
    padding:18px;
    box-shadow:
        inset 0 0 80px rgba(0,0,0,.55),
        inset 0 0 140px rgba(0,0,0,.30),
        0 10px 25px rgba(0,0,0,.20);
}

.brand-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:18px;
}

.logo-wrap{
    min-width:0;
    flex:1;
}

.logo-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:clamp(3px,1vw,8px);
    width:100%;
    max-width:100%;
    overflow:hidden;
}

.side-mark{
    display:flex;
    align-items:center;
    gap:clamp(3px,1vw,5px);
    color:#ffffff;
    flex-shrink:0;
}

.side-lines{
    display:flex;
    flex-direction:column;
    gap:clamp(2px,.8vw,4px);
    flex-shrink:0;
}

.side-mark:first-child .side-lines{
    align-items:flex-end;
}

.side-mark:last-child .side-lines{
    align-items:flex-start;
}

.side-lines span:nth-child(1){
    display:block;
    width:clamp(26px,7vw,80px);
    height:clamp(3px,.75vw,6px);
    background:#ffffff;
    border-radius:3px;
}

.side-lines span:nth-child(2){
    display:block;
    width:clamp(18px,5vw,55px);
    height:clamp(3px,.75vw,6px);
    background:#ffffff;
    border-radius:3px;
}

.side-lines span:nth-child(3){
    display:block;
    width:clamp(10px,3vw,30px);
    height:clamp(3px,.75vw,6px);
    background:#ffffff;
    border-radius:3px;
}

.star{
    font-size:clamp(17px,4.8vw,40px);
    line-height:1;
    font-weight:900;
    flex-shrink:0;
}

.logo{
    font-size:clamp(1.85rem,8.7vw,4.9rem);
    font-weight:900;
    line-height:.9;
    letter-spacing:1px;
    color:#ffffff;
    text-transform:uppercase;
    text-shadow:2px 2px 0 rgba(0,0,0,.42);
    white-space:nowrap;
    flex-shrink:1;
    min-width:0;
}

.pow{
    color:#c8102e;
}

.power-er{
    color:#ffffff;
    text-transform:lowercase;
}

.tagline{
    margin:8px auto 0;
    color:#ffffff;
    font-size:clamp(.92rem,1.8vw,1.15rem);
    max-width:560px;
    letter-spacing:.2px;
    text-align:center;
}

.hero-box{
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.35);
    border-radius:14px;
    padding:14px 16px;
    min-width:240px;
    width:fit-content;
    text-align:center;
    box-shadow:inset 0 0 14px rgba(0,0,0,.18);
    margin-left:auto;
    align-self:flex-end;
    margin-top:0;
}

.hero-box small{
    display:block;
    color:#dce8f7;
    font-size:.82rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.hero-box strong{
    display:block;
    font-size:1.55rem;
    margin:3px 0 6px;
    color:#ffffff;
}

.week-status{
    display:block;
    margin:4px 0 3px;
    font-size:.86rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.4px;
}

.week-lock-time{
    margin-top:2px;
}

.status-open{
    color:#7dff9d;
}

.status-locked{
    color:#ffccd5;
}

.lock-status{
    display:inline-block;
    margin-top:8px;
    padding:5px 11px;
    border-radius:999px;
    font-size:.8rem;
    font-weight:900;
    background:#ff8200;
    color:#111;
    box-shadow:0 2px 0 rgba(0,0,0,.32);
}

.lock-status.locked{
    background:#b00020;
    color:#ffffff;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.button-row{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
}

.btn{
    display:inline-block;
    padding:13px 18px;
    border-radius:999px;
    font-weight:900;
    text-align:center;
    box-shadow:0 5px 0 rgba(0,0,0,.25);
    transition:transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.04);
}

.btn:active{
    transform:translateY(3px);
    box-shadow:0 2px 0 rgba(0,0,0,.28);
}

.btn-primary{
    background:#ff8200;
    color:#111;
}

.btn-secondary{
    background:#ffffff;
    color:#173a6b;
}

.btn-dark{
    background:#0f2344;
    color:#ffffff;
}

/* ==========================================================
   HOME GRID / CARDS
   ========================================================== */

.home-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:22px;
}

.card{
    background:#ffffff;
    border-radius:18px;
    padding:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.13);
    border-top:6px solid #173a6b;
}

.card.green{
    border-top-color:#ff8200;
}

.card.dark{
    background:#0f2344;
    color:#ffffff;
    border-top-color:#ff8200;
}

.card h2{
    margin:0 0 14px;
    color:#173a6b;
}

.card.dark h2{
    color:#ffffff;
}

.card.dark h3{
    color:#dce8f7;
}

.big-number{
    font-size:2.4rem;
    font-weight:900;
    color:#ff8200;
}

.stat-list{
    list-style:none;
    padding:0;
    margin:0;
}

.stat-list li{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid #d9e1eb;
}

.label{
    color:#5e6d7e;
}

.value{
    font-weight:900;
}

.value.status-open{
    color:#16803a;
}

.value.status-locked{
    color:#b00020;
}

.value a{
    color:inherit;
    text-decoration:none;
}

.value a:hover{
    color:#ff8200;
    text-decoration:underline;
}

.mini-button-stack{
    display:grid;
    gap:10px;
    margin-top:16px;
}

.mini-button-stack .btn{
    width:100%;
}

/* ==========================================================
   LEADERS
   ========================================================== */

.leader-row{
    display:grid;
    grid-template-columns:32px 1fr auto;
    gap:10px;
    padding:10px 0;
    border-bottom:1px solid #d9e1eb;
}

.leader-rank{
    color:#ff8200;
    font-weight:900;
}

.leader-name,
.leader-score{
    font-weight:900;
}

/* ==========================================================
   COMMUNITY
   ========================================================== */

.topic{
    padding:11px 0;
    border-bottom:1px solid rgba(255,255,255,.16);
}

.topic-title{
    font-weight:900;
}

.topic-meta{
    font-size:.9rem;
    color:#dce8f7;
    margin-top:3px;
}

.community-header-mockup{
    background:#173a6b;
    color:#ffffff;
    padding:10px 8px;
    margin:14px 0 10px;
    border-radius:10px;
    text-align:center;
    box-shadow:inset 0 0 20px rgba(0,0,0,.38);
}

.community-mock-title{
    font-size:1.25rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.5px;
    line-height:1;
    text-shadow:2px 2px 0 rgba(0,0,0,.42);
}

.community-mock-subtitle{
    margin-top:5px;
    color:#ffd84d;
    font-size:.78rem;
    font-weight:900;
}

/* ==========================================================
   MATCHUPS / ABOUT
   ========================================================== */

.matchups,
.about{
    margin-top:22px;
    border-radius:20px;
    padding:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.13);
}

.matchups{
    background:#ffffff;
    border-top:6px solid #173a6b;
}

.matchups h2{
    margin-top:0;
    color:#173a6b;
}

.about{
    background:#0f2344;
    color:#ffffff;
    border-top:6px solid #ff8200;
}

.about strong{
    color:#ff8200;
}

.matchup-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.matchup-card{
    background:#2f8f2f;
    color:#ffffff;
    border:1px solid #1e6e1e;
    border-radius:16px;
    padding:15px;
    text-align:center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        inset 0 -5px 14px rgba(0,0,0,.18);
}

.team{
    font-weight:900;
    font-size:1.08rem;
    text-shadow:1px 1px 0 rgba(0,0,0,.45);
}

.vs{
    color:#ffffff;
    font-weight:900;
    margin:8px 0;
    opacity:.9;
}

/* ==========================================================
   MOBILE NAV
   ========================================================== */

.mobile-nav{
    display:none;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer{
    text-align:center;
    padding:28px 10px;
    color:#5e6d7e;
    font-size:.9rem;
}

/* ==========================================================
   TABLET / MOBILE STACK
   ========================================================== */

@media(max-width:900px){

    .home-grid,
    .matchup-grid{
        grid-template-columns:1fr;
    }

    .hero{
        padding:14px;
    }

    .brand-row{
        display:block;
        width:100%;
        text-align:center;
    }

    .logo-wrap{
        width:100%;
    }

    .hero-box{
        display:block;
        width:100%;
        max-width:350px;
        margin:14px auto 0;
        text-align:center;
    }

    .button-row .btn{
        flex:1 1 100%;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:640px){

    body{
        padding-bottom:74px;
    }

    .page-wrap{
        padding:10px;
    }

    .hero{
        border-radius:14px;
    }

    .logo-row{
        justify-content:center;
        gap:4px;
        overflow:hidden;
    }

    .side-mark{
        gap:3px;
    }

    .side-lines{
        display:flex;
    }

    .side-lines span:nth-child(1){
        width:34px;
        height:4px;
    }

    .side-lines span:nth-child(2){
        width:22px;
        height:3px;
    }

    .side-lines span:nth-child(3){
        width:12px;
        height:2px;
    }

    .star{
        font-size:20px;
    }

    .logo{
        font-size:clamp(2rem,9vw,2.85rem);
        line-height:1;
        white-space:nowrap;
    }

    .tagline{
        display:block;
        width:100%;
        max-width:none;
        margin:8px auto 0;
        text-align:center;
        font-size:.92rem;
        line-height:1.3;
    }

    .hero-box{
        display:block;
        width:100%;
        max-width:320px;
        margin:14px auto 0;
        text-align:center;
    }

    .hero-box small,
    .hero-box strong,
    .hero-box .week-status,
    .hero-box .lock-status{
        text-align:center;
    }

    .btn{
        padding:15px 18px;
    }

    .card,
    .matchups,
    .about{
        border-radius:14px;
        padding:15px;
    }

    .card h2{
        font-size:1.3rem;
    }

    .footer{
        padding:18px 10px;
    }

    .mobile-nav{
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:999;
        display:grid;
        grid-template-columns:repeat(4,1fr);
        gap:0;
        background:#173a6b;
        border-top:3px solid #ffffff;
        box-shadow:0 -6px 18px rgba(0,0,0,.25);
    }

    .mobile-nav a{
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:58px;
        padding:8px 4px;
        color:#ffffff;
        font-size:.78rem;
        font-weight:900;
        text-align:center;
        border-right:1px solid rgba(255,255,255,.25);
    }

    .mobile-nav a:last-child{
        border-right:0;
    }

    .mobile-nav a:hover{
        background:#0f2344;
    }
}

/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media(max-width:380px){

    .hero{
        padding:10px 6px;
    }

    .logo-row{
        gap:2px;
    }

    .side-mark{
        gap:2px;
    }

    .side-lines span:nth-child(1){
        width:24px;
    }

    .side-lines span:nth-child(2){
        width:16px;
    }

    .side-lines span:nth-child(3){
        width:8px;
    }

    .star{
        font-size:18px;
    }

    .logo{
        font-size:2rem;
    }
}