/* younick.me - Luxurious Dark Theme with Sophisticated Animations */

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    background: #000000;
    background-image: 
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

/* ===== ANIMATIONS ===== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Animation Delays */
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-800 { animation-delay: 0.8s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Pulse Slow Animation */
@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulseSlow 8s ease-in-out infinite;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

/* Shimmer Animation for Progress Bars */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

/* ===== PRODUCT CARD ANIMATIONS ===== */
.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-fill-mode: both;
}

/* Stagger animation for product cards */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* Stock Bar Animation */
.stock-bar {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* ===== LIGHTBOX STYLES ===== */
#lightbox {
    backdrop-filter: blur(12px);
}

#lightbox.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

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

#lightbox-image,
#lightbox-image-mobile {
    animation: zoomIn 0.4s ease-out;
}

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

/* Lightbox Description Prose Styling */
.prose-yellow {
    color: #d1d5db;
}

.prose-yellow h1,
.prose-yellow h2,
.prose-yellow h3,
.prose-yellow h4,
.prose-yellow h5,
.prose-yellow h6 {
    color: #fbbf24;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-size: 1em;
}

.prose-yellow p {
    margin-bottom: 0.75em;
    line-height: 1.6;
}

.prose-yellow strong {
    color: #fbbf24;
    font-weight: 600;
}

.prose-yellow em {
    color: #fcd34d;
    font-style: italic;
}

.prose-yellow ul,
.prose-yellow ol {
    margin: 0.75em 0;
    padding-left: 1.25em;
}

.prose-yellow li {
    margin: 0.3em 0;
}

.prose-yellow a {
    color: #fbbf24;
    text-decoration: underline;
    transition: color 0.3s;
}

.prose-yellow a:hover {
    color: #fcd34d;
}

.prose-yellow blockquote {
    border-left: 2px solid #fbbf24;
    padding-left: 0.75em;
    margin: 1em 0;
    font-style: italic;
    color: #9ca3af;
}

/* ===== BUTTON HOVER EFFECTS ===== */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

/* ===== FORM INPUT STYLES ===== */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.15);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: rgba(234, 179, 8, 0.3);
}

/* ===== LOADING ANIMATION ===== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #a67c00);
    border-radius: 6px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fbbf24, #d4af37);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #0a0a0a;
}

/* ===== SELECTION STYLING ===== */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

/* ===== IMAGE RENDERING ===== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== GOLD GLOW EFFECT ===== */
.gold-glow {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #d4af37 50%, #ca8a04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LINK TRANSITIONS ===== */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MODAL BACKDROP ===== */
#reservation-modal {
    backdrop-filter: blur(12px);
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* ===== CARD SHINE EFFECT ===== */
.product-card > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.08),
        transparent
    );
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.product-card:hover > div::before {
    left: 100%;
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Disable transitions for elements that shouldn't have them */
button,
a,
input,
textarea,
select {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .product-card {
        animation-delay: 0s !important;
    }
}

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

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ===== BACKDROP BLUR SUPPORT ===== */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .backdrop-blur-xl {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

