/* ========================================
   King Dumplings — Custom Styles
   Bold editorial · Burgundy & Blush
======================================== */

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ---------- Smooth Scroll ---------- */
html {
    scroll-behavior: smooth;
}

/* ---------- Selection ---------- */
::selection {
    background-color: #971540;
    color: #fefdfb;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #d4356a;
    border-radius: 4px;
}

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

/* ---------- Navbar ---------- */
#navbar {
    background: rgba(254, 253, 251, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(151, 21, 64, 0.06);
}

/* ---------- Mobile Menu Transitions ---------- */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:active {
    transform: scale(0.97);
}

/* ---------- Image Hover ---------- */
img {
    display: block;
}

/* ---------- Focus States ---------- */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid #971540;
    outline-offset: 2px;
}

/* ---------- Button Ripple Effect ---------- */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

/* ---------- Print Styles ---------- */
@media print {
    #navbar,
    #mobile-menu,
    .animate-fade-up,
    .animate-fade-in {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ---------- Subtle Hover Lift on Cards ---------- */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Form Select Arrow ---------- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23971540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}
