/* ================================= */
/* BEER HOUSE - PREMIUM RESTAURANT CSS */
/* ================================= */

:root {
    --primary: #E5C158;
    --primary-dark: #D4AF37;
    --primary-light: #F0D878;
    --secondary: #1E1F22;
    --secondary-light: #2a2b2e;
    --text: #ffffff;
    --text-muted: #9a9a9a;
    --bg-dark: #1E1F22;
    --bg-card: #25262a;
    --border: rgba(229, 193, 88, 0.15);
    --shadow: rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --welcome-bg: #1E1F22;
}

/* Hide all scrollbars globally */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

button {
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ================================= */
/* LANGUAGE SWITCHER                */
/* ================================= */

.language-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
    outline: none;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    color: #E5C158;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* ================================= */
/* WELCOME SCREEN                   */
/* ================================= */

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.welcome-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--welcome-bg);
    overflow: hidden;
}

.background-glow {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 95vw);
    height: min(560px, 95vw);
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(212, 175, 55, 0.08) 35%,
        transparent 75%
    );
    pointer-events: none;
}

.background-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    padding: 2rem;
}

.watermark-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
    color: #D4AF37;
    opacity: 0.035;
    white-space: nowrap;
    transform: translateY(-8%);
}

.watermark-est {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 3vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.55em;
    text-indent: 0.55em;
    color: #D4AF37;
    opacity: 0.035;
    margin-top: 1.25rem;
    transform: translateY(-8%);
}

/* Georgian Cultural Elements */
.georgian-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(232, 185, 35, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(232, 185, 35, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.georgian-border {
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(232, 185, 35, 0.1), rgba(232, 185, 35, 0.05)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.georgian-ornament {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.08;
    pointer-events: none;
}

.georgian-ornament::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #D4AF37;
    border-radius: 50%;
}

.georgian-ornament::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid #D4AF37;
    border-radius: 50%;
}

.ornament-top-left {
    top: 2rem;
    left: 2rem;
}

.ornament-top-right {
    top: 2rem;
    right: 2rem;
}

.ornament-bottom-left {
    bottom: 2rem;
    left: 2rem;
}

.ornament-bottom-right {
    bottom: 2rem;
    right: 2rem;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2.5rem;
    max-width: 720px;
    width: 100%;
    animation: fadeInUp 1s ease;
}

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

.logo-container {
    margin-bottom: 3.5rem;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 24px rgba(212, 175, 55, 0.35));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.restaurant-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
    text-shadow: 0 2px 24px rgba(229, 193, 88, 0.35);
}

.restaurant-name-georgian {
    font-size: 1.5rem;
    color: rgba(229, 193, 88, 0.65);
    font-weight: 400;
    letter-spacing: 2px;
}

.action-buttons {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 3.5rem;
    padding: 1rem 0.5rem;
    max-width: 420px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.button-bubble {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 0;
}

.button-bubble::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 18, 18, 0.85) 0%,
        rgba(18, 18, 18, 0.35) 35%,
        transparent 65%
    );
    z-index: 1;
    pointer-events: none;
}

.action-button:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 48px rgba(212, 175, 55, 0.25);
}

.action-button:hover .button-icon-img {
    transform: scale(1.1);
}

.button-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    z-index: 1;
    transition: transform 0.3s ease;
}

.button-icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: none;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

.action-button:hover .button-icon {
    transform: scale(1.1);
}

.button-text {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
    letter-spacing: 1px;
    padding-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.menu-button:hover .button-text,
.contact-button:hover .button-text {
    color: #fff;
}

.welcome-footer {
    margin-top: 2rem;
}

.welcome-footer p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ================================= */
/* MENU SCREEN                      */
/* ================================= */

.menu-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    z-index: 900;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.menu-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.menu-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transition: var(--transition);
    margin-right: 1rem;
}

.back-button:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateX(-4px);
}

.menu-title-container {
    flex: 1;
}

.menu-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.menu-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Category Navigation */
.category-nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 73px;
    z-index: 99;
    padding: 1rem 0;
}

/* Menu Search */
.menu-search {
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid var(--border);
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(232, 185, 35, 0.05);
}

.category-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.category-chip:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.category-chip.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    font-weight: 600;
}

/* Menu Content */
.menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.menu-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease;
}

.menu-section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.menu-item-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    gap: 1rem;
}

.menu-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.menu-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.menu-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.menu-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ================================= */
/* CONTACT SCREEN                  */
/* ================================= */

.contact-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    z-index: 900;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.contact-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.contact-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.contact-title-container {
    flex: 1;
}

.contact-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.25rem 0;
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-light);
}

.hours-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container iframe {
    filter: grayscale(30%) contrast(1.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background: rgba(229, 193, 88, 0.08);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.social-button--outline {
    background: transparent;
}

.social-button:hover {
    background: rgba(229, 193, 88, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.social-button--outline:hover {
    background: rgba(229, 193, 88, 0.06);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Photo Gallery Styles */
.photo-gallery {
    margin-top: 1.5rem;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: transparent;
}

.gallery-item {
    position: relative;
    flex: 0 0 auto;
    width: 280px;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: start;
    transform: translateZ(0);
    will-change: transform;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(232, 185, 35, 0.25);
    border-color: var(--primary);
}

.gallery-item:active {
    transform: translateY(-4px) scale(0.98);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Mobile optimization for gallery */
@media (max-width: 768px) {
    .gallery-item {
        width: 260px;
        aspect-ratio: 1/1;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 220px;
    }
    
    .gallery-scroll {
        gap: 0.75rem;
    }
}

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

@media (max-width: 768px) {
    .welcome-content {
        padding: 2.5rem 1.75rem;
    }

    .action-buttons {
        gap: 2.5rem;
        padding: 1.25rem 0;
    }

    .restaurant-name {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .restaurant-name-georgian {
        font-size: 1.2rem;
    }

    .action-button {
        width: 140px;
        height: 140px;
    }

    .button-icon {
        font-size: 2.5rem;
    }

    .button-text {
        font-size: 1rem;
    }

    .menu-title {
        font-size: 1.4rem;
    }

    .menu-subtitle {
        font-size: 0.85rem;
    }

    .category-nav {
        top: 65px;
    }

    .menu-items-grid {
        grid-template-columns: 1fr;
    }

    .menu-item-card {
        padding: 1rem;
    }

    .menu-item-image {
        width: 70px;
        height: 70px;
    }

    .reservation-form-container {
        padding: 1.5rem 1rem;
    }

    .reservation-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .welcome-content {
        padding: 2rem 1.25rem;
    }

    .action-buttons {
        gap: 2rem;
        padding: 1.5rem 0;
        max-width: 100%;
    }

    .action-button {
        width: 120px;
        height: 120px;
    }

    .button-icon {
        font-size: 2rem;
    }

    .button-text {
        font-size: 0.9rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .menu-content {
        padding: 1rem;
    }

    .category-scroll {
        padding: 0 1rem;
    }

    .category-chip {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
