/* =========================
   UCF Study Hub Global Style
   ========================= */

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

:root {
    --bg: #050505;
    --card: #111111;
    --card-light: #1d1d1d;
    --input: #222222;
    --gold: #ffd700;
    --gold-dark: #b99b00;
    --white: #ffffff;
    --muted: #cfcfcf;
    --danger: #ff4d4d;
    --success: #00e676;
    --border: rgba(255, 215, 0, 0.25);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 215, 0, 0.06), transparent 35%),
        var(--bg);
    color: var(--white);
    min-height: 100vh;
}

/* =========================
   Navbar
   ========================= */

.navbar {
    width: 100%;
    padding: 28px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 42px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.nav-btn,
.nav-links .nav-btn {
    background: var(--gold);
    color: #000 !important;
    padding: 14px 26px;
    border-radius: 12px;
}

.nav-btn:hover {
    background: var(--white);
    color: #000 !important;
}

/* =========================
   Hero
   ========================= */

.hero {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 8% 50px;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
}

.hero h1 {
    max-width: 1100px;
    font-size: clamp(52px, 7vw, 96px);
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 35px;
}

.hero p {
    max-width: 900px;
    color: var(--muted);
    font-size: 26px;
    line-height: 1.6;
    margin-bottom: 45px;
}

.hero-buttons {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================
   Buttons
   ========================= */

.btn,
button {
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    padding: 18px 34px;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn.primary,
button {
    background: var(--gold);
    color: #000;
}

.btn.secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn:hover,
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.18);
}

.btn.primary:hover,
button:hover {
    background: #ffe34d;
}

.btn.secondary:hover {
    background: var(--gold);
    color: #000;
}

/* =========================
   Stats Section
   ========================= */

.stats-section {
    width: 84%;
    margin: 0 auto 80px;
    background: linear-gradient(145deg, #101010, #151515);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 45px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stats-section h2 {
    color: var(--gold);
    font-size: 38px;
    margin-bottom: 35px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-box {
    background: var(--card-light);
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box h3 {
    color: var(--gold);
    font-size: 44px;
    margin-bottom: 10px;
}

.stat-box p {
    color: var(--muted);
    font-size: 20px;
    font-weight: 700;
}

/* =========================
   Cards / Features
   ========================= */

.features {
    width: 84%;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: linear-gradient(145deg, #101010, #161616);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 42px;
    min-height: 230px;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.55);
}

.feature-card h3 {
    color: var(--gold);
    font-size: 34px;
    margin-bottom: 22px;
}

.feature-card p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

/* =========================
   Dashboard / Pages
   ========================= */

.dashboard {
    width: 84%;
    margin: 70px auto;
}

.dashboard h1 {
    font-size: clamp(48px, 6vw, 80px);
    margin-bottom: 18px;
    font-weight: 900;
}

.dashboard > p {
    color: var(--muted);
    font-size: 24px;
    margin-bottom: 45px;
    line-height: 1.5;
}

/* =========================
   Forms
   ========================= */

.auth-form {
    background: linear-gradient(145deg, #101010, #151515);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 45px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: var(--shadow);
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--input);
    color: var(--white);
    font-size: 22px;
    outline: none;
    transition: 0.25s ease;
}

.auth-form textarea {
    min-height: 140px;
    resize: vertical;
}

.auth-form select {
    appearance: auto;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.12);
}

.auth-form button {
    width: 100%;
    margin-top: 10px;
}

.auth-form a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 800;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* =========================
   Messages
   ========================= */

.success {
    color: var(--success);
    text-align: center;
    margin-top: 24px;
    font-size: 22px;
    font-weight: 800;
}

.error {
    color: var(--danger);
    text-align: center;
    margin-top: 24px;
    font-size: 22px;
    font-weight: 800;
}

/* =========================
   Tables / Utility
   ========================= */

.page-card {
    background: linear-gradient(145deg, #101010, #151515);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow);
}

small {
    color: var(--muted);
}

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

@media (max-width: 1100px) {
    .navbar {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .features,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero p {
        font-size: 22px;
    }
}

@media (max-width: 700px) {
    .logo {
        font-size: 34px;
    }

    .nav-links a {
        font-size: 17px;
    }

    .hero {
        padding-top: 60px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 18px;
    }

    .dashboard,
    .features,
    .stats-section {
        width: 92%;
    }

    .auth-form {
        padding: 28px;
    }

    .feature-card {
        padding: 30px;
    }
}
.auth-form p {
    margin-top: 28px;
    text-align: center;
    font-size: 20px;
}
.auth-form h1,
.auth-form h2,
.auth-form h3 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 35px;
}

/* Profile Page Fix */
.profile-card {
    max-width: 520px;
    margin-top: 40px;
}

.profile-card h2 {
    color: #ffd700;
    font-size: 38px;
    margin-bottom: 25px;
}

.profile-card p {
    margin-bottom: 22px;
    color: #d8d8d8;
    font-size: 20px;
    line-height: 1.5;
}

.profile-card strong {
    color: #ffffff;
}

/* =========================
   Profile Page + Logo Polish
   ========================= */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffd700, #b89600);
    color: #000;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 16px;
    letter-spacing: 1px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.28);
}

.brand-logo span {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand-logo strong {
    display: block;
    color: #ffd700;
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
}

.profile-page {
    width: min(86%, 1200px);
    margin: 0 auto;
    padding: 90px 0;
}

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
}

.profile-kicker {
    color: #ffd700;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.profile-hero h1 {
    font-size: clamp(56px, 8vw, 110px);
    color: #ffffff;
    line-height: 0.95;
    margin-bottom: 20px;
}

.profile-hero p {
    color: #d8d8d8;
    font-size: 24px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 34px;
    background: linear-gradient(145deg, #ffd700, #b89600);
    color: #000;
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    font-weight: 950;
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.25);
}

.profile-avatar.small {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 32px;
    border-width: 3px;
    box-shadow: none;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 28px;
}

.profile-card {
    background: linear-gradient(145deg, #101010, #181818);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 30px;
    padding: 36px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 35px;
}

.profile-card h2 {
    color: #ffd700;
    font-size: 36px;
    margin-bottom: 6px;
}

.profile-card-header p {
    color: #d8d8d8;
    font-size: 18px;
}

.profile-info {
    display: grid;
    gap: 18px;
}

.profile-info div {
    background: #202020;
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 18px;
    padding: 20px;
}

.profile-info span {
    display: block;
    color: #ffd700;
    font-weight: 900;
    margin-bottom: 8px;
}

.profile-info strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.4;
}

.profile-card h3 {
    color: #ffd700;
    font-size: 32px;
    margin-bottom: 24px;
}

.profile-actions {
    display: grid;
    gap: 16px;
}

.profile-actions a {
    display: block;
    text-decoration: none;
    background: #ffd700;
    color: #000;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 950;
    text-align: center;
}

.profile-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(255, 215, 0, 0.18);
}

@media (max-width: 900px) {
    .profile-hero,
    .profile-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
        font-size: 52px;
    }
}

/* =========================
   Upload Note Page Polish
   ========================= */

.form-section {
    width: min(86%, 1150px);
    margin: 70px auto;
}

.form-card {
    background: linear-gradient(145deg, #101010, #171717);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 32px;
    padding: 55px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.form-card h1 {
    font-size: clamp(48px, 7vw, 86px);
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1;
}

.form-card > p {
    color: #d8d8d8;
    font-size: 22px;
    margin-bottom: 38px;
}

.auth-form {
    display: grid;
    gap: 22px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    background: #202020;
    border: 1px solid rgba(255, 215, 0, 0.22);
    color: #ffffff;
    padding: 20px;
    border-radius: 18px;
    font-size: 18px;
    outline: none;
}

.auth-form textarea {
    min-height: 150px;
    resize: vertical;
}

.auth-form input[type="file"] {
    padding: 18px;
    cursor: pointer;
}

.auth-form input[type="file"]::file-selector-button {
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 900;
    margin-right: 18px;
    cursor: pointer;
}

.auth-form button {
    width: 100%;
    background: #ffd700;
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 18px;
    font-size: 22px;
    font-weight: 950;
    cursor: pointer;
    margin-top: 8px;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 45px rgba(255, 215, 0, 0.2);
}

#uploadMessage {
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 800px) {
    .form-card {
        padding: 32px;
    }

    .form-card h1 {
        font-size: 48px;
    }
}

/* =========================
   Force Upload Form Modern Design
   ========================= */

#addNoteForm {
    width: 100% !important;
    max-width: 900px !important;
    margin-top: 40px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
}

#addNoteForm input,
#addNoteForm select,
#addNoteForm textarea {
    display: block !important;
    width: 100% !important;
    min-height: 64px !important;
    background: #202020 !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    color: #ffffff !important;
    padding: 18px 20px !important;
    border-radius: 18px !important;
    font-size: 18px !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
}

#addNoteForm textarea {
    min-height: 150px !important;
    resize: vertical !important;
}

#addNoteForm input::placeholder,
#addNoteForm textarea::placeholder {
    color: #9a9a9a !important;
}

#addNoteForm input:focus,
#addNoteForm select:focus,
#addNoteForm textarea:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.10) !important;
}

#addNoteForm input[type="file"] {
    background: #181818 !important;
    cursor: pointer !important;
}

#addNoteForm input[type="file"]::file-selector-button {
    background: #ffd700 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-weight: 900 !important;
    margin-right: 16px !important;
    cursor: pointer !important;
}

#addNoteForm button {
    width: 100% !important;
    min-height: 66px !important;
    background: #ffd700 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 18px !important;
    font-size: 22px !important;
    font-weight: 950 !important;
    cursor: pointer !important;
    margin-top: 8px !important;
}

#addNoteForm button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 45px rgba(255, 215, 0, 0.18) !important;
}

.form-card {
    max-width: 1050px !important;
}

#uploadMessage {
    font-size: 20px !important;
    font-weight: 900 !important;
    text-align: center !important;
    margin-top: 8px !important;
}
