/* Custom styles for Lumina Furnish */

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* Typography */
.font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* Navigation styles */
.nav-link {
    @apply text-charcoal hover:text-gold transition-colors font-medium;
}

.nav-link.active {
    @apply text-gold;
}

.mobile-nav-link {
    @apply text-charcoal hover:text-gold transition-colors font-medium py-2;
}

.mobile-nav-link.active {
    @apply text-gold;
}

/* Hamburger menu animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Product card styles */
.product-card {
    @apply transition-all duration-300;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Modal styles */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 3px;
}

/* Product image gallery */
.product-gallery img {
    transition: all 0.3s ease;
}

.product-gallery img:hover {
    transform: scale(1.05);
}

/* Product detail animations */
.product-detail-enter {
    animation: slideInUp 0.3s ease-out;
}

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

/* Button styles */
.btn-primary {
    @apply bg-gold text-charcoal px-8 py-4 font-medium hover:bg-yellow-400 transition-colors rounded;
}

.btn-secondary {
    @apply border-2 border-gold text-gold px-8 py-4 hover:bg-gold hover:text-charcoal transition-colors font-medium rounded;
}

/* Form styles */
input:focus, 
textarea:focus, 
select:focus {
    @apply border-gold outline-none ring-1 ring-gold;
}

.error-message {
    @apply text-red-500 text-sm mt-1;
}

/* Cookie banner animation */
#cookie-banner {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, transform, opacity;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    @apply outline-none ring-2 ring-gold ring-offset-2;
}

/* Skip to content link for accessibility */
.skip-link {
    @apply absolute left-0 top-0 z-50 bg-charcoal text-white px-4 py-2 transform -translate-y-full focus:translate-y-0 transition-transform;
}

/* Loading states */
.loading {
    @apply opacity-50 pointer-events-none;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    img {
        transition: none !important;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000 !important;
    }
    
    .text-gray-300 {
        color: #ffffff !important;
    }
    
    .border-gray-300 {
        border-color: #000000 !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Currently maintaining light theme as per design requirements */
    /* This can be expanded in future versions */
}

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

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

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

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

/* Selection styles */
::selection {
    background-color: #D4AF37;
    color: #333333;
}

::-moz-selection {
    background-color: #D4AF37;
    color: #333333;
}
