/* ==========================================================================
   MONOLUTS - MINIMALIST EDITORIAL STUDIO DESIGN SYSTEM
   Inspired by Leica, Apple Pro Apps, VSCO, and Kinfolk Magazine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --brand-primary: #0a0a0b;
    --brand-accent: #27272a;
    --surface-bg: #fafafa;
    --card-bg: #ffffff;
    --border-subtle: #eaeaea;
    --border-hairline: #e5e5e7;
    --text-ink: #0a0a0b;
    --text-secondary: #52525b;
    --text-muted: #8e8e93;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--surface-bg);
    color: var(--text-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Custom Minimalist Studio Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 9999px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* Glassmorphism Surfaces */
.studio-glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 229, 231, 0.8);
}

/* Studio Preset Card - Precision Symmetry & Understated Luxury */
.studio-card {
    background: #ffffff;
    border: 1px solid #ebebed;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-card:hover {
    border-color: #d4d4d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
}

/* Card Fixed Slots for Mathematical Grid Symmetry */
.card-tagline-slot {
    min-height: 22px;
    display: flex;
    align-items: center;
}

.card-desc-slot {
    min-height: 36px;
}

/* Card Hover Peek: Reveal Before (RAW) Image */
.card-hover-peek {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.studio-card:hover .card-hover-peek,
.group\/cardimg:hover .card-hover-peek {
    opacity: 1;
}

/* ==========================================================================
   ADVANCED BEFORE / AFTER SLIDER (EDITORIAL STUDIO EDITION)
   ========================================================================== */

.ba-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: ew-resize;
    border-radius: 1rem;
    background: #0a0a0b;
    box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    --ba-position: 50%;
    touch-action: pan-y;
}

.ba-after-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.ba-before-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    clip-path: inset(0 calc(100% - var(--ba-position, 50%)) 0 0);
    -webkit-clip-path: inset(0 calc(100% - var(--ba-position, 50%)) 0 0);
}

.ba-before-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* Sleek Apple / Leica Studio Divider & Handle */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0b;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

/* Expanded invisible touch hit target for thumbs on mobile */
.ba-handle-button::after {
    content: '';
    position: absolute;
    inset: -12px;
}

.ba-container:hover .ba-handle-button {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.ba-container.is-dragging .ba-handle-button {
    transform: translate(-50%, -50%) scale(1.12);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Understated Darkroom Glass Badges (No Neon Clutter) */
.ba-badge {
    position: absolute;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 9999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.2s;
}

.ba-container.is-dragging .ba-badge {
    opacity: 0.2;
}

.ba-badge-before {
    bottom: 14px;
    left: 14px;
    background: rgba(10, 10, 11, 0.75);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ba-badge-after {
    bottom: 14px;
    right: 14px;
    background: rgba(10, 10, 11, 0.75);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .ba-badge {
        padding: 3.5px 8.5px;
        font-size: 8.5px;
        letter-spacing: 0.08em;
    }
    .ba-badge-before {
        bottom: 8px;
        left: 8px;
    }
    .ba-badge-after {
        bottom: 8px;
        right: 8px;
    }
    .ba-handle-button {
        width: 32px;
        height: 32px;
    }
}

/* Mobile Safe Area & Touch Utilities */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.no-scrollbar,
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mobile-safe-bottom {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
}

/* Hold to Compare Button Tactile Effect */
.btn-hold-compare {
    transition: all 0.15s ease;
    user-select: none;
}

.btn-hold-compare:active,
.btn-hold-compare.active {
    transform: scale(0.97);
    background-color: #0a0a0b !important;
    color: #ffffff !important;
    border-color: #0a0a0b !important;
}

/* ==========================================================================
   AUTHENTIC ADOBE LIGHTROOM CALIBRATION GAUGES (TELEMETRY STYLE)
   User approved: Kept intact with refined darkroom telemetry styling
   ========================================================================== */

.lr-meter-bg {
    background-color: #f4f4f5;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    height: 3px;
}

.lr-meter-exposure {
    background: #18181b;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lr-meter-temperature {
    background: linear-gradient(90deg, #93c5fd 0%, #fde047 50%, #f59e0b 100%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lr-meter-contrast {
    background: #27272a;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lr-meter-saturation {
    background: #3f3f46;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lr-meter-details {
    background: #52525b;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lr-meter-highlights {
    background: linear-gradient(90deg, #fcd34d 0%, #fbbf24 100%);
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.lr-meter-shadows {
    background: #475569;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   COMMUNITY REVIEWS AVATAR NEUTRALS
   ========================================================================== */

.avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    color: #ffffff;
    background: #18181b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.avatar-grad-1 { background: #18181b; }
.avatar-grad-2 { background: #27272a; }
.avatar-grad-3 { background: #3f3f46; }
.avatar-grad-4 { background: #52525b; }
.avatar-grad-5 { background: #18181b; }
.avatar-grad-6 { background: #27272a; }

/* ==========================================================================
   SPONSORED CONTAINERS (MINIMALIST STUDIO SPEC)
   ========================================================================== */

.ad-slot-container {
    background: #ffffff;
    border: 1px solid #ebebed;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: border-color 0.2s ease;
}

.ad-slot-container:hover {
    border-color: #d4d4d8;
}

.ad-slot-tag {
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
    display: inline-block;
    font-weight: 600;
}

/* Category Filter Clean Horizontal Scroller */
#categoryContainer {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#categoryContainer::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   CLIENT ASSET & INTERACTION PROTECTION
   ========================================================================== */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}


