/* -------------------------------------------------------
   EPSS / UCLA Color System (CSS variables)
------------------------------------------------------- */

:root {
    /* UCLA-inspired palette */
    --ucla-blue: #2774AE;
    --ucla-gold: #FFD100;
    --ucla-blue-dark: #1E4E79;
    --ucla-ink: #0B2239;

    --bg-main: #f6f8fb;
    --bg-card: #ffffff;
    --bg-soft: #eef6ff;

    --text-main: #111827;
    --text-muted: #6b7280;

    --primary: var(--ucla-blue);
    --accent: var(--ucla-gold);

    --border-soft: #e5e7eb;
}
/* -------------------------------------------------------
   Typography system
------------------------------------------------------- */

:root {
    --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-literary: "Georgia", "Times New Roman", Times, serif;
}


/* -------------------------------------------------------
   Global
------------------------------------------------------- */

body {
    background:
      radial-gradient(circle at top left, rgba(39,116,174,0.14) 0, transparent 45%),
      radial-gradient(circle at top right, rgba(255,209,0,0.18) 0, transparent 45%),
      var(--bg-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    min-height: 100vh;
}





/* Central container spacing */
main.container {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--ucla-blue-dark);
    text-decoration: underline;
}


/* -------------------------------------------------------
   Typography
------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-literary);
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.01em;
}

.page-title {
    font-family: var(--font-literary);
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}




/* Subtitle or description text */
.page-subtitle {
    font-family: var(--font-literary);
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* -------------------------------------------------------
   Poem typography
------------------------------------------------------- */

article {
    font-family: var(--font-literary);
    font-size: 1.15rem;
    line-height: 2;
    color: #1f2937;
}

article p {
    margin-bottom: 1.25rem;
}
.poem-body {
    white-space: pre-line;
}


/* -------------------------------------------------------
   Navbar (UCLA)
------------------------------------------------------- */





.navbar {
    background: linear-gradient(90deg, var(--ucla-ink) 0, var(--ucla-blue-dark) 50%, var(--ucla-ink) 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
    text-transform: uppercase;
    color: #ffffff !important;
}

.navbar-brand::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 10px;
    border-radius: 999px;
    background: var(--ucla-gold);
    box-shadow: 0 0 0 4px rgba(255,209,0,0.18);
    transform: translateY(1px);
}

.nav-link {
    font-weight: 550;
    color: rgba(255,255,255,0.86) !important;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link.active,
.nav-link[aria-current="page"] {
    color: #ffffff !important;
}

.navbar,
.nav-link {
    font-family: var(--font-ui);
}

/* gold underline on active */
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 2px;
    background: var(--ucla-gold);
    border-radius: 999px;
}


/* -------------------------------------------------------
   Mobile hamburger (Bootstrap navbar toggler)
   Fix invisible burger icon on dark navbar
------------------------------------------------------- */

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.65) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 209, 0, 0.25) !important; /* optional gold focus */
}

.navbar-toggler-icon {
    /* Force the "3 lines" icon to be white */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}


/* -------------------------------------------------------
   UCLA header strip + subheader
------------------------------------------------------- */

.ucla-topbar {
    height: 4px;
    background: linear-gradient(90deg, var(--ucla-gold), #ffe27a, var(--ucla-gold));
}

.ucla-subheader {
    background: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(6px);
}

.ucla-subheader .container {
    padding: 10px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ucla-subheader-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(39,116,174,0.10);
    color: var(--ucla-blue-dark);
    font-weight: 750;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ucla-subheader-text {
    color: rgba(15, 23, 42, 0.75);
    font-size: 0.9rem;
}

/* Optional: a small divider in navbar for auth links */
.nav-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.18);
    display: inline-block;
    margin: 0 6px;
}

/* Optional: make Sign Up look like a subtle CTA */
.nav-link-cta {
    border: 1px solid rgba(255,209,0,0.55);
    border-radius: 999px;
    padding: 0.35rem 0.75rem !important;
    margin-left: 4px;
}

.nav-link-cta:hover {
    background: rgba(255,209,0,0.14);
    text-decoration: none;
}

.nav-link.active,
.nav-link[aria-current="page"] {
  font-weight: 700;
}


/* -------------------------------------------------------
   Cards (lists, home sections)
------------------------------------------------------- */

.card {
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-card);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    border-color: rgba(39,116,174,0.35);
}



.card-text {
    color: var(--text-muted);
}





.card-title {
    font-family: var(--font-literary);
    font-size: 1.1rem;
}

.text-meta {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}


/* -------------------------------------------------------
   Badges
------------------------------------------------------- */

.badge-category {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background-color: rgba(39,116,174,0.12);
    color: var(--ucla-blue-dark);
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Make Bootstrap .bg-secondary badges match brand a bit */
.badge.bg-secondary {
    background-color: rgba(39,116,174,0.14) !important;
    color: var(--ucla-blue-dark) !important;
    border: 1px solid rgba(39,116,174,0.22);
}


/* -------------------------------------------------------
   Poem Detail
------------------------------------------------------- */

.poem-image {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}


/* -------------------------------------------------------
   Footer
------------------------------------------------------- */

footer {
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-soft);
    padding-top: 16px;
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
}


/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */

.btn-primary {
    background: linear-gradient(135deg, var(--ucla-blue), var(--ucla-blue-dark));
    border: none;
    border-radius: 999px;
    font-weight: 650;
    padding-inline: 1.3rem;
    box-shadow: 0 10px 22px rgba(39,116,174,0.28);
}

.btn-primary:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(39,116,174,0.38);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--ucla-gold), #ffdd4d);
    border: 1px solid rgba(2,6,23,0.08);
    color: #1f2937;
    border-radius: 999px;
    font-weight: 650;
}

.btn-secondary:hover {
    filter: brightness(1.01);
}

.btn-outline-secondary {
    border-radius: 999px;
    font-weight: 600;
}


/* -------------------------------------------------------
   Utility helpers
------------------------------------------------------- */

.section-soft {
    background-color: var(--bg-soft);
    border: 1px solid rgba(39,116,174,0.10);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

hr {
    border-color: var(--border-soft);
    opacity: 1;
}

pre,
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

pre {
    background-color: #0b1120;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    overflow-x: auto;
}


/* -------------------------------------------------------
   Responsive tweaks
------------------------------------------------------- */

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 0.98rem;
        letter-spacing: 0.06em;
    }

    main.container {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .page-title {
        font-size: 1.65rem;
    }
}

