/* ============================================================
   sv-core.css — Steve Vertigo shared styles
   Used by: index.html, all show pages
   ============================================================ */

/* VARIABLES & RESET
   ============================================================ */
:root {
    --black: #0a0a0a;
    --off-black: #141414;
    --dark: #1a1a1a;
    --mid: #2a2a2a;
    --accent: #e8c547;
    --accent-dim: #c4a535;
    --text: #e8e8e8;
    --text-dim: #999;
    --text-faint: #666;
    --white: #f5f5f0;
    --teal: #3a8c8c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--black);
    color: var(--text);
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* NAV
   ============================================================ */
.nav-main {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    background: transparent;
}
.nav-main.scrolled {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--mid);
}
.nav-brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
}
.nav-links a {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
    margin-left: 2rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* BACK LINK (show pages)
   ============================================================ */
.back-link {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    z-index: 1000;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}
.back-link:hover { color: var(--accent); }

/* SECTIONS
   ============================================================ */
section { padding: 5rem 0; }
.section-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
}
.divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem 0;
}

/* BUTTONS
   ============================================================ */
.btn-sv {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--accent);
    border: none;
    padding: 1rem 2.5rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-sv:hover { background: var(--white); color: var(--black); }

.btn-sv-outline {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    padding: 0.8rem 2rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-sv-outline:hover { background: var(--accent); color: var(--black); }

/* GALLERY
   ============================================================ */
.gallery-section { background: var(--off-black); }
.gallery-grid {
    display: grid;
    /* 3 equal columns, rows auto-height from grid-auto-rows.
       All cells are identical by default.
       Highlight modifiers:
         gallery-wide  → spans 2 columns
         gallery-tall  → spans 2 rows
         gallery-hero  → spans 2 columns AND 2 rows
       Adjust --gallery-row-h to taste — all rows share this height. */
    --gallery-row-h: 320px;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: var(--gallery-row-h);
    gap: 6px;
    margin-top: 2.5rem;
}
.gallery-item { overflow: hidden; position: relative; cursor: pointer; height: 100%; }

/* Highlight modifiers — add to any .gallery-item */
.gallery-item.gallery-wide { grid-column: span 2; }
.gallery-item.gallery-tall { grid-row: span 2; }
.gallery-item.gallery-hero { grid-column: span 2; grid-row: span 2; }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--dark);
    border: 1px solid var(--mid);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: border-color 0.3s;
}
.gallery-placeholder:hover { border-color: var(--accent-dim); }
.gallery-placeholder-icon { font-size: 1.5rem; opacity: 0.2; }
.gallery-placeholder-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: center;
    padding: 0 1rem;
}
.gallery-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-placeholder:hover img { transform: scale(1.04); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.92));
    padding: 2rem 1rem 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.gallery-filter {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.gallery-filter-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    background: none;
    border: 1px solid var(--mid);
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active { color: var(--accent); border-color: var(--accent-dim); }

/* FOOTER
   ============================================================ */
footer {
    background: var(--off-black);
    padding: 2rem 0;
    border-top: 1px solid var(--mid);
}
footer p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: center;
}

/* ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* RESPONSIVE — shared
   ============================================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,10,10,0.98);
        padding: 1rem 2rem;
        flex-direction: column;
    }
    .nav-links.open { display: flex; }
    .nav-links a { margin-left: 0; margin-bottom: 0.8rem; font-size: 1rem; }
    .nav-toggle { display: block; }
    section { padding: 3.5rem 0; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; gap: 4px; }
    .gallery-item.gallery-wide,
    .gallery-item.gallery-hero { grid-column: span 1; }