/* styles.css — non-critical CSS for index.html (gallery preview, mini sliders) */

/* Gallery Preview */
.gallery-preview {
    padding: 72px 0 64px;
}

.gallery-preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.gallery-preview-header .section-title {
    margin-bottom: 0;
}

.gallery-see-all {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 16px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 100px;
    transition: background 0.2s, border-color 0.2s;
}

.gallery-see-all:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.4);
}

/* Horizontal scroll rail */
.gallery-scroll-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.gallery-scroll-rail::-webkit-scrollbar { height: 4px; }
.gallery-scroll-rail::-webkit-scrollbar-track { background: transparent; }
.gallery-scroll-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Mini before/after card */
.gallery-mini-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    display: block;
}

.gallery-mini-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
}

.gallery-mini-card.lab:hover {
    border-color: rgba(255, 107, 53, 0.35);
}

/* Mini slider */
.mini-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    background: #0f0f15;
}

.mini-before,
.mini-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.mini-before img,
.mini-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-after { clip-path: inset(0 50% 0 0); }

.mini-divider {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    pointer-events: none;
    transform: translateX(-50%);
}

.mini-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 10px;
    color: #0a0a0f;
    font-weight: 700;
}

.mini-labels {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.mini-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(10, 10, 15, 0.75);
    color: var(--text-muted);
}

/* Loading card placeholder */
.gallery-mini-card.loading .mini-slider {
    cursor: default;
}

.mini-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mini-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.mini-card-footer {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-style-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.mini-mode-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 100px;
    border: 1px solid;
}

.mini-mode-badge.barber {
    color: var(--accent);
    border-color: rgba(0, 229, 255, 0.3);
}

.mini-mode-badge.lab {
    color: var(--warm);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Below-fold media queries (gallery-specific only) */
@media (max-width: 768px) {
    .gallery-preview { padding: 50px 0 44px; }
    .gallery-mini-card { flex: 0 0 220px; }
    .mini-slider { height: 170px; }
}