/* ==========================================
   SLRC Champions Board
   Version 1
========================================== */

:root{

    --primary:#6C5CE7;
    --gold:#F4B400;

    --bg:#f6f7fb;
    --card:#ffffff;

    --border:#e5e7eb;

    --text:#1f2937;
    --muted:#6b7280;

    --radius:14px;

    --shadow:
        0 4px 15px rgba(0,0,0,.06);

}

/* ========================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

    line-height:1.5;

}

/* ========================================== */

.container{

    max-width:1200px;

    margin:auto;

    padding:30px 20px 60px;

}

/* ========================================== */

header{

    text-align:center;

    margin-bottom:30px;

}

header h1{

    color:var(--primary);

    font-size:2.2rem;

    margin-bottom:10px;

}

header p{

    color:var(--muted);

    font-size:1rem;

}

/* ========================================== */

.stats{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:20px;

    margin-bottom:30px;

}

.stat{

    background:var(--card);

    border-radius:var(--radius);

    padding:25px;

    text-align:center;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

}

.stat span{

    display:block;

    font-size:2rem;

    font-weight:bold;

    color:var(--primary);

}

.stat small{

    color:var(--muted);

}

/* ========================================== */

.controls{

    display:flex;

    gap:15px;

    margin-bottom:35px;

    flex-wrap:wrap;

}

.controls select,
.controls input{

    flex:1;

    min-width:220px;

    padding:12px 15px;

    border-radius:10px;

    border:1px solid var(--border);

    background:white;

    font-size:1rem;

}

.controls input:focus,
.controls select:focus{

    outline:none;

    border-color:var(--primary);

}

/* ========================================== */

section h2{

    margin-bottom:18px;

    color:var(--primary);

}

/* ========================================== */

#podium{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:20px;

    margin-bottom:40px;

}

/* temporary cards */

.podium-card{

    background:white;

    border-radius:var(--radius);

    padding:25px;

    text-align:center;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

}

.first{

    border-top:5px solid var(--gold);

}

.second{

    border-top:5px solid silver;

}

.third{

    border-top:5px solid #cd7f32;

}

/* ========================================== */

table{

    width:100%;

    border-collapse:collapse;

    background:white;

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

}

thead{

    background:var(--primary);

    color:white;

}

th{

    padding:15px;

    text-align:left;

}

td{

    padding:14px 15px;

    border-bottom:1px solid var(--border);

}

tbody tr:hover{

    background:#f8f8ff;

}

tbody tr:nth-child(even){

    background:#fafafa;

}

/* ========================================== */

footer{

    text-align:center;

    margin-top:40px;

    color:var(--muted);

    font-size:.9rem;

}

/* ========================================== */

@media(max-width:900px){

.stats{

grid-template-columns:repeat(2,1fr);

}

#podium{

grid-template-columns:1fr;

}

}

/* ========================================== */

@media(max-width:600px){

.stats{

grid-template-columns:1fr;

}

header h1{

font-size:1.7rem;

}

.controls{

flex-direction:column;

}

}

.top10{

    margin:30px 0;

}

#top10-list{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:15px;

}


/* ==========================================
   Top 10 Mobile Cards
========================================== */

.top10-card{

    background:#fff;

    border-radius:16px;

    padding:16px;

    margin-bottom:14px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}



.top10-school{

    color:var(--muted);

    font-size:14px;

    margin-bottom:6px;

}

.top10-quiz{

    display:inline-block;

    background:#f3f4f6;

    color:var(--primary);

    padding:4px 10px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

    margin-bottom:12px;

}

.top10-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding-top:10px;

    border-top:1px solid var(--border);

    font-size:14px;

    font-weight:600;

}

.top10-footer span:first-child{

    color:#16a34a;

    font-size:16px;

}

.top10-footer span:last-child{

    color:var(--muted);

    font-size:13px;

}

/* ==========================================
   Responsive Layout
========================================== */

/* Desktop */

.top10-desktop{

    display:block;

}

.top10-mobile{

    display:none;

}


/* Mobile */

@media (max-width:768px){

    .top10-desktop{

        display:none;

    }

    .top10-mobile{

        display:block;

    }

}



.top10-desktop{

display:block;

}

.top10-mobile{

display:none;

}

@media(max-width:768px){

.top10-desktop{

display:none;

}

.top10-mobile{

display:block;

}

}


.table-responsive{

    width:100%;

    overflow-x:auto;

    -webkit-overflow-scrolling:touch;

}

.table-responsive table{

    min-width:700px;

}

.table-responsive thead th{

    position:sticky;

    top:0;

    z-index:20;

    background:var(--primary);

    color:#fff;

    box-shadow:0 2px 4px rgba(0,0,0,.15);

}

@media(max-width:768px){

.table-responsive table{

    font-size:13px;

}

.table-responsive th,
.table-responsive td{

    padding:8px 10px;

}

}


/* ==========================================
   FINAL TOP10 MOBILE
========================================== */

.top10-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:14px;

    padding:16px;

    margin-bottom:14px;

    box-shadow:var(--shadow);

}

.top10-line1{

    display:flex;

    align-items:center;

    gap:10px;

}

.top10-rank{

    background:var(--primary);

    color:#fff;

    padding:4px 10px;

    border-radius:20px;

    font-size:13px;

    font-weight:700;

    white-space:nowrap;

}

.top10-name{

    flex:1;

    font-size:16px;

    font-weight:700;

}

.top10-score{

    color:var(--gold);

    font-size:22px;

    font-weight:700;

}

.top10-line2{

    margin-top:8px;

    font-size:14px;

    color:var(--muted);

}

.top10-line3{

    margin-top:8px;

    display:flex;

    justify-content:space-between;

    font-size:12px;

    color:#888;

}














