/* Custom styles that extend Tailwind */

/* Ensure all text has proper contrast */
body {
    background-color: #0d0d0d;
    color: #e5e7eb;
}

/* Gold shimmer for special text */
.gold-shimmer {
    background: linear-gradient(90deg, #c9a227 0%, #ffd54f 40%, #ffc107 50%, #ffd54f 60%, #c9a227 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Gold gradient button */
.btn-gold {
    background: linear-gradient(135deg, #c9a227, #ffd54f, #c9a227);
    background-size: 200% auto;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-position: right center;
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.4);
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

/* Room card hover */
.room-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(201, 162, 39, 0.15);
}

.room-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Decorative dot pattern */
.pattern-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(201, 162, 39, 0.06) 1px, transparent 0);
    background-size: 40px 40px;
}

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

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

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* Ensure date inputs render properly in dark mode */
input[type="date"] {
    color-scheme: dark;
}

/* Subtle hover effect for amenity cards */
.group:hover .group-hover\:border-gold-500 {
    border-color: rgba(201, 162, 39, 0.6) !important;
}

.group:hover .group-hover\:bg-gold-500\/10 {
    background-color: rgba(201, 162, 39, 0.1) !important;
}

/* Navigation link underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a227;
    transition: width 0.3s ease;
}

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

.nav-link {
    position: relative;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
    display: inline-block;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    border-color: rgba(201, 162, 39, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

/* Ensure proper contrast for all text elements */
.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuOverlay {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
