/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-color: #0a0a0a;
    --bg-gradient: radial-gradient(circle at top left, #1a1a1a, #050505);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #d4af37;
    --gold: #d4af37;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f7ef8a 50%, #d4af37 100%);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(212, 175, 55, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    /* Subtle texture */
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
    animation: twinkle 10s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.03;
    }

    100% {
        opacity: 0.07;
    }
}

/* Header */
.header {
    text-align: center;
    padding: 8rem 1rem 6rem;
    position: relative;
    overflow: hidden;
}

/* Cinematic Background for Header */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.logo-container {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.header-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }

    100% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

.title-text {
    text-align: left;
}

.logo-container h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    text-shadow: var(--glow);
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 300;
    display: block;
    margin-top: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

/* Menu Container */
.menu-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* Glassmorphism Cards */
.menu-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Highlight top edge */
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
    position: relative;
    overflow: hidden;
}

/* Shine effect on card hover */
.menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.6s ease;
}

.menu-section:hover::before {
    left: 100%;
}

.menu-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 4rem;
    /* Significantly larger */
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    /* Make it even more prominent */
    letter-spacing: 2px;
}

.section-title span {
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subsection-title {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 2.5rem;
    /* Larger subsection title */
    margin: 2.5rem 0 1.2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--gold);
    letter-spacing: 1px;
}

/* Menu Items - colorful list view with emphasis */
/* Menu Items - minimalist gold text for most */
.menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.menu-item:hover {
    transform: translateX(5px);
    background-color: transparent;
    z-index: 10;
}

.item-name {
    font-size: 1rem;
    font-weight: 500;
    color: #d4af37;
    flex: 1;
    padding-right: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.item-spacer {
    display: block;
    flex: 1;
    border-bottom: 1px dotted rgba(212, 175, 55, 0.5);
    margin: 0 0.5rem;
    align-self: flex-end;
    margin-bottom: 6px;
    opacity: 0.6;
}

.item-price {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    /* Bigger Price */
    padding-left: 0.5rem;
    flex-shrink: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.item-image {
    display: block;
    /* Show images for all items that have them */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Rounded for realistic look */
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    /* Gold border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

/* Specific Billiard Frames: Red, Blue, Gold - Colorful & Rectangular for Standart */

/* Standart Masa - Red Rectangular Frame */
.menu-section:first-of-type .menu-item:nth-of-type(1) {
    border: 3px solid #ff0000 !important;
    border-left: 10px solid #8b0000 !important;
    /* Thick left border */
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.25) 0%, rgba(10, 10, 10, 0.95) 100%) !important;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4) !important;
    padding: 1.2rem 1.5rem;
    border-radius: 0 !important;
    /* Strictly Rectangular */
    margin-bottom: 1.5rem;
    border-bottom: none !important;
}

/* First Class - Blue Frame (Rounded) */
.menu-section:first-of-type .menu-item:nth-of-type(2) {
    border: 3px solid #0000ff !important;
    border-left: 8px solid #00008b !important;
    background: linear-gradient(90deg, rgba(0, 0, 255, 0.25) 0%, rgba(10, 10, 10, 0.95) 100%) !important;
    box-shadow: 0 0 25px rgba(0, 0, 255, 0.4) !important;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-bottom: none !important;
}

/* VIP Masa - Gold Frame (Rounded) */
.menu-section:first-of-type .menu-item:nth-of-type(3) {
    border: 3px solid #ffd700 !important;
    border-left: 8px solid #b8860b !important;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.25) 0%, rgba(10, 10, 10, 0.95) 100%) !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4) !important;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-bottom: none !important;
}

/* Bold Titles in colored frames */
.menu-section:first-of-type .item-name {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #fff;
    /* White text for better contrast on colors */
}

/* Specific Hover Effects */
.menu-section:first-of-type .menu-item:nth-of-type(1):hover {
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.6) !important;
    transform: scale(1.02);
}

.menu-section:first-of-type .menu-item:nth-of-type(2):hover {
    box-shadow: 0 0 40px rgba(0, 0, 255, 0.6) !important;
    transform: scale(1.02);
}

.menu-section:first-of-type .menu-item:nth-of-type(3):hover {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6) !important;
    transform: scale(1.02);
}

/* Hide spacer for these frames */
.menu-section:first-of-type .item-spacer {
    display: none;
}



.item-price {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 600;
    font-size: 1.35rem;
    padding-left: 1rem;
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
}

.footer strong {
    color: var(--gold);
    font-weight: 500;
}

/* Button & QR */
.qr-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 1.2rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

.qr-btn:hover {
    background: var(--gold);
    color: #050505;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.qr-code-container {
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 4px;
    /* Sharper corners for QR */
    display: inline-block;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
    display: none;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-code-container.show {
    display: block;
}

/* Keyframes */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 600px) {
    .header {
        padding: 6rem 1rem 4rem;
    }

    .logo-container h1 {
        font-size: 3rem;
    }

    .title-with-logo {
        flex-direction: column;
        gap: 1rem;
    }

    .title-text {
        text-align: center;
    }

    .header-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }

    .menu-container {
        padding: 0 1rem 4rem;
    }

    .menu-section {
        padding: 2rem 1rem;
        /* Reduced padding */
        border-radius: 16px;
    }

    .section-title {
        font-size: 1.8rem;
        /* Smaller section title */
        margin-bottom: 2rem;
    }

    .subsection-title {
        font-size: 1.8rem;
        margin: 2rem 0 1rem;
    }

    .menu-item {
        /* On very small screens, still keep row but maybe wrap if needed */
        flex-wrap: wrap;
        margin-bottom: 1.2rem;
    }

    .item-name {
        font-size: 1.1rem;
        /* Allow name to take full width if needed or just enough */
    }

    .item-spacer {
        display: none;
        /* Hide dots on mobile to save space */
    }

    .item-price {
        font-size: 1.2rem;
        /* Push price to the right or below? If we wrap, price might drop down. */
        /* Let's make price align right always */
        margin-left: auto;
    }

    .item-image {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }

    /* Specific adjustments for Billiard Rates on Mobile */
    .menu-section:first-of-type .menu-item {
        padding: 1rem !important;
        /* Reduce padding for special items */
        flex-direction: column;
        /* Stack name and price for these special cards */
        align-items: flex-start;
        gap: 0.5rem;
    }

    .menu-section:first-of-type .item-name {
        font-size: 1.3rem;
        width: 100%;
        margin-bottom: 0.2rem;
    }

    .menu-section:first-of-type .item-price {
        font-size: 1.4rem;
        padding-left: 0;
        align-self: flex-end;
        /* right align the price */
    }
}

/* Contact Links in Footer */
.contact-link {
    color: inherit !important;
    /* Forces it to take the strong tag's gold color */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    text-decoration: underline;
}

/* VIP Clickable Item */
.vip-clickable {
    cursor: pointer;
    position: relative;
}

.vip-clickable:hover {
    background: linear-gradient(90deg, rgba(139, 105, 20, 0.25) 0%, transparent 100%);
}

.click-hint {
    font-size: 0.75rem;
    color: var(--gold);
    margin-left: 0.5rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--glass-border);
    animation: slideUp 0.4s ease;
}

.modal-content h3 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}

.vip-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vip-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.vip-photo:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
