/* ===== Custom Styles for The Bearded Clam ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111827;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8645A;
}

/* Selection color */
::selection {
    background: rgba(232, 100, 90, 0.3);
    color: #f6f6f7;
}

/* ===== Scroll Reveal Animations ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Navbar Transition ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Menu Item Hover ===== */
.menu-item-row {
    position: relative;
}

.menu-item-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232, 100, 90, 0.3), transparent);
    transition: width 0.3s ease;
}

.menu-item-row:hover::after {
    width: 100%;
}

/* ===== Hero Image Float ===== */
@media (min-width: 1024px) {
    #hero .relative > div:last-child {
        animation: heroFloat 6s ease-in-out infinite;
    }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Card Hover Effects ===== */
.group:hover .group-hover\\:bg-coral-500\\/20 {
    background: rgba(232, 100, 90, 0.2);
}

/* ===== Input Autofill ===== */
input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1f2937 inset !important;
    -webkit-text-fill-color: #f6f6f7 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== Date Input ===== */
input[type="date"] {
    color-scheme: dark;
}

/* ===== Focus Visible ===== */
:focus-visible {
    outline: 2px solid #E8645A;
    outline-offset: 2px;
}

/* ===== Button Ripple ===== */
button, a {
    position: relative;
    overflow: hidden;
}

/* ===== Loading State for Form ===== */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Image Placeholder Fallback ===== */
img {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* ===== Gradient Text Utility ===== */
.text-gradient {
    background: linear-gradient(135deg, #E8645A 0%, #FF8A6E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Subtle Pattern Overlay ===== */
.pattern-overlay {
    background-image: radial-gradient(rgba(232, 100, 90, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}
