/* Dashboard Styles - Trimmed from home/styles.css */

/* Design Tokens */
:root {
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-accent: #FF0000;
    --border-thick: 3px solid #000000;
    --shadow-hard: 4px 4px 0px #000000;
    --font-primary: 'Lacquer', display;
    --font-secondary: 'Inter', sans-serif;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: var(--font-primary);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Viewport Scaling System */
.page-scaler {
    width: 2700px;
    padding: 20px 40px 20px 20px; /* top right bottom left - increased right padding */
    box-sizing: border-box;
    transform-origin: top left;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    padding: 0;
    position: static;
    background: transparent;
    border-bottom: none;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-btn {
    text-decoration: none;
    color: #000;
    background: #ebebeb;
    border: var(--border-thick);
    padding: 16px 32px;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 2px 2px 0px #000;
    transition: transform 0.1s;
    white-space: nowrap;
    display: inline-block;
    line-height: normal;
}

.nav-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000;
    background: #fff;
}

.nav-btn-white {
    background: #fff;
}

.nav-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.search-bar {
    width: 100%;
    padding: 16px 32px;
    border: var(--border-thick);
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: bold;
    line-height: normal;
    outline: none;
    box-shadow: 2px 2px 0px #000;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
    height: auto;
}

.search-bar:hover {
    background: #f5f5f5;
    box-shadow: 3px 3px 0px #000;
}

.search-bar:focus {
    background: #fff;
    border-color: #000;
    box-shadow: 4px 4px 0px var(--color-accent);
}

.profile-icon {
    width: 64px;
    height: 64px;
    border: var(--border-thick);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    background-image: url('../home/pfp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Logo Section Styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.main-logo {
    max-width: 375px;
    height: auto;
}

/* Main Content */
.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Welcome Title */
.welcome-title {
    font-family: 'Impact', sans-serif;
    font-size: 80px;
    text-align: center;
    margin-top: 20px;
    letter-spacing: 2px;
    transform: scale(1.25, 1.4);
}

.welcome-title .highlight {
    color: #CC0000;
}

.welcome-title .exclaim {
    color: #000;
}

/* Dither Box / Stats Bar */
.dither-box {
    width: calc(100% - 100px);
    height: 75px;
    margin: 20px 50px 0 50px;
    background-color: #ebebeb;
    border: var(--border-thick);
    box-shadow: 4px 4px 0px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: bold;
}

/* Stats Box */
.stats-box {
    width: calc(100% - 100px);
    min-height: 700px;
    margin: 20px 50px 0 50px;
    padding: 40px;
    background-color: #fff;
    border: var(--border-thick);
    box-shadow: 4px 4px 0px #000;
    position: relative;
}

.stats-person-img {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 375px;
    height: auto;
    border: var(--border-thick);
}

.speech-bubble-container {
    position: absolute;
    top: 13px;
    right: 340px;
    width: 750px;
    z-index: 10;
}

.speech-bubble-img {
    width: 100%;
    height: auto;
}

.speech-bubble-text {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    font-size: 36px;
    text-align: center;
    width: 85%;
    padding: 20px;
}

.speech-bubble-text .bold {
    color: #CC0000;
    font-size: 1.1em;
}

/* Rank Display */
.rank-display {
    position: absolute;
    top: 315px;
    right: 340px;
    width: 730px;
    z-index: 10;
}

.rank-title {
    font-family: 'VT323', monospace;
    font-size: 48px;
    margin-bottom: 10px;
}

.level-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.level-label {
    font-family: 'VT323', monospace;
    font-size: 48px;
}

.level-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 48px;
    font-weight: bold;
    display: inline-block;
    min-width: 100px;
    text-align: right;
}

.level-bar {
    width: 420px;
    height: 40px;
    border: 3px solid #000;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.level-bar-fill {
    width: 40%;
    height: 100%;
    background-color: #ebebeb;
    animation: fillBar 1.2s ease-out forwards;
    transform-origin: left;
}

@keyframes fillBar {
    from {
        width: 0%;
    }
    to {
        width: 40%;
    }
}

.level-number-container {
    position: relative;
    display: inline-block;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    opacity: 0;
}

#p1 { top: 0; left: 50%; }
#p2 { top: 50%; right: -5px; }
#p3 { bottom: 0; left: 50%; }
#p4 { top: 50%; left: -5px; }

.particle-animate {
    animation: particleBurst 0.6s ease-out forwards;
}

#p1.particle-animate { animation-name: burstUp; }
#p2.particle-animate { animation-name: burstRight; }
#p3.particle-animate { animation-name: burstDown; }
#p4.particle-animate { animation-name: burstLeft; }

@keyframes burstUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes burstRight {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(20px); }
}

@keyframes burstDown {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

@keyframes burstLeft {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-20px); }
}

.stat-chart-box {
    display: inline-block;
    width: 840px;
}

/* Weekly Bonuses */
.weekly-bonuses {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 1030px;
}

.bonuses-header {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    padding: 15px 20px;
    border: var(--border-thick);
    background: #fff;
    margin-bottom: 0;
}

.bonus-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #ebebeb;
    border: var(--border-thick);
    border-top: none;
    font-family: var(--font-primary);
    font-size: 24px;
}

.bonus-xp {
    font-family: 'VT323', monospace;
    font-size: 32px;
    white-space: nowrap;
}

.bonus-divider {
    margin: 0 15px;
    font-weight: bold;
}

.bonus-text {
    flex: 1;
}

.bonus-highlight {
    font-weight: bold;
}

.stat-chart-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: bold;
    padding: 12px 20px;
    border: var(--border-thick);
    background-color: #fff;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.stat-chart-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
}

.dither-bold {
    font-weight: bold;
}

/* Leaderboard Box */
.leaderboard-box {
    width: calc(100% - 100px);
    min-height: 500px;
    margin: 20px 50px 0 50px;
    padding: 40px;
    background-color: #fff;
    border: var(--border-thick);
    box-shadow: 4px 4px 0px #000;
    position: relative;
}

/* School Dropdown */
.school-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: var(--border-thick);
    background: #fff;
    font-family: var(--font-primary);
    font-size: 24px;
    cursor: pointer;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-caret {
    font-weight: bold;
    font-size: 20px;
}

.dropdown-label {
    letter-spacing: 1px;
}

.dropdown-value {
    letter-spacing: 1px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -3px;
    right: -3px;
    padding: 12px 20px;
    border: var(--border-thick);
    border-top: none;
    background: #ebebeb;
    font-family: var(--font-primary);
    font-size: 20px;
    color: #666;
    cursor: not-allowed;
}

.school-dropdown.open .dropdown-menu {
    display: block;
}

.school-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}

/* Podium Section */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 100px;
    gap: 30px;
}

.podium-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-username {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.podium-username-secondary {
    font-weight: normal;
}

.podium-avatar {
    width: 300px;
    height: auto;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.podium-avatar-first {
    width: 450px;
}

.podium-block {
    background: #fff;
    border: var(--border-thick);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 500px;
    line-height: 1;
}

.podium-block-first {
    height: 300px;
    width: 550px;
}

.podium-block-second {
    height: 200px;
}

.podium-block-third {
    height: 150px;
}

.podium-rank {
    font-family: 'Press Start 2P', cursive;
    font-size: 160px;
}

.podium-block-second .podium-rank {
    font-size: 80px;
}

.podium-block-third .podium-rank {
    font-size: 60px;
}

.podium-rank sup {
    font-size: 0.5em;
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
}

.podium-base {
    width: 100%;
    height: 20px;
    background: #ebebeb;
    margin-top: 20px;
}

/* Prize Section */
.prize-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 59px;
    gap: 0;
}

.prize-entry {
    padding: 0 118px;
}

.prize-xp {
    font-family: 'VT323', monospace;
    font-size: 94px;
}

.prize-amount {
    font-family: 'VT323', monospace;
    font-size: 63px;
}

.prize-bold {
    font-weight: bold;
}

.prize-divider {
    width: 6px;
    height: 157px;
    background: #000;
}

/* On The Rise Section */
.on-the-rise {
    margin-top: 60px;
}

.rise-header {
    background: #ebebeb;
    font-family: var(--font-primary);
    font-size: 36px;
    text-align: center;
    padding: 15px 20px;
    border: var(--border-thick);
    letter-spacing: 2px;
}

.rise-list {
    background: #fff;
}

.rise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    font-family: var(--font-primary);
    font-size: 32px;
}

.rise-item-alt {
    background: #f5f5f5;
}

.rise-name {
}

.rise-xp {
    font-family: 'VT323', monospace;
    font-size: 40px;
}

/* Dashboard Content Area */
.dashboard-content {
    margin-top: 40px;
}
