/* Public Menu Stylesheet - Sensation Beach Club */

body {
    background-color: #e5dfd3; /* Fallback light sand color */
    background-image: url("../assets/sand_ripples_bg.png") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* Global hidden class utility */
.hidden {
    display: none !important;
}

/* Ensure headings and texts directly on the light sand background are dark for legibility */
.search-results-heading {
    color: var(--text-color) !important;
    text-shadow: none !important;
}

/* Category header title displayed at the top of category page view */
.category-header-title {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.95rem;
    color: var(--text-color);
}
.category-header-title .cat-title-divider {
    margin: 0 6px;
    font-size: 0.8rem;
    opacity: 0.6;
}
.category-header-title .cat-title-en {
    font-weight: 300;
    font-size: 0.82em;
    color: #5c5047; /* Darker than #8c827b for legibility on sand */
}

/* Products card block shown when products are rendered directly under category (no subcategories) */
.direct-products-block {
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 10px 20px 20px;
    margin-bottom: 25px;
}

.menu-footer {
    border-top: 1px solid var(--border-color) !important;
    color: #8c827b !important;
}

.menu-header {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Boho Decorative Borders & Aesthetics */
.boho-top-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    width: 100%;
}

.boho-divider {
    color: var(--primary-color);
    text-align: center;
    letter-spacing: 0.5rem;
    font-size: 0.9rem;
    margin: 20px 0;
    opacity: 0.7;
}

/* Header */
.menu-header {
    padding-top: 25px;
    padding-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Language Switcher Button */
.lang-toggle-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.5;
    padding: 2px 6px;
    transition: opacity var(--transition-speed), color var(--transition-speed);
}

.lang-btn.active {
    opacity: 1;
    color: var(--primary-color);
}

.lang-divider {
    font-size: 0.8rem;
    color: var(--border-color);
    margin: 0 4px;
}

.social-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 1rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

.social-wrapper a:hover {
    background-color: var(--accent-color-hover);
    transform: scale(1.05);
}

.hotel-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-color);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hotel-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 400;
}

/* Search Bar */
.search-container {
    margin-bottom: 25px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.search-icon {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-right: 12px;
}

#menu-search {
    width: 100%;
    border: none;
    background: none;
    padding: 14px 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

#menu-search:focus {
    outline: none;
}

#clear-search {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

/* Horizontal Categories Nav */
.categories-nav {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 100;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -6px rgba(0,0,0,0.05);
}

.categories-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 20px;
    gap: 10px;
    scroll-behavior: smooth;
}

.categories-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.categories-tabs {
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;  /* Firefox */
}

.cat-tab-btn {
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

.cat-tab-btn.active {
    background-color: var(--primary-color-alpha);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Menu Section Contents */
.menu-section {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.menu-section.hidden {
    display: none;
}

.category-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Product list layout */
.products-list {
    display: flex;
    flex-direction: column;
}

.product-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px dashed var(--border-color);
    animation: fadeIn 0.4s ease-out forwards;
    transition: transform var(--transition-speed);
}

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

/* Product Image styling with Boho flare */
.product-image-box {
    width: 84px;
    height: 84px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-image-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image-box:hover img {
    transform: scale(1.08);
}

.product-details {
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.product-desc {
    font-size: 0.88rem;
    color: #6e645e;
    margin-top: 6px;
    line-height: 1.4;
}

/* Accordion styling for subcategories and sub-subcategories */
.subcategories-wrapper {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.accordion-item.open {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition-speed);
}

.accordion-header:hover {
    background-color: var(--accent-color-hover);
}

.subcat-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.accordion-icon {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform var(--transition-speed) ease;
}

.accordion-item.open > .accordion-header .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: transparent;
    padding: 0 20px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.accordion-item.open > .accordion-content {
    max-height: 2000px; /* High enough to show all products */
    padding-top: 15px;
    padding-bottom: 20px;
    border-top: 1px solid var(--border-color);
}

/* Sub-subcategories (Nested Accordions) */
.sub-subcategories-wrapper {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subsubcat-block.accordion-item {
    background-color: #fcfbfa;
    border-radius: var(--border-radius-md);
}

.subsubcat-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
}

.subsubcat-block .accordion-header {
    padding: 12px 16px;
}

.subsubcat-block .accordion-content {
    padding: 0 16px;
    background-color: transparent;
}

.subsubcat-block.accordion-item.open > .accordion-content {
    padding-top: 12px;
    padding-bottom: 16px;
}

/* Empty Category Warning */
.empty-category-message {
    text-align: center;
    padding: 40px 20px;
    color: #8c827b;
    font-style: italic;
    background-color: var(--accent-color);
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--border-color);
}

/* Search results section custom text */
.search-results-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Footer styling */
.menu-footer {
    text-align: center;
    padding: 40px 20px 50px;
    color: #8c827b;
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

/* Modals */
/* Bottom Slide-up Info Modal */
.bottom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-speed) ease-in-out;
}

.bottom-modal.open {
    visibility: visible;
    opacity: 1;
}

.bottom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 37, 32, 0.4);
    backdrop-filter: blur(4px);
    transition: opacity var(--transition-speed);
}

.bottom-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
    padding: 30px 20px 40px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-modal.open .bottom-modal-content {
    transform: translateY(0);
}

.bottom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.bottom-modal-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.6;
    padding: 5px;
}

.bottom-modal-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-row {
    display: flex;
    gap: 15px;
    align-items: start;
}

.info-label {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.info-val {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Image Preview Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.image-modal.open {
    visibility: visible;
    opacity: 1;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 37, 32, 0.85);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    background-color: var(--background-color);
    padding: 8px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3100;
    display: flex;
    flex-direction: column;
}

.image-modal.open .image-modal-content {
    transform: scale(1);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: var(--border-radius-md);
    object-fit: cover;
}

.close-image-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.image-modal-title {
    padding: 15px 10px;
    text-align: center;
}

.image-modal-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Base Responsive Grid Overrides */
@media(min-width: 768px) {
    .products-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 30px;
        row-gap: 15px;
    }
    
    .product-item {
        border-bottom: 1px dashed var(--border-color);
    }
    
    .product-item:nth-last-child(-n+2):nth-child(odd),
    .product-item:last-child {
        border-bottom: none;
    }
    
    .subcat-block {
        padding: 30px;
    }
}

/* ================= LANDING PAGE VIEW STYLING ================= */

/* Toggle styles based on body view state */
body.view-landing #landing-view {
    display: block;
}
body.view-landing .search-container,
body.view-landing .categories-nav,
body.view-landing .menu-main-content,
body.view-landing .menu-footer,
body.view-landing .menu-header .header-logo-area {
    display: none !important;
}

body.view-menu #landing-view {
    display: none;
}
body.view-menu .search-container,
body.view-menu .categories-nav,
body.view-menu .menu-main-content,
body.view-menu .menu-footer,
body.view-menu .menu-header .header-logo-area {
    display: block;
}

/* Landing Layout & Vertical guide stripe */
#landing-view {
    position: relative;
    min-height: 70vh;
    padding-top: 20px;
    padding-bottom: 50px;
    overflow: hidden;
}

.landing-vertical-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Width of the column guide stripe from mockup */
    background-color: var(--primary-color);
    opacity: 0.35; /* Semi-transparent to let white cards stand out cleanly */
    z-index: 1;
    pointer-events: none;
}

/* Logo Styling without circular badges */
.landing-logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 45px;
    margin-top: 10px;
}

.landing-logo-img {
    max-width: 220px;
    max-height: 110px;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.landing-logo-img:hover {
    transform: scale(1.03);
}

.landing-logo-text-only {
    text-align: center;
    color: var(--primary-color);
}

.landing-logo-text-only .logo-script {
    font-family: 'Great Vibes', cursive;
    font-size: 3.8rem;
    line-height: 1.0;
    margin-bottom: 2px;
}

.landing-logo-text-only .logo-sub {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Category Cards Stack */
.landing-categories-stack {
    position: relative;
    z-index: 2; /* Rendered in front of the vertical line */
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 10px;
}

.category-card-link {
    text-decoration: none;
    display: block;
}

.category-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px; /* High border-radius matching the mockup */
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(44, 37, 32, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 110px;
}

/* Hover effects for active cards */
.category-card-link:hover .category-card {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(166, 147, 130, 0.15);
}

.category-card-title-tr {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 4px;
}

.category-card-title-en {
    font-size: 0.85rem;
    color: #8c827b;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Inactive/Renovating card state */
.inactive-card {
    border: 1.5px dashed var(--border-color);
    background-color: rgba(252, 251, 250, 0.9);
    cursor: default;
}

.inactive-card .category-card-title-tr {
    color: #8c827b; /* Muted brown */
    font-weight: 600;
    font-size: 1.25rem;
}

.inactive-card .category-card-title-en {
    color: #a89f98;
}

/* Back navigation button in header */
.back-to-menu-wrapper {
    display: flex;
    align-items: center;
}

.back-to-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--border-radius-lg);
    background-color: var(--accent-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
}

.back-to-menu-btn:hover {
    background-color: var(--accent-color-hover);
    transform: translateX(-2px);
    box-shadow: var(--shadow-md);
}

.back-to-menu-btn i {
    font-size: 0.8rem;
    transition: transform var(--transition-speed) ease;
}

.back-to-menu-btn:hover i {
    transform: translateX(-2px);
}

/* Standard language visibility rules for UI elements */
body.lang-tr .lang-en {
    display: none !important;
}
body.lang-en .lang-tr {
    display: none !important;
}

/* Hide back button and language switcher on homepage (landing page) */
body.view-landing .back-to-menu-wrapper,
body.view-landing .lang-toggle-wrapper {
    display: none !important;
}

/* Side-by-side bilingual typography styling */

/* Accordion category title translations */
.subcat-title {
    display: flex !important;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.subcat-title-tr {
    font-weight: 700;
}
.subcat-title-en {
    font-family: var(--font-family) !important;
    font-size: 0.92rem !important;
    font-weight: 300 !important;
    color: #8c827b !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Sub-subcategory title translations */
.subsubcat-title {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.subsubcat-title-tr {
    font-weight: 600;
}
.subsubcat-title-en {
    font-family: var(--font-family) !important;
    font-size: 0.85rem !important;
    font-weight: 300 !important;
    color: #8c827b !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Product list item titles */
.product-name {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.product-name-tr {
    font-weight: 600;
}
.product-name-en {
    font-family: var(--font-family) !important;
    font-size: 0.82rem !important;
    font-weight: 300 !important;
    color: #8c827b !important;
    text-transform: none !important;
}
