﻿/* =========================
   JULIA SITE THEME (CJR blue/red/ice)
   app.css (CLEAN + READABLE LAYOUT)
   Paste this as your whole app.css
   ========================= */

/* ---- Colors ---- */
:root {
    --bg0: #05070c; /* deep black */
    --bg1: #0b1224; /* deep navy */
    --blue: #1e4ed8; /* Rangers-ish blue */
    --blue2: #2b6cff; /* brighter blue accent */
    --red: #d10f1a; /* Rangers red */
    --ice: #eaf3ff; /* main text (icy white) */
    --muted: #b9c8db; /* paragraph text */
    --card: rgba(255,255,255,.07);
    --border: rgba(255,255,255,.14);
    /* fixed nav height (navbar CSS uses this too) */
    --nav-h: 72px;
}

/* ---- Page background + base text ---- */
html, body {
    height: 100%;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--ice);
    background: repeating-linear-gradient( 135deg, rgba(43,108,255,.18) 0px, rgba(43,108,255,.18) 12px, rgba(43,108,255,0) 12px, rgba(43,108,255,0) 48px ), repeating-linear-gradient( 45deg, rgba(209,15,26,.10) 0px, rgba(209,15,26,.10) 10px, rgba(209,15,26,0) 10px, rgba(209,15,26,0) 60px ), radial-gradient(1100px 700px at 20% 0%, rgba(255,255,255,.07), transparent 60%), linear-gradient(180deg, var(--bg1), var(--bg0));
    background-attachment: fixed;
}

/* push content below fixed navbar */
body {
    padding-top: var(--nav-h);
    overflow-x: hidden;
}

/* ---- Global layout (this fixes "full width messy text") ---- */
main {
    display: block;
    padding: 28px 16px;
}

/* If your layout doesn't use <main>, these catch common wrappers */
#app, .page, .content {
    padding: 28px 16px;
}

/* ---- Links ---- */
a {
    color: #b9d4ff;
    text-decoration: none;
}

    a:hover {
        color: #ffffff;
    }

/* ---- Main content card ---- */
.about {
    max-width: 980px;
    margin: 18px auto 28px;
    padding: 2.2rem 1.6rem;
    line-height: 1.75;
    /* stronger glass so text is readable on the patterned background */
    background: rgba(8, 12, 20, .70);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 22px 70px rgba(0,0,0,.55);
}

/* anchor jump should not hide under fixed nav */
#about, #history {
    scroll-margin-top: var(--nav-h);
}

/* ---- Typography ---- */
.about h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.2rem);
    margin: 0 0 1rem;
    text-align: center;
    letter-spacing: .2px;
}

.about h2 {
    margin-top: 2.4rem;
    font-size: 1.9rem;
}

    .about h2::before {
        content: "";
        display: block;
        width: 72px;
        height: 3px;
        margin: 18px 0 14px;
        background: linear-gradient(90deg, var(--blue2), rgba(209,15,26,.85));
        border-radius: 99px;
    }

/* keep paragraphs readable (not too wide) */
.about p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Avatar (circle photo) ---- */
.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 18px;
    cursor: pointer;
    border: 4px solid rgba(43,108,255,.95);
    box-shadow: 0 0 0 3px rgba(209,15,26,.55), 0 16px 55px rgba(0,0,0,.55);
}

/* ---- Fullscreen photo modal ---- */
.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.photo-modal-img {
    max-width: min(100%, 1100px);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 22px 90px rgba(0,0,0,.70);
    border: 1px solid rgba(255,255,255,.12);
}

.photo-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: white;
    font-size: 28px;
    line-height: 44px;
    cursor: pointer;
}

    .photo-close:hover {
        background: rgba(43,108,255,.22);
        border-color: rgba(43,108,255,.35);
    }

/* ---- Gallery grid ---- */
.gallery {
    max-width: 980px;
    margin: 18px auto 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.gallery-item {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        transition: transform .18s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.03);
    }

/* hide Blazor runtime error banner (optional) */
#blazor-error-ui {
    display: none !important;
}

/* ---- Better spacing on mobile ---- */
@media (max-width: 600px) {
    :root {
        --nav-h: 64px;
    }

    main, #app, .page, .content {
        padding: 18px 12px;
    }

    .about {
        margin: 0 auto 18px;
        padding: 1.6rem 1.1rem;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }
}
#history {
    text-align: center;
}

    #history::before {
        margin-left: auto;
        margin-right: auto;
    }
