/* Saklı Bahçe Esenköy - Menu Page Styles */

/* ============================
   MENU HERO SECTION
   ============================ */

.menu-hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.menu-hero .container {
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

/* ============================
   FLOATING ANIMATIONS
   ============================ */

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

.animate-float-slow {
    animation: float-slow 20s ease-in-out infinite;
}

/* ============================
   HERO ANIMATIONS
   ============================ */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(6px);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
}

.animate-scroll {
    animation: scroll 2s ease-in-out infinite alternate;
}

/* ============================
   SCROLL MOUSE INDICATOR
   ============================ */

.scroll-mouse-menu {
    margin: 0 auto;
    position: relative;
}

.scroll-mouse-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

/* ============================
   BREADCRUMB NAVIGATION
   ============================ */

.breadcrumb-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 40;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
    padding: 0.75rem 0;
}

.breadcrumb-nav.visible {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: breadcrumbSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.breadcrumb-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    animation: fadeInScale 0.6s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
    opacity: 0;
    transform: scale(0.8);
}

.breadcrumb-nav a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.breadcrumb-nav a:hover {
    color: #2d5a27;
    background: rgba(45, 90, 39, 0.08);
    border-color: rgba(45, 90, 39, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}

.breadcrumb-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2d5a27, #8bab2f);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.breadcrumb-nav a:hover::after {
    width: 80%;
}

.breadcrumb-nav a i {
    margin-right: 0.375rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.breadcrumb-nav .text-primary {
    color: #2d5a27;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.1) 0%, rgba(139, 164, 47, 0.08) 100%);
    border: 1px solid rgba(45, 90, 39, 0.2);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.breadcrumb-nav .text-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.breadcrumb-nav .text-primary:hover::before {
    left: 100%;
}

.breadcrumb-nav .fas.fa-chevron-right {
    color: #9ca3af;
    font-size: 0.7rem;
    margin: 0 0.25rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

@keyframes breadcrumbSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section adjustments for breadcrumb */
.menu-hero {
    margin-top: 0;
    padding-top: 80px;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .menu-hero {
        padding-top: 100px;
    }
    
    .breadcrumb-nav {
        z-index: 40;
        top: 80px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
        backdrop-filter: blur(16px);
        padding: 0.625rem 0;
    }
    
    .breadcrumb-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .breadcrumb-nav .text-primary {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .menu-hero {
        padding-top: 120px;
        min-height: 100dvh;
    }
    
    .breadcrumb-nav {
        top: 80px;
        padding: 0.65rem 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
        backdrop-filter: blur(18px);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    }
    
    .breadcrumb-nav a,
    .breadcrumb-nav .text-primary {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================
   CATEGORY FILTERS
   ============================ */

.category-filter {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-filter:hover {
    background: #b34512;
    color: white;
    border-color: #b34512;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(179, 69, 18, 0.3);
}

.category-filter.active {
    background: #b34512;
    color: white;
    border-color: #b34512;
    box-shadow: 0 8px 20px rgba(179, 69, 18, 0.4);
}

.category-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.category-filter:hover::before {
    left: 100%;
}

/* ============================
   MENU ITEMS
   ============================ */

.menu-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b34512, #d4af37);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(179, 69, 18, 0.2);
}

.menu-item:hover::before {
    transform: scaleX(1);
}

/* Featured Item */
.menu-item.featured {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(179, 69, 18, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.menu-item.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, #b34512, #d4af37);
    border-radius: 1.5rem;
    z-index: -1;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Menu Item Categories */
.menu-item.breakfast {
    border-left: 4px solid #f97316;
}

.menu-item.dishes {
    border-left: 4px solid #dc2626;
}

.menu-item.grill {
    border-left: 4px solid #b91c1c;
}

.menu-item.drinks {
    border-left: 4px solid #0891b2;
}

.menu-item.services {
    border-left: 4px solid #4b6758;
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    animation: slideInUp 0.8s ease forwards;
}

/* ============================
   SCROLL TO TOP BUTTON
   ============================ */

#scroll-to-top {
    position: fixed !important;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: #b34512;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(179, 69, 18, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(5rem);
    opacity: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#scroll-to-top:hover {
    background: #8b350e;
    transform: translateY(0) scale(1.1);
    box-shadow: 0 8px 30px rgba(179, 69, 18, 0.6);
}

#scroll-to-top.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Mobile First Approach */
@media (max-width: 640px) {
    .menu-hero {
        min-height: 100dvh;
        padding: 1rem 0;
    }

    .menu-hero .container {
        padding: 1rem;
    }

    .category-filter {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .menu-item {
        padding: 1rem;
    }

    .menu-item.featured {
        margin-bottom: 2rem;
    }

    #scroll-to-top {
        width: 2.5rem;
        height: 2.5rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .menu-hero {
        min-height: 100dvh;
        padding: 2rem 0;
    }

    .menu-hero .container {
        padding: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .menu-hero {
        min-height: 100dvh;
        padding: 3rem 0;
    }

    .menu-hero .container {
        padding: 2rem;
    }

    .menu-item:hover {
        transform: translateY(-12px);
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .menu-hero .container {
        max-width: 1200px;
    }
}

/* ============================
   ACCESSIBILITY & PERFORMANCE
   ============================ */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .animate-float-slow,
    .animate-fade-in,
    .animate-fade-in-up,
    .animate-scroll,
    .animate-on-scroll {
        animation: none;
    }

    .menu-item,
    .category-filter,
    #scroll-to-top {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .menu-item {
        border: 2px solid #000;
        background: #fff;
    }

    .category-filter.active,
    .category-filter:hover {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Print Styles */
@media print {
    .menu-hero,
    .breadcrumb-nav,
    #scroll-to-top,
    .category-filter {
        display: none;
    }

    .menu-item {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============================
   DARK MODE SUPPORT
   ============================ */

@media (prefers-color-scheme: dark) {
    .menu-item {
        background: #1f2937;
        color: #f9fafb;
        border-color: #374151;
    }

    .menu-item:hover {
        background: #111827;
        border-color: #b34512;
    }

    .breadcrumb-nav {
        background: rgba(31, 41, 55, 0.95);
        color: #f9fafb;
    }

    .category-filter {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
}

/* ============================
   UTILITY CLASSES
   ============================ */

.will-change-transform {
    will-change: transform;
}

.backface-hidden {
    backface-visibility: hidden;
}

.gpu-accelerated {
    transform: translateZ(0);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #b34512;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================
   MENU SPECIFIC ANIMATIONS
   ============================ */

.menu-enter {
    animation: menuEnter 0.6s ease-out forwards;
}

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

.menu-exit {
    animation: menuExit 0.3s ease-in forwards;
}

@keyframes menuExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ============================
   FEATURED ITEM SPECIAL EFFECTS
   ============================ */

.featured-glow {
    position: relative;
}

.featured-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, #f4d03f, #d4af37);
    border-radius: inherit;
    z-index: -1;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.3;
        filter: blur(8px);
    }
    50% {
        opacity: 0.8;
        filter: blur(4px);
    }
}

/* ============================
   CTA SECTION STYLES
   ============================ */

.cta-pattern {
    opacity: 0.05;
    position: absolute;
    inset: 0;
}

.cta-stats {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ============================
   BROWSER SPECIFIC FIXES
   ============================ */

/* Safari specific fixes */
@supports (-webkit-appearance: none) {
    .menu-hero {
        min-height: -webkit-fill-available;
    }
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    .breadcrumb-nav {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Edge specific fixes */
@supports (-ms-ime-align: auto) {
    .menu-item {
        transform: translateZ(0);
    }
}
