/* =============================================================================
   Copyright (c) 2025-2026 Greg Ames/Ames & Associates. All Rights Reserved.
   Project: Showcase | Filename: static/public/showcase.css
   -----------------------------------------------------------------------------
   Public per-artist showcase styles (Sprint 5). Adapted from the GregoryAmesArt
   aesthetic: a fixed rotating-art background crossfade (#bg1/#bg2), a dark
   readable overlay, a clean gallery grid, a lightbox, and a slideshow caption
   panel. Vendored into Showcase static — no runtime dependency on art.ac44.com.
   ========================================================================== */

:root {
    --accent: #6366f1;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
}

/* ----- Rotating-art crossfade background (two stacked layers) ----- */
.bg-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}
.bg-layer.bg-active { opacity: 1; }

.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* When there is no art yet, fall back to a tasteful gradient. */
.bg-fallback {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #111 0%, #1f1f3a 60%, #2a2a4a 100%);
    z-index: 0;
}

/* ----- Top nav ----- */
.site-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.site-nav .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.site-nav .brand small {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    opacity: .8;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0; padding: 0;
}
.site-nav a.nav-link {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .95rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color .25s ease, opacity .25s ease;
}
.site-nav a.nav-link:hover,
.site-nav a.nav-link.active { border-bottom-color: #fff; }

/* ----- Page shell ----- */
.page {
    position: relative;
    z-index: 5;
    min-height: 70vh;
    padding: 40px 28px 80px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 70px 24px 30px;
}
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin: 0 0 10px;
    text-shadow: 0 4px 18px rgba(0,0,0,.8);
}
.hero .tagline {
    font-size: clamp(1rem, 2.6vw, 1.5rem);
    opacity: .92;
    text-shadow: 0 2px 12px rgba(0,0,0,.8);
    margin: 0 auto;
    max-width: 46rem;
}

.section-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin: 36px 0 18px;
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

.panel {
    background-color: rgba(0,0,0,.62);
    border-radius: 12px;
    padding: 28px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    line-height: 1.7;
    font-size: 1.08rem;
}
.panel h2 { margin-top: 0; }

/* ----- Collection index (cards) ----- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.collection-card {
    display: block;
    text-decoration: none;
    color: #fff;
    background-color: rgba(0,0,0,.5);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,.55);
}
.collection-card .cover {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background-color: #111;
}
.collection-card .meta { padding: 14px 16px; }
.collection-card .meta h3 { margin: 0 0 4px; font-size: 1.2rem; }
.collection-card .meta .count { opacity: .75; font-size: .9rem; }

/* ----- Artwork gallery grid ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    grid-auto-rows: 200px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #000;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s ease;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .3s ease;
}
.gallery-item:hover img { opacity: .8; }
.gallery-item .caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,.72);
    padding: 8px 10px;
    font-size: .85rem;
    transform: translateY(100%);
    transition: transform .3s ease;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-item:hover .caption,
.gallery-item:focus-visible .caption { transform: translateY(0); }
/* Accessibility: clear keyboard focus ring (the grid items are focusable
   role="button"s; mouse users don't see this, keyboard users do). */
.gallery-item:focus-visible {
    outline: 3px solid var(--accent, #6366f1);
    outline-offset: 3px;
}

/* ----- Pagination ----- */
.pagination {
    display: flex; gap: 14px; flex-wrap: wrap;
    align-items: center; justify-content: center;
    margin: 28px 0 8px;
}
.pagination .page-status {
    color: rgba(255,255,255,.85);
    font-size: .95rem;
}

/* ----- Buttons / controls ----- */
.controls {
    display: flex; gap: 12px; flex-wrap: wrap;
    justify-content: center;
    margin: 22px 0;
}
.btn {
    display: inline-block;
    padding: .7rem 1.6rem;
    font-size: 1rem;
    font-family: inherit;
    color: #fff;
    text-decoration: none;
    background-color: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .25s ease, transform .2s ease, border-color .25s ease;
}
.btn:hover {
    background-color: rgba(0,0,0,.8);
    border-color: rgba(255,255,255,.9);
    transform: translateY(-1px);
}
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.1); background-color: var(--accent); }

/* ----- Lightbox ----- */
.lightbox {
    display: flex; align-items: center; justify-content: center;
    position: fixed; inset: 0;
    z-index: 100;
    background-color: rgba(0,0,0,.92);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease;
}
.lightbox.visible { opacity: 1; visibility: visible; }
.lightbox-inner {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    max-width: 92%; max-height: 92vh;
}
.lightbox-inner img {
    max-height: 68vh; max-width: 100%;
    width: auto; background-color: #000;
    margin-bottom: 16px; border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: -44px; right: 0;
    color: #fff; font-size: 40px; font-weight: 700;
    cursor: pointer; line-height: 1;
}
.lightbox-caption { color: #fff; text-align: center; max-width: 820px; padding: 0 18px; }
.lightbox-title { font-size: 1.5rem; margin: 0 0 10px; }
.lightbox-desc {
    font-size: 1rem; line-height: 1.6;
    max-height: 26vh; overflow-y: auto;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.4);
    color: #fff; font-size: 26px; width: 48px; height: 48px;
    border-radius: 50%; cursor: pointer;
}
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }

/* ----- Slideshow caption panel (home/collection slideshow mode) ----- */
.slide-caption {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%; max-width: 1100px;
    background-color: rgba(0,0,0,.8);
    color: #fff; padding: 18px 28px;
    z-index: 12; text-align: center;
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
    border-top-left-radius: 10px; border-top-right-radius: 10px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.slide-caption.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.slide-caption h3 { margin: 0 0 8px; font-size: 1.4rem; }
.slide-caption p { margin: 0; font-size: 1rem; line-height: 1.55; }

/* ----- 404 ----- */
.error-wrap {
    position: relative; z-index: 5;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 2rem 1.5rem;
}
.code-404 {
    font-size: clamp(5rem, 22vw, 11rem);
    font-weight: 700; line-height: 1; letter-spacing: 4px;
    text-shadow: 0 4px 24px rgba(0,0,0,.8); margin-bottom: .5rem;
}

footer.site-footer {
    position: relative; z-index: 5;
    text-align: center; padding: 24px;
    font-size: .85rem; opacity: .7;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .site-nav { flex-direction: column; gap: 12px; }
    .site-nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: 140px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* =============================================================================
   End of File - static/public/showcase.css
   Copyright (c) 2025-2026 Greg Ames/Ames & Associates. All Rights Reserved.
   ========================================================================== */
