/* ============================================
   BUCKOWER KAFFEEHAUS - CUSTOM STYLES
   ============================================ */

/* ============================================
   1. GLOBAL STYLES
   ============================================ */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* ============================================
   3. ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animations to elements on scroll */
.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   4. CUSTOM TRANSITIONS
   ============================================ */

a, button, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth hover effects */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ============================================
   5. CUSTOM SHADOWS
   ============================================ */

.shadow-coffee {
    box-shadow: 0 10px 30px -10px rgba(90, 58, 34, 0.3);
}

.shadow-coffee-lg {
    box-shadow: 0 20px 40px -15px rgba(90, 58, 34, 0.4);
}

/* ============================================
   6. GRADIENT OVERLAYS
   ============================================ */

.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 58, 34, 0.8) 0%, rgba(161, 106, 46, 0.6) 100%);
    z-index: 1;
}

.gradient-overlay > * {
    position: relative;
    z-index: 2;
}

/* ============================================
   7. CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #faf7f0;
}

::-webkit-scrollbar-thumb {
    background: #a16a2e;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #855428;
}

/* ============================================
   8. NAVIGATION ENHANCEMENTS
   ============================================ */

nav {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.show {
    max-height: 500px;
}

/* ============================================
   9. FORM STYLES
   ============================================ */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #a16a2e;
    box-shadow: 0 0 0 3px rgba(161, 106, 46, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* Custom checkbox and radio styles */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #a16a2e;
}

/* ============================================
   10. BUTTON STYLES
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #a16a2e 0%, #b8803a 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #855428 0%, #a16a2e 100%);
    box-shadow: 0 10px 20px -5px rgba(161, 106, 46, 0.4);
}

.btn-secondary {
    background: white;
    color: #a16a2e;
    border: 2px solid #a16a2e;
}

.btn-secondary:hover {
    background: #a16a2e;
    color: white;
}

/* ============================================
   11. CARD STYLES
   ============================================ */

.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================
   12. IMAGE EFFECTS
   ============================================ */

.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* ============================================
   13. LOADING STATES
   ============================================ */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #a16a2e;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   14. RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* ============================================
   15. PRINT STYLES
   ============================================ */

@media print {
    nav, footer, .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* ============================================
   16. ACCESSIBILITY
   ============================================ */

/* Focus visible styles */
*:focus-visible {
    outline: 3px solid #a16a2e;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #a16a2e;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, #a16a2e 0%, #ca9857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   18. CUSTOM SPACING
   ============================================ */

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ============================================
   19. HERO SECTION EFFECTS
   ============================================ */

.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(161, 106, 46, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(202, 152, 87, 0.05) 0%, transparent 50%);
}

/* ============================================
   20. FOOTER ENHANCEMENTS
   ============================================ */

footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ============================================
   21. MENU PAGE SPECIFIC
   ============================================ */

.menu-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #faf7f0;
    padding-left: 0.5rem;
    border-radius: 0.5rem;
}

/* ============================================
   22. SMOOTH SCROLLING OFFSET
   ============================================ */

section[id] {
    scroll-margin-top: 100px;
}

/* ============================================
   23. DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
