/* =========================================
   CAMPUS FEED
   Main Styles
========================================= */

:root {
    --navy: #071827;
    --navy-light: #10263b;

    --yellow: #ffc83d;
    --orange: #f47735;
    --red: #ef3b2d;

    --white: #ffffff;
    --background: #f4f5f7;
    --card: #ffffff;

    --text: #142033;
    --muted: #7b8798;
    --border: #e2e5ea;

    --green: #278a55;

    --shadow: 0 4px 18px rgba(7, 24, 39, 0.08);

    --radius: 18px;
}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(255, 200, 61, 0.65);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}


/* =========================================
   LOGIN
========================================= */

.screen {
    min-height: 100vh;
}

.login-screen {
    background:
        linear-gradient(
            145deg,
            var(--navy) 0%,
            #0b2033 65%,
            #102b43 100%
        );

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px 20px;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 55px;
}

.brand-mark h1 {
    color: var(--white);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.brand-mark p {
    color: #c6d0dc;
    font-size: 14px;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

.brand-bars {
    width: 38px;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand-bars .bar {
    display: block;
    height: 6px;
    border-radius: 3px;
}

.brand-bars .yellow {
    background: var(--yellow);
    width: 100%;
}

.brand-bars .orange {
    background: var(--orange);
    width: 76%;
}

.brand-bars .red {
    background: var(--red);
    width: 55%;
}

.login-content {
    color: var(--white);
}

.login-content h2 {
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 14px;
}

.login-description {
    color: #b9c6d5;
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 34px;
}

#loginForm {
    display: flex;
    flex-direction: column;
}

#loginForm label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #dbe3ec;
}

#email {
    width: 100%;
    min-height: 54px;

    padding: 0 16px;

    border: 2px solid #34495e;
    border-radius: 13px;

    background: #10263b;
    color: var(--white);

    font-size: 16px;

    transition:
        border-color 0.2s,
        background 0.2s;
}

#email::placeholder {
    color: #8494a7;
}

#email:focus {
    border-color: var(--yellow);
    background: #132d45;
    outline: none;
}

.error-message {
    min-height: 22px;

    color: #ff8d84;
    font-size: 13px;

    margin-top: 7px;
}

.primary-button {
    width: 100%;
    min-height: 54px;

    border: none;
    border-radius: 14px;

    background: var(--yellow);
    color: #18202a;

    font-size: 16px;
    font-weight: 800;

    padding: 12px 18px;

    transition:
        transform 0.15s,
        filter 0.15s;
}

.primary-button:hover {
    filter: brightness(1.04);
}

.primary-button:active {
    transform: scale(0.98);
}

.login-note {
    text-align: center;

    color: #8292a5;
    font-size: 12px;
    line-height: 1.5;

    margin-top: 18px;
}


/* =========================================
   VERIFICATION
========================================= */

.verification-screen {
    background: var(--navy);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;
}

.verification-container {
    width: 100%;
    max-width: 410px;

    text-align: center;

    color: var(--white);
}

.verification-icon {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: #132d45;

    font-size: 35px;
}

.verification-container h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.verification-container p {
    color: #b9c6d5;
    line-height: 1.5;
}

.verification-container strong {
    display: block;

    margin: 8px 0 24px;

    color: var(--yellow);

    overflow-wrap: anywhere;
}

.verification-note {
    font-size: 13px;
    margin-bottom: 25px;
}

.secondary-button {
    width: 100%;
    min-height: 50px;

    margin-top: 12px;

    border: 1px solid #40546a;
    border-radius: 14px;

    background: transparent;
    color: var(--white);

    font-weight: 700;
}


/* =========================================
   MAIN APP
========================================= */

.app {
    min-height: 100vh;

    background: var(--background);

    padding-bottom: 82px;
}

.app-header {
    height: 72px;

    background: var(--navy);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    color: var(--white);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-bars.small {
    width: 25px;
    gap: 3px;
}

.brand-bars.small .bar {
    height: 4px;
}

.xp-pill {
    display: flex;
    align-items: center;
    gap: 5px;

    padding: 8px 12px;

    border: 1px solid #40546a;
    border-radius: 30px;

    background: #10263b;

    color: #e5ebf2;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   HOME HERO
========================================= */

.hero {
    background: var(--navy);

    color: var(--white);

    padding:
        15px
        20px
        25px;
}

.hero h1 {
    font-size: clamp(31px, 8vw, 43px);
    line-height: 1;

    letter-spacing: -1.7px;

    margin-bottom: 9px;
}

.hero p {
    color: #aebdce;
    font-size: 16px;
}


/* =========================================
   FILTERS
========================================= */

.filter-scroll,
.category-scroll {
    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding:
        14px 20px;

    scrollbar-width: none;

    background: var(--navy);
}

.filter-scroll::-webkit-scrollbar,
.category-scroll::-webkit-scrollbar {
    display: none;
}

.filter-button,
.category-button {
    flex: 0 0 auto;

    min-height: 44px;

    padding: 0 18px;

    border-radius: 24px;

    border: 1px solid #40546a;

    background: #142a40;

    color: #d7e0ea;

    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}

.filter-button.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #18202a;
}

.category-scroll {
    background: var(--background);

    padding-top: 15px;
    padding-bottom: 13px;
}

.category-button {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
}

.category-button.active {
    background: var(--navy);
    color: var(--white);
}


/* =========================================
   EVENT FEED
========================================= */

.event-feed {
    display: flex;
    flex-direction: column;

    gap: 17px;

    padding: 10px 16px 24px;
}

.event-card {
    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.event-card:active {
    transform: scale(0.99);
}

.event-image {
    position: relative;

    height: 145px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.event-image span {
    font-size: 54px;

    filter:
        drop-shadow(
            0 4px 7px rgba(0, 0, 0, 0.2)
        );
}

.event-image.club-sports {
    background:
        linear-gradient(
            135deg,
            var(--red),
            #ff5a37
        );
}

.event-image.fitness {
    background:
        linear-gradient(
            135deg,
            #ef8736,
            #ffc83d
        );
}

.event-image.arts {
    background:
        linear-gradient(
            135deg,
            #703b8e,
            #d56ac7
        );
}

.event-image.social {
    background:
        linear-gradient(
            135deg,
            #ed4d5a,
            #f89561
        );
}

.event-image.clubs {
    background:
        linear-gradient(
            135deg,
            #246b96,
            #55b9c9
        );
}

.event-image.free-food {
    background:
        linear-gradient(
            135deg,
            #ed8137,
            #ffc83d
        );
}

.free-food-badge {
    position: absolute;

    top: 13px;
    left: 13px;

    padding: 7px 11px;

    border-radius: 18px;

    background: var(--yellow);

    color: #1b2026;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.4px;
}

.event-body {
    padding: 17px 18px 18px;
}

.event-category {
    color: var(--orange);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.7px;

    text-transform: uppercase;

    margin-bottom: 7px;
}

.event-title {
    color: var(--text);

    font-size: 20px;
    line-height: 1.2;

    letter-spacing: -0.4px;

    margin-bottom: 9px;
}

.event-time {
    font-size: 15px;
    font-weight: 750;

    margin-bottom: 7px;
}

.event-location,
.event-organizer {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.4;

    margin-bottom: 5px;
}

.verified {
    color: var(--green);
    font-weight: 800;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 15px;
}

.event-meta {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.xp-badge {
    padding: 6px 10px;

    border-radius: 10px;

    background: #fff5d8;

    color: #6e5411;

    font-size: 13px;
    font-weight: 900;
}

.going-count {
    color: var(--muted);

    font-size: 14px;
    font-weight: 600;
}

.going-button {
    min-height: 48px;

    padding: 0 16px;

    border: none;
    border-radius: 12px;

    background: var(--navy);

    color: var(--white);

    font-size: 14px;
    font-weight: 800;

    white-space: nowrap;
}

.going-button.going {
    background: var(--green);
}


/* =========================================
   GENERAL PAGES
========================================= */

.page {
    min-height: calc(100vh - 72px);

    padding-bottom: 25px;
}

.page-heading {
    padding: 28px 20px 16px;
}

.page-heading h1 {
    font-size: 34px;
    letter-spacing: -1.2px;

    margin-bottom: 6px;
}

.page-heading p {
    color: var(--muted);
}


/* =========================================
   EXPLORE
========================================= */

.explore-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 13px;

    padding: 8px 16px 25px;
}

.explore-card {
    min-height: 155px;

    padding: 18px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    text-align: left;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--white);

    color: var(--text);

    box-shadow: var(--shadow);
}

.explore-card span {
    font-size: 32px;
    margin-bottom: 12px;
}

.explore-card strong {
    font-size: 16px;
    margin-bottom: 4px;
}

.explore-card small {
    color: var(--muted);
    line-height: 1.35;
}


/* =========================================
   EMPTY STATES
========================================= */

.empty-state {
    margin: 20px 16px;

    padding: 40px 24px;

    text-align: center;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--white);

    box-shadow: var(--shadow);
}

.empty-state .primary-button {
    margin-top: 22px;
}

.empty-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--muted);
    line-height: 1.5;
}


/* =========================================
   PROFILE
========================================= */

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 30px 20px 20px;
}

.profile-avatar {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--yellow);

    font-size: 32px;
}

.profile-header h1 {
    font-size: 22px;

    margin-bottom: 4px;
}

.profile-header p {
    color: var(--muted);
    font-size: 13px;
}

.profile-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    padding: 0 16px 22px;
}

.stat {
    padding: 17px 10px;

    text-align: center;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--white);
}

.stat strong {
    display: block;

    font-size: 23px;

    margin-bottom: 3px;
}

.stat span {
    color: var(--muted);

    font-size: 12px;
    font-weight: 700;
}

.profile-section {
    padding: 0 16px;
}

.profile-section h2 {
    font-size: 18px;

    margin-bottom: 12px;
}

.badge-list {
    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding-bottom: 10px;
}

.badge {
    min-width: 115px;

    padding: 14px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--white);

    text-align: center;

    font-size: 13px;
}

.badge:first-child {
    font-size: 23px;
}

.badge span {
    font-size: 11px;
    font-weight: 700;
}

.badge.locked {
    opacity: 0.45;
}


/* =========================================
   MODAL
========================================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(3, 12, 21, 0.65);
}

.modal-content {
    position: relative;

    width: 100%;
    max-width: 600px;

    max-height: 88vh;

    overflow-y: auto;

    padding: 24px 20px 35px;

    border-radius: 24px 24px 0 0;

    background: var(--white);
}

.modal-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #eef0f3;

    font-size: 28px;
    line-height: 1;

    color: var(--text);
}

.modal-event-title {
    padding-right: 50px;

    font-size: 27px;

    line-height: 1.15;

    margin-bottom: 12px;
}

.modal-detail {
    color: var(--muted);

    line-height: 1.55;

    margin-bottom: 14px;
}

.modal-description {
    color: var(--text);

    line-height: 1.6;

    margin: 18px 0;
}


/* =========================================
   BOTTOM NAVIGATION
========================================= */

.bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 50;

    height: 76px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    background: rgba(255, 255, 255, 0.97);

    border-top: 1px solid var(--border);

    box-shadow:
        0 -4px 20px rgba(7, 24, 39, 0.07);
}

.nav-button {
    border: none;

    background: transparent;

    color: #8c96a5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    font-size: 10px;
    font-weight: 750;
}

.nav-icon {
    font-size: 22px;

    line-height: 1;
}

.nav-button.active {
    color: var(--navy);
}

.nav-button.active .nav-icon {
    color: var(--orange);
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 700px) {

    .app {
        max-width: 680px;

        margin: 0 auto;

        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }

    .bottom-nav {
        left: 50%;
        right: auto;

        width: 680px;

        transform: translateX(-50%);
    }

    .event-feed {
        padding-left: 22px;
        padding-right: 22px;
    }

    .explore-grid {
        padding-left: 22px;
        padding-right: 22px;
    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 360px) {

    .app-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-brand {
        font-size: 18px;
    }

    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-scroll,
    .category-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }

    .event-feed {
        padding-left: 12px;
        padding-right: 12px;
    }

    .event-footer {
        align-items: flex-end;
    }

    .going-button {
        padding-left: 12px;
        padding-right: 12px;
    }

    .explore-grid {
        gap: 9px;
        padding-left: 12px;
        padding-right: 12px;
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}