﻿/* =========================
   JULIA SITE THEME (CJR blue/red/ice)
   app.css (CLEAN + READABLE LAYOUT)
   FULL FILE (paste as whole app.css)
   ========================= */

/* ---- Colors ---- */
:root {
    --strip-h: 4px;
    --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);
    --nav-h: 72px; /* fixed nav height */
}

/* ---- 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: calc(var(--nav-h) + var(--strip-h));
    overflow-x: hidden;
}

/* ---- Global layout ---- */
main {
    display: block;
    padding: 28px 16px;
}

.page-center {
    display: flex;
    justify-content: center;
    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;
    margin-top: 40px;
    padding: 2.2rem 1.6rem;
    line-height: 1.75;
    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);
    text-align: center; /* ✅ center content in the card */
}

/* anchor jump should not hide under fixed nav */
#about, #history, #cjr, #wf {
    scroll-margin-top: var(--nav-h);
}

/* Remove any accidental frame around the hero title */
.hero-title,
.about h1 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ---- 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;
    text-align: center;
}

.about h3 {
    text-align: center;
}

/* centered accent line */
.about h2::before {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 18px auto 14px;
    background: linear-gradient(90deg, var(--blue2), rgba(209,15,26,.85));
    border-radius: 99px;
}

/* paragraphs centered but readable width */
.about p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---- 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);
}

/* ---- Photo modal ---- */
.photo-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999999;
}

.photo-window {
    position: relative;
    width: min(980px, 92vw);
    height: min(86vh, 720px);
    background: rgba(10,14,24,.92);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.65);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: contain;
}

.photo-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    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 (optional) ---- */
.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;
}

/* ---- Carousel (under Historia) ---- */
.jw-carousel {
    max-width: 980px;
    margin: 22px auto 10px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
}

.jw-car-btn {
    height: 44px;
    width: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: var(--ice);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

    .jw-car-btn:hover {
        background: rgba(255,255,255,.14);
    }

/* Biggest possible while still fitting (no crop) */
.jw-car-viewport {
    max-width: 760px;
    width: 100%;
    height: 360px;
    margin: 22px auto 10px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.28);
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jw-car-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.jw-car-dots {
    max-width: 980px;
    margin: 10px auto 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.jw-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    cursor: pointer;
}

    .jw-dot.active {
        background: rgba(43,108,255,.85);
        border-color: rgba(43,108,255,.95);
    }

/* ---- Gallery arrows viewer ---- */
.jw-gallery-viewer {
    max-width: 900px;
    margin: 18px auto 10px;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 12px;
    align-items: center;
}

.jw-g-btn {
    height: 52px;
    width: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: var(--ice);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

    .jw-g-btn:hover {
        background: rgba(255,255,255,.14);
    }

.jw-g-viewport {
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.28);
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jw-g-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.jw-g-dots {
    max-width: 900px;
    margin: 10px auto 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.jw-g-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    cursor: pointer;
}

    .jw-g-dot.active {
        background: rgba(43,108,255,.85);
        border-color: rgba(43,108,255,.95);
    }

/* ---- Page footer ---- */
.page-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
    text-align: center;
}

.page-footer-logo {
    height: 52px;
    width: auto;
    display: block;
    margin: 0 auto 10px;
    opacity: .92;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,.45));
}

/* ---- Brand (logo + text) ---- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
}

.brand-logo {
    height: 34px; /* desktop */
    width: auto;
    display: block;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
}

/* ---- Mobile ---- */
@media (max-width: 700px) {
    .jw-g-viewport {
        height: 320px;
    }

    .jw-gallery-viewer {
        grid-template-columns: 44px 1fr 44px;
    }

    .jw-g-btn {
        height: 44px;
        width: 44px;
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    :root {
        --nav-h: 64px;
    }

    main, #app, .page, .content {
        padding: 18px 12px;
    }

    .page-center {
        padding: 18px 12px;
    }

    .about {
        margin: 0 auto 18px;
        padding: 1.6rem 1.1rem;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }

    .jw-car-viewport {
        max-width: 100%;
        height: 240px;
    }

    .page-footer-logo {
        max-width: min(140px, 60vw);
    }
}

@media (max-width: 820px) {
    .brand {
        font-size: 22px;
    }

    .brand-logo {
        height: 22px;
    }
    .about,
    .about .hero-text,
    .about p,
    .about .hero-text p,
    .about h1,
    .about h2,
    .about h3 {
        text-align: center !important;
    }

        /* center the decorative line above h2 */
        .about h2::before {
            margin-left: auto !important;
            margin-right: auto !important;
        }
}
