/**
 * School Page Styles
 * Extracted from src/routes/school.js for better caching and maintainability
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    z-index: 999;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes buttonPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Body
   ========================================================================== */

body {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    line-height: 1.5;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    padding-top: 70px;
    margin: 0 !important;
    position: relative;
}

/* ==========================================================================
   Countdown Banner
   ========================================================================== */

.countdown-banner {
    background: linear-gradient(90deg, #00aeed 0%, #0088cc 100%);
    color: #ffffff;
    padding: 12px 16px;
    text-align: center;
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        left 0s 0.4s,
        right 0s 0.4s,
        width 0s 0.4s,
        max-width 0s 0.4s,
        padding 0s 0.4s,
        border-radius 0s 0.4s;
}

.countdown-banner.hidden {
    transform: translateY(-100%);
}

.countdown-banner.minimized {
    left: auto;
    right: 0;
    width: auto;
    max-width: 280px;
    transform: translateY(-100%);
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        left 0s,
        right 0s,
        width 0s,
        max-width 0s,
        padding 0s,
        border-radius 0s;
}

.countdown-banner.minimized:hover {
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-banner.minimized .countdown-text {
    display: none;
}

.countdown-banner.minimized .countdown-timer {
    font-size: 14px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.countdown-banner.minimized .countdown-unit {
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}

.countdown-banner.minimized .countdown-number {
    font-size: 18px;
}

.countdown-banner.minimized .countdown-label {
    font-size: 9px;
}

.countdown-banner.minimized .toggle-banner-btn {
    display: none;
}

.toggle-banner-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toggle-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.toggle-banner-btn::before {
    content: '-';
    font-weight: bold;
}

.countdown-banner.minimized .toggle-banner-btn::before {
    content: '+';
}

.countdown-text {
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.countdown-timer {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
}

.countdown-unit {
    display: inline-block;
    margin: 0 8px;
}

.countdown-number {
    font-size: 24px;
}

.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ==========================================================================
   App Container
   ========================================================================== */

.app {
    max-width: 575px;
    margin: 0 auto;
    background: #000000;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    background: #000000;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header img {
    display: block;
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

/* ==========================================================================
   Language Toggle
   ========================================================================== */

.language-toggle {
    text-align: center;
    background: #000000;
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.65px;
    text-transform: uppercase;
}

.lang-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.65px;
    cursor: pointer;
    padding: 0;
    margin: 0 8px;
    transition: color 0.2s;
    text-transform: uppercase;
    text-decoration: underline;
}

.lang-btn:hover {
    color: #00aeed;
}

.lang-btn.active {
    color: #00aeed;
}

.lang-separator {
    color: #ffffff;
    font-size: 11px;
}

/* ==========================================================================
   Navigation Links
   ========================================================================== */

.nav-links {
    text-align: center;
    padding: 4px 0;
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.65px;
    color: #99a1af;
    text-transform: uppercase;
}

.nav-links a {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    color: #99a1af;
    text-decoration: underline;
    margin: 0 8px;
}

.nav-separator {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    color: #4a5565;
    margin: 0 4px;
}

/* ==========================================================================
   Title Section
   ========================================================================== */

.title-section {
    text-align: center;
    padding: 40px;
    padding-bottom: 20px;
}

.main-title {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 52px;
    font-weight: bold;
    letter-spacing: 3px;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 16px;
    white-space: nowrap;
}

.title-prom {
    color: #ffffff;
}

.title-pledge {
    color: #ffffff;
}

.title-2026 {
    color: #00aeed;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.school-name {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 22px;
    font-weight: normal;
    letter-spacing: 0.44px;
    color: #ffffff;
    margin-bottom: 14px;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.school-id {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 22px;
    font-weight: normal;
    letter-spacing: 0.44px;
    color: white;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    text-align: center;
}

/* ==========================================================================
   Copy Icons
   ========================================================================== */

.copy-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copy-icon.copied {
    opacity: 1;
}

.copy-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.copy-icon.copied svg {
    fill: #00aeed;
}

.copy-icon-inline {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.copy-icon-inline:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copy-icon-inline.copied {
    opacity: 1;
}

.copy-icon-inline svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.copy-icon-inline.copied svg {
    fill: #00aeed;
}

/* ==========================================================================
   Barcode Section
   ========================================================================== */

.barcode-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px;
    margin: 0 40px 12px;
}

.barcode-image {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.barcode-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.barcode-sku {
    display: none;
}

.school-code {
    text-align: center;
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.28px;
    color: #000000;
    margin-top: 16px;
}

/* ==========================================================================
   Instructions
   ========================================================================== */

.instructions {
    padding: 0 40px;
    margin: 40px;
}

.instructions-title {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 3px;
    line-height: 0.95;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.instructions-title .white-text {
    color: #ffffff;
}

.instructions-title .blue-text {
    color: #00aeed;
}

.instruction-item {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0.12px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.instruction-label {
    color: #00aeed;
    font-weight: bold;
}

/* ==========================================================================
   Promo Section
   ========================================================================== */

.promo-section {
    padding: 0 40px;
    margin-bottom: 40px;
}

.promo-section::before {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #ffffff;
    margin: 0 auto 32px;
}

.promo-title {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 3px;
    line-height: 0.95;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.promo-look {
    color: #ffffff;
}

.promo-savings {
    color: #00aeed;
}

.promo-description {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0.12px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.promo-price {
    color: #00aeed;
    font-weight: bold;
}

.promo-image {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 32px;
}

.promo-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: fadeIn 0.8s ease-in 0.2s forwards;
}

.promo-terms {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0.12px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.promo-code {
    color: #00aeed;
    font-weight: bold;
}

.promo-disclaimer {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 0.2px;
    color: #6a7282;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button-container {
    display: flex;
    gap: 16px;
    padding: 0 40px;
    margin-bottom: 40px;
}

.btn {
    flex: 1;
    border: 1.6px solid #ffffff;
    background: #ffffff;
    color: #000000;
    padding: 16px;
    text-align: center;
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.33px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    opacity: 0;
    animation: buttonPop 0.4s ease-out 0.2s forwards;
}

.btn:nth-child(2) {
    animation-delay: 0.35s;
}

.btn:hover {
    background: #00aeed;
    color: #ffffff;
    border-color: #00aeed;
}

/* ==========================================================================
   Contest Section
   ========================================================================== */

.contest-section {
    padding: 0 40px;
    margin: 0 0 40px;
}

.contest-section::before {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #ffffff;
    margin: 0 auto 32px;
}

.contest-title {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 3px;
    line-height: 0.95;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.contest-win {
    color: #00aeed;
}

.contest-description {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0.12px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contest-link {
    text-align: center;
    margin-bottom: 16px;
}

.contest-link a {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0.12px;
    color: #ffffff;
    text-decoration: underline;
    line-height: 1.6;
}

.contest-terms-link {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0.12px;
    color: #00aeed;
    text-decoration: underline;
    line-height: 1.6;
}

.contest-legal {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 0.09px;
    color: #6a7282;
    text-align: center;
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 0.8px solid #1e2939;
    padding: 32px 40px;
    text-align: center;
}

.footer-hashtag {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.4px;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 8px 16px;
    display: inline-block;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.social-link:hover {
    transform: scale(1.15);
}

.social-icon {
    width: 42px;
    height: 42px;
    display: block;
}

.copyright {
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #4a5565;
    line-height: 1.5;
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 768px) {
    .app {
        max-width: 100%;
    }

    /* Countdown Banner - Mobile */
    .countdown-banner {
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    body {
        padding-top: 60px;
    }

    .countdown-text {
        font-size: 10px;
        letter-spacing: 1.2px;
        margin-bottom: 6px;
        text-align: center;
        width: 100%;
    }

    .countdown-timer {
        font-size: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .countdown-unit {
        margin: 0 4px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
    }

    .countdown-number {
        font-size: 18px;
        line-height: 1;
    }

    .countdown-label {
        font-size: 7px;
        letter-spacing: 0.4px;
        margin-top: 2px;
    }

    .toggle-banner-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
        right: 8px;
    }

    /* Main Title - Mobile */
    .header {
        padding: 16px 24px;
        padding-bottom: 0px;
    }

    .title-section {
        padding: 24px 24px;
    }

    .main-title {
        font-size: 40px;
        letter-spacing: 2px;
        line-height: 1.1;
        white-space: normal;
    }

    .school-name {
        font-size: 18px;
        letter-spacing: 0.36px;
        line-height: 1.3;
        padding: 0 12px;
    }

    /* School Code - Mobile */
    .school-id {
        font-size: 18px;
        letter-spacing: 0.36px;
        line-height: 1.3;
        gap: 6px;
        flex-wrap: wrap;
        padding: 0 12px;
    }

    .copy-icon {
        width: 18px;
        height: 18px;
    }

    .copy-icon-inline {
        width: 14px;
        height: 14px;
    }

    .barcode-section,
    .instructions,
    .promo-section,
    .button-container,
    .contest-section,
    .footer {
        padding-left: 24px;
        padding-right: 24px;
        margin-left: 24px;
        margin-right: 24px;
    }
}

/* ==========================================================================
   Error Page Styles
   ========================================================================== */

.error-page body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
}

.error-page .header {
    background: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.error-page .header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.error-page .logo-image {
    height: 60px;
    width: auto;
}

.error-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.error-page .error-title {
    font-size: 2rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-page .error-description {
    font-size: 1.125rem;
    color: #666;
}

@media (max-width: 768px) {
    .error-page .container {
        padding: 2rem 1rem;
    }

    .error-page .header-content {
        padding: 0 1rem;
    }

    .error-page .logo-image {
        height: 50px;
    }
}
