/* MIXONE Architectural Paints - Custom Styling */

:root {
    --brand-black: #0B0C0E;
    --brand-charcoal: #121417;
    --brand-dark: #181B20;
    --brand-cream: #F5F2EB;
    --brand-border: rgba(255, 255, 255, 0.08);
    --brand-accent: #D4A373;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #0B0C0E;
}
::-webkit-scrollbar-thumb {
    background: #252A33;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3B4250;
}

/* Canvas styling */
canvas {
    outline: none;
    user-select: none;
}

.webgl-container {
    position: relative;
    cursor: grab;
    overflow: hidden;
}
.webgl-container:active {
    cursor: grabbing;
}

/* Sheen Finish Simulation Overlays */
.finish-sample {
    position: relative;
    overflow: hidden;
}

.finish-sample-matte {
    filter: contrast(0.96) brightness(0.98);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.finish-sample-satin {
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 55%, rgba(0,0,0,0.25) 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.25), inset 0 -3px 12px rgba(0,0,0,0.35);
}

.finish-sample-semigloss {
    background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.06) 35%, rgba(0,0,0,0.4) 100%);
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.45), 0 12px 32px -6px rgba(0,0,0,0.6);
}

/* Glint animation for Semi-Gloss sheen */
@keyframes specularGlint {
    0% { transform: translateX(-150%) skewX(-25deg); }
    100% { transform: translateX(250%) skewX(-25deg); }
}

.glint-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    animation: specularGlint 5.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Subtle grain noise texture overlay */
.grain-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Swatch Card Hover */
.swatch-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}
.swatch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 48px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Swatch Card Pill */
.color-pill {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.color-pill:hover {
    transform: scale(1.18);
    box-shadow: 0 0 16px rgba(255,255,255,0.25);
}

/* Toast Notification */
.toast-msg {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Range slider styling */
input[type=range] {
    -webkit-appearance: none;
    background: #252A33;
    height: 3px;
    border-radius: 2px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #F5F2EB;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #FFFFFF;
}

/* Room visualizer SVG masking */
.visualizer-wall {
    transition: fill 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphism Floating Pill Bar */
.glass-pill-bar {
    background: rgba(18, 20, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* Tonester-style Monospace Marquee */
.tonester-marquee {
    width: 100%;
    overflow: hidden;
    background: #030306;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}
.tonester-marquee-track {
    display: flex;
    width: max-content;
    animation: tonesterScroll 50s linear infinite;
}
.tonester-marquee-track:hover {
    animation-play-state: paused;
}
@keyframes tonesterScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Tonester Rotating Stamp Badge */
@keyframes spinBadgeSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin-slow {
    animation: spinBadgeSlow 28s linear infinite;
}
.spin-slow:hover {
    animation-play-state: paused;
}

/* Hero Can Specimen Shadow & Lift */
.can-float-shadow {
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.6));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.can-float-shadow:hover {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 35px 50px rgba(0,0,0,0.75));
}

/* Texture overlay on can and swatches */
.texture-overlay {
    background-size: cover;
    background-position: center;
    mix-blend-mode: overlay;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Texture card hover */
.texture-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.texture-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.25);
}

/* Flank Cards Hover */
.flank-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.flank-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 24px 40px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.25);
}

