/**
 * Luxury Enhancements - Modern Visual Effects
 * Premium interactions and animations for ShopWave Luxe
 */

/* ==========================================================================
   Smooth Scrolling & Performance
   ========================================================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Luxury Cursor Effects
   ========================================================================== */

a, button, [role="button"] {
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover, button:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   Premium Button Animations
   ========================================================================== */

.wp-block-button__link {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-button__link:hover::before {
    width: 300px;
    height: 300px;
}

/* Shimmer Effect */
.wp-block-button__link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-button__link:hover::after {
    left: 200%;
}

/* ==========================================================================
   Image Hover Effects - Luxury Parallax
   ========================================================================== */

.wp-block-image {
    overflow: hidden;
    position: relative;
}

.wp-block-image img {
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.02);
}

/* Overlay on Hover */
.wp-block-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 97, 0.08) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.wp-block-image:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Cover Block - Cinematic Effects
   ========================================================================== */

.wp-block-cover {
    position: relative;
}

.wp-block-cover__background {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-cover:hover .wp-block-cover__background {
    opacity: 0.7;
}

/* Vignette Effect */
.wp-block-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 20%,
        rgba(10, 10, 10, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   Text Selection Styling
   ========================================================================== */

::selection {
    background: #c9a961;
    color: #0a0a0a;
    text-shadow: none;
}

::-moz-selection {
    background: #c9a961;
    color: #0a0a0a;
    text-shadow: none;
}

/* ==========================================================================
   Luxury Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #c9a961;
    border-radius: 0;
    transition: background 0.3s ease;
}

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

/* ==========================================================================
   Navigation Enhancements
   ========================================================================== */

.wp-block-navigation-item {
    position: relative;
}

.wp-block-navigation-item__content {
    position: relative;
    display: inline-block;
}

/* Underline Animation */
.wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #c9a961, #b08968);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-navigation-item a:hover::after,
.wp-block-navigation-item.current-menu-item a::after {
    width: 100%;
}

/* ==========================================================================
   Card Hover Effects
   ========================================================================== */

.wp-block-column,
.wp-block-group {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-columns > .wp-block-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(10, 10, 10, 0.15),
                0 10px 20px -10px rgba(201, 169, 97, 0.08);
}

/* ==========================================================================
   Reveal Animations on Scroll
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-scale-in {
    animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* ==========================================================================
   Link Hover Effects
   ========================================================================== */

a {
    position: relative;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:not(.wp-block-button__link)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:not(.wp-block-button__link):hover::before {
    width: 100%;
}

/* ==========================================================================
   Glassmorphism Effects
   ========================================================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-effect-dark {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Gradient Text Effect
   ========================================================================== */

.gradient-text {
    background: linear-gradient(135deg, #c9a961 0%, #b08968 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Loading Skeleton
   ========================================================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f4f4f5 0%,
        #e4e4e7 50%,
        #f4f4f5 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* ==========================================================================
   Focus Visible - Accessibility
   ========================================================================== */

*:focus-visible {
    outline: 2px solid #c9a961;
    outline-offset: 3px;
    border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
    outline-color: #c9a961;
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    img {
        page-break-inside: avoid;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .auto-dark {
        background: #0a0a0a;
        color: #f4f4f5;
    }

    .auto-dark a {
        color: #c9a961;
    }
}
