﻿/* ============================= */
/* GLOBAL */
/* ============================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    justify-content: center;
    font-family: 'Inter',sans-serif;
    background: linear-gradient( 180deg, #e6e3ff 0%, #dde4ff 50%, #edf2ff 100% );
    color: #111827;
}
    body::before {
        content: "";
        position: fixed;
        top: -200px;
        left: -150px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle,#c7c9ff 0%,transparent 70%);
        opacity: 0.4;
        z-index: -1;
    }

/* MOBILE WRAPPER */

.app-wrapper {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: transparent;
    position: relative;
}

/* ============================= */
/* HEADER */
/* ============================= */

.header {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 18px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
}

.logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg,#7c4dff,#4f7cff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.points-pill {
    background: linear-gradient(90deg,#7c4dff,#4f7cff);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(124,77,255,0.35);
}

.avatar-small {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg,#7c4dff,#4f7cff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

/* ============================= */
/* QUESTION BLOCK */
/* ============================= */

.question-block {
    text-align: center;
    margin-bottom: 28px;
}

.question-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.question-sub {
    font-size: 13px;
    color: #8b8fa3;
    margin-bottom: 6px;
}

.timer {
    font-size: 13px;
    font-weight: 600;
    color: #7c4dff;
    margin-bottom: 14px;
}

.vote-status {
    background: linear-gradient(90deg,#f3e8ff,#e0e7ff);
    padding: 10px 18px;
    border-radius: 999px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
}

/* ============================= */
/* CANDIDATE LIST */
/* ============================= */

.candidate-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.content {
    background: transparent;
}
/* CARD */
.student-card {
    background: white;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08), 0 12px 30px rgba(124,77,255,0.20);
    transition: .2s ease;
}

    .student-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 35px 70px rgba(124,77,255,0.30);
    }

    .student-card:active {
        transform: scale(.95);
    }

/* LEFT */

.card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg,#7c4dff,#4f7cff);
}

.student-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.student-name {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* RIGHT */

.card-right {
    margin-left: auto;
}
.vote-pill {
    background: linear-gradient(90deg,#7c4dff,#4f7cff);
    color: white;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(124,77,255,0.45);
    transition: all .15s ease;
}

    .vote-pill:hover {
        transform: scale(1.1);
        box-shadow: 0 16px 35px rgba(124,77,255,0.55);
    }

/* ============================= */
/* STREAK */
/* ============================= */

.streak-block {
    margin-top: 40px;
    text-align: center;
    font-weight: 600;
    color: #f97316;
}

/* ============================= */
/* TOAST SUCCESS */
/* ============================= */

.floating-success {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg,#7c4dff,#4f7cff);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 14px 35px rgba(124,77,255,0.4);
    animation: floatUp 1.5s ease forwards;
}

@keyframes floatUp {

    0% {
        opacity: 0;
        transform: translate(-50%,10px);
    }

    20% {
        opacity: 1;
        transform: translate(-50%,0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%,-20px);
    }
}

/* ============================= */
/* LEADERBOARD */
/* ============================= */

.rank-row {
    background: white;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(124,77,255,0.05);
}

    .rank-row.highlight {
        background: linear-gradient(135deg,#f5f3ff,#ede9fe);
        border: 1px solid #8b5cf6;
    }

.rank-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-number {
    font-weight: 700;
}

.rank-info-name {
    font-weight: 600;
}

.rank-info-points {
    font-size: 12px;
    color: #6b7280;
}

.rank-move-up {
    color: #16a34a;
    font-weight: 700;
}

/* ============================= */
/* PROFILE */
/* ============================= */

.profile-header {
    text-align: center;
    padding-top: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 14px auto;
    background: linear-gradient(135deg,#7c4dff,#4f7cff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
}

.profile-college {
    font-size: 13px;
    color: #888;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.invite-btn {
    width: 100%;
    border-radius: 20px;
    padding: 14px;
    margin-top: 20px;
    background: linear-gradient(90deg,#7c4dff,#4f7cff);
    color: white;
    font-weight: 600;
}

.logout-btn {
    width: 100%;
    border-radius: 20px;
    padding: 14px;
    margin-top: 14px;
    background: #f1f1f4;
    border: 1px solid #e0e0e6;
    color: #444;
}
/* ============================= */
/* NEW GRID VOTE UI */
/* ============================= */

.candidate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.candidate-card {
    background: white;
    border-radius: 26px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08), 0 10px 25px rgba(124,77,255,0.25);
    transition: .2s;
}

    .candidate-card:hover {
        transform: translateY(-4px);
    }

    .candidate-card:active {
        transform: scale(.96);
    }

.candidate-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #7c4dff, #4f7cff );
}

.candidate-name {
    font-weight: 700;
    font-size: 15px;
}

.candidate-meta {
    font-size: 12px;
    color: #9ca3af;
}

.vote-button {
    margin-top: 6px;
    background: linear-gradient( 90deg, #7c4dff, #4f7cff );
    color: white;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(124,77,255,0.4);
}
.neon-bg {
    background: radial-gradient(circle at 0% 0%,#a133ff 0%,transparent 50%), radial-gradient(circle at 100% 0%,#e1007f 0%,transparent 50%), radial-gradient(circle at 50% 100%,#00dbe9 0%,transparent 50%);
}

.glass {
    background: rgba(31,30,42,0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
}
body {
    min-height: 100vh;
    background: radial-gradient(circle at 0% 0%, #a133ff 0%, transparent 50%), radial-gradient(circle at 100% 0%, #e1007f 0%, transparent 50%), radial-gradient(circle at 50% 100%, #00dbe9 0%, transparent 50%);
    background-color: #12121d;
}
body {
    min-height: 100vh;
    background: radial-gradient(circle at 0% 0%, #a133ff 0%, transparent 45%), radial-gradient(circle at 100% 0%, #e1007f 0%, transparent 45%), radial-gradient(circle at 50% 100%, #00dbe9 0%, transparent 55%);
    background-color: #12121d;
}
main {
    padding-bottom: 120px;
}
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
}
.how-title {
    color: #f97316;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
}
.badges {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg,#facc15,#f97316);
    color: black;
    font-weight: 700;
    margin-left: 6px;
}