/* ═══════════════════════════════════════════
   BarberClub — Individual barber profile CSS
   (pages/barbers/barber-*.html)
   Requires: base.css loaded first
   ═══════════════════════════════════════════ */

/* ═══ CUSTOM CURSOR (profile-specific: fine pointer) ═══ */
@media (pointer: fine) {
    * { cursor: none !important; }
    .cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 8px; height: 8px;
        background: #fff;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10001;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease;
    }
    .cursor-ring {
        position: fixed;
        top: 0; left: 0;
        width: 40px; height: 40px;
        border: 1.5px solid rgba(255,255,255,0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10001;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
    }
    /* Support both class names used across pages */
    .cursor-ring.hover,
    .cursor-ring.hovering {
        width: 60px; height: 60px;
        border-color: rgba(255,255,255,0.8);
    }
}
@media (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ═══ GRAIN TEXTURE OVERLAY ═══ */
.grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.03;
    background-image: none; /* barber pages use inline SVG grain instead of CSS background */
}

/* ═══ PAGE TRANSITION OVERLAY ═══ */
.page-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* ═══ PAGE ENTRANCE ANIMATIONS ═══ */
.page { opacity: 1; }

/* Letter reveal */
.profile-name .letter {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay);
}
.page.loaded .profile-name .letter {
    transform: translateY(0);
}

/* Stagger entrance (used by lucas/julien/tom/alan) */
.stagger {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--stagger);
}
.page.loaded .stagger {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ HEADER ═══ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
    background: rgba(0, 0, 0, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.back-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}
.back-btn svg { width: 18px; height: 18px; }
.logo { height: 40px; width: auto; }
.header-spacer { width: 40px; }

/* ═══ HERO SECTION ═══ */
.hero {
    position: relative;
    padding-top: 60px;
    overflow: hidden;
}
.hero-media-wrap { overflow: hidden; }
.hero-video,
.hero-photo {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.hero-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    pointer-events: none;
}

/* ═══ PROFILE INFO ═══ */
.profile {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 20px;
}
.profile-header {
    text-align: center;
    margin-bottom: 24px;
    overflow: hidden;
}
.profile-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    overflow: hidden;
}
.profile-role {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}
.profile-salon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.profile-salon svg { width: 14px; height: 14px; }

/* ═══ INFO CARDS ═══ */
.info-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.info-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}
.info-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}
.info-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══ BIO ═══ */
.bio-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
.bio-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}
.bio-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ═══ CTA BUTTON ═══ */
.cta-section { margin-bottom: 32px; }
.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: ctaShimmer 3s ease-in-out infinite;
}
@keyframes ctaShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}
.cta-btn:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.9);
}
.cta-btn svg {
    width: 20px; height: 20px;
    position: relative; z-index: 1;
}
.cta-btn span {
    position: relative; z-index: 1;
}

/* ═══ GALLERY SECTION ═══ */
.gallery-section { padding: 0 0 100px; }
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), transparent);
}

/* MASONRY GALLERY */
.gallery {
    columns: 2;
    column-gap: 8px;
    padding: 0 8px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.gallery-item img,
.gallery-item video {
    width: 100%;
    display: block;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

/* ═══ ACCESSIBILITY ═══ */
.skip-to-content {
    position: absolute;
    top: -40px; left: 0;
    background: #fff; color: #000;
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }
a:focus-visible, button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ═══ DESKTOP 768px ═══ */
@media (min-width: 768px) {
    .back-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    .logo { height: 50px; }
    .cta-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    }
}

/* ═══ CINEMATIC DESKTOP 1024px+ ═══ */
@keyframes kenBurnsSlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}
@media (min-width: 1024px) {
    html { background: #000; }
    body { background: #000; min-height: 100vh; }
    body::before, body::after { display: none; }

    .header { z-index: 100; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .header.scrolled { background: rgba(0,0,0,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

    .page::before {
        content: ''; position: fixed; left: 50%; top: 0;
        width: 1px; height: 100%;
        background: linear-gradient(to bottom, transparent 5%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent 95%);
        box-shadow: 0 0 60px 15px rgba(255,255,255,0.015);
        z-index: 5; pointer-events: none;
    }

    .hero {
        position: fixed; left: 0; top: 0;
        width: 50%; height: 100vh;
        padding: 0; overflow: hidden;
        z-index: 1; display: block;
    }
    .hero-media-wrap {
        width: 100%; height: 100%; max-height: none;
        border-radius: 0; box-shadow: none; overflow: hidden;
    }
    .hero-video, .hero-photo {
        width: 100%; height: 100vh; max-height: none;
        aspect-ratio: unset; border-radius: 0;
        object-fit: cover;
        animation: kenBurnsSlow 25s ease-in-out infinite alternate;
    }
    .hero-gradient {
        display: block;
        position: absolute; right: 0; top: 0; bottom: 0; left: auto;
        width: 200px; height: 100%;
        background: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
    }

    .profile {
        position: relative; z-index: 2;
        margin-left: 50%; margin-top: 0;
        padding: 80px 80px 24px 80px;
        max-width: 50vw; min-height: auto;
        display: flex; flex-direction: column;
        justify-content: flex-start;
    }
    .profile-header { text-align: left; margin-bottom: 20px; }
    .profile-name {
        font-size: clamp(72px, 7vw, 100px);
        line-height: 0.9; letter-spacing: 0.02em; margin-bottom: 16px;
    }
    .page.loaded .profile-name .letter { text-shadow: 0 0 40px rgba(255,255,255,0.08); }
    .profile-role { font-size: 11px; letter-spacing: 0.4em; color: rgba(255,255,255,0.35); margin-bottom: 24px; }
    .profile-salon { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 11px; padding: 6px 14px; }

    .info-section { flex-direction: row; gap: 0; margin-bottom: 36px; align-items: center; }
    .info-card {
        background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none;
        border-radius: 0; padding: 0 28px 0 0; text-align: left;
        flex: none; min-width: auto; position: relative;
    }
    .info-card::after {
        content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
        width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.2);
    }
    .info-card:last-child::after { display: none; }
    .info-value { font-size: 20px; margin-bottom: 2px; }
    .info-label { font-size: 9px; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); }

    .bio-section {
        background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none;
        border-radius: 0; padding: 0 0 0 24px; margin-bottom: 40px;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    .bio-title { font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.25); margin-bottom: 14px; }
    .bio-text { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); font-weight: 300; max-width: 420px; }

    .cta-section { margin-bottom: 0; }
    .cta-btn {
        width: auto; display: inline-flex; padding: 20px 48px; font-size: 13px;
        letter-spacing: 0.08em; background: #fff; color: #000; border: none;
        box-shadow: 0 8px 32px rgba(255,255,255,0.15);
    }
    .cta-btn:hover { transform: scale(1.02); box-shadow: 0 8px 40px rgba(255,255,255,0.25); }

    .gallery-section {
        position: relative; z-index: 2; margin-left: 50%;
        padding: 16px 80px 100px; max-width: 50vw;
    }
    .section-title {
        padding: 0; font-size: 10px; letter-spacing: 0.35em;
        color: rgba(255,255,255,0.25); font-weight: 400; margin-bottom: 24px;
    }
    .section-title::after { background: linear-gradient(to right, rgba(255,255,255,0.1), transparent); }
    .gallery {
        columns: unset; display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px; gap: 8px; padding: 0;
    }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(5) { grid-column: span 2; }
    .gallery-item {
        margin-bottom: 0; border-radius: 12px; break-inside: unset; overflow: hidden;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    }
    .gallery-item img, .gallery-item video {
        height: 100%; object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .gallery-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    }
    .gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .profile-name .letter {
        transform: translateY(0) !important;
    }
    .stagger,
    .profile-role,
    .profile-salon,
    .info-section,
    .bio-section,
    .cta-section,
    .gallery-section {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .gallery-item {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .cta-btn::before { animation: none !important; }
}
