/* VYCE Custom Styles */

/* ===== FILM GRAIN OVERLAY ===== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== HERO LOGO GLOW ===== */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.logo-vignette {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.08));
}

/* ===== HERO SPOTLIGHT ===== */
.hero-spotlight {
    background: radial-gradient(
        ellipse 80% 60% at 50% 40%,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 50%
    );
    pointer-events: none;
}

/* ===== VIDEO SHOWCASE ===== */
.video-showcase video {
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-showcase:hover video {
    transform: scale(1.02);
}

/* ===== TYPOGRAPHY ===== */
.editorial-title {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.02em;
}

.font-tech {
    font-family: 'Space Mono', monospace;
}

/* ===== ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading Screen */
#loader {
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===== IMAGE EFFECTS ===== */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), filter 1s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.05);
    filter: contrast(110%) brightness(110%);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: rgba(82, 82, 82, 0.4);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 229, 229, 0.6);
}

/* ===== NAVIGATION UNDERLINE EFFECT ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card .product-image {
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
    filter: contrast(105%) brightness(105%);
}

/* ===== CARD CAROUSEL (Shop Grid) ===== */
.card-carousel-img {
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.card-carousel-img.active {
    opacity: 0.7;
    z-index: 1;
}

.product-card:hover .card-carousel-img.active {
    opacity: 0.9;
}

.product-card.sold-out .card-carousel-img {
    opacity: 0;
}

.product-card.sold-out .card-carousel-img.active {
    opacity: 0.4;
    filter: grayscale(100%) brightness(60%);
}

.card-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.product-card:hover .card-carousel-arrow {
    opacity: 1;
}

.card-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.card-carousel-prev {
    left: 6px;
}

.card-carousel-next {
    right: 6px;
}

.card-carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover .card-carousel-dots {
    opacity: 1;
}

.card-carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease;
}

.card-carousel-dot.active {
    background: white;
}

/* ===== SOLD OUT STATE ===== */
.product-card.sold-out {
    opacity: 0.7;
}

.product-card.sold-out:hover {
    transform: none;
}

.product-card.sold-out .product-image {
    filter: grayscale(100%) brightness(60%);
}

.product-card.sold-out:hover .product-image {
    transform: none;
    filter: grayscale(100%) brightness(60%);
}

.product-card.sold-out:hover .card-carousel-arrow,
.product-card.sold-out:hover .card-carousel-dots {
    opacity: 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 3rem;
    transition: all 0.5s ease;
}

.btn-primary:hover {
    background-color: white;
    color: black;
}

.btn-outline {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.25rem;
    transition: border-color 0.3s ease;
}

.btn-outline:hover {
    border-color: white;
}

/* ===== CART BADGE ===== */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: white;
    color: black;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
}

/* ===== QUANTITY CONTROLS ===== */
.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #050505;
    z-index: 60;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    right: 0;
}

/* ===== ACCORDION ===== */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 500px;
}

/* ===== SELECTION ===== */
::selection {
    background-color: rgba(229, 229, 229, 0.3);
    color: white;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(
        90deg,
        #0f0f0f 0%,
        #1a1a1a 50%,
        #0f0f0f 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 2px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    border-radius: 4px;
}

.skeleton-image {
    aspect-ratio: 1;
    border-radius: 2px;
}

/* ===== FOCUS INDICATORS ===== */
:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.nav-link:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.hover-trigger:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

/* Keyboard navigation mode */
body.keyboard-nav {
    cursor: auto !important;
}

/* ===== ENHANCED TRANSITIONS ===== */
.page-transition-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-transition-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== FILTER BUTTON STATES ===== */
.filter-btn {
    transition: all 0.2s ease;
}

.filter-btn.active {
    color: white;
    border-bottom: 1px solid white;
}

/* ===== FORM VALIDATION ===== */
.newsletter-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.newsletter-input:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

/* ===== NOTIFICATION STYLES ===== */
.vyce-notification {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== CARD CAROUSEL MOBILE ===== */
@media (max-width: 768px) {
    .card-carousel-arrow {
        opacity: 1;
        width: 24px;
        height: 24px;
    }

    .card-carousel-dots {
        opacity: 1;
    }
}

/* ===== IMPROVED MOBILE MENU ===== */
@media (max-width: 768px) {
    .mobile-menu nav a {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .mobile-menu.open nav a {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-menu.open nav a:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu.open nav a:nth-child(2) { transition-delay: 0.15s; }
    .mobile-menu.open nav a:nth-child(3) { transition-delay: 0.2s; }
    .mobile-menu.open nav a:nth-child(4) { transition-delay: 0.25s; }
}
