/* === Root Variables (Customize Colors Here) === */
:root {
    /* Darker Backgrounds */
    --bg-dark: #0a0a0a;       /* Very dark grey, almost black */
    --bg-secondary: #141414; /* Darker secondary grey */

    /* Existing Colors (Keep for contrast) */
    --text-primary: #e0e0e0; /* Light grey/off-white */
    --text-secondary: #a0a0a0; /* Medium grey */
    --accent-gold: #daa520; /* Gold accent */
    --accent-gold-glow: rgba(218, 165, 32, 0.3); /* Gold glow effect */

    /* Layout Variables */
    --nav-width-desktop: 240px;
    --nav-width-mobile: 90px; /* Narrower width for mobile */

    /* Fonts & Transitions */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Example font */
    --font-headings: 'Georgia', serif; /* Example elegant font */
    --transition-smooth: all 0.4s ease-in-out;
}

/* === Basic Reset & Global Styles === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative; /* Needed for positioning smoke background */
}

h1, h2, h3 {
    font-family: var(--font-headings);
    color: var(--accent-gold);
    margin-bottom: 0.75em;
    font-weight: normal;
}

/* --- Override heading color for WHITE shisha titles --- */
h3.shisha-title {
     color: #fff; /* White title on cards */
     margin-bottom: 0; /* Reset margin as it's now in a flex container */
     /* Font size/weight is now applied directly in the .shisha-title rule */
}

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}
/* --- Override default p margin/color inside cards --- */
.shisha-item p.shisha-description { /* Make selector more specific */
    margin-top: 0.2em; /* Adjusted slightly to account for title line margin */
    margin-bottom: 0.4em;
    color: var(--text-primary); /* Lighter text on dark overlay */
    line-height: 1.45;
}


a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Background Smoke Effect === */
.smoke-background {
    position: fixed; /* Cover the whole viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hide overflowing pseudo-elements */
    z-index: -1; /* Behind everything */
    pointer-events: none; /* Allow clicks through */
}

.smoke-background::before,
.smoke-background::after {
    content: '';
    position: absolute;
    bottom: -180px; /* Start further below viewport */
    left: 20%; /* Initial horizontal position */
    width: 300px; /* Slightly larger Smoke wisp size */
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 65%); /* Reduced inner opacity, faster fade */
    border-radius: 50%;
    opacity: 0;
    animation: smoke-drift 25s infinite linear; /* Increased duration */
    filter: blur(25px); /* Increased blur for softer edges */
}

.smoke-background::after {
    left: 65%; /* Different starting position */
    width: 350px; /* Larger second wisp */
    height: 350px;
    animation-name: smoke-drift-2;
    animation-duration: 30s; /* Increased duration */
    animation-delay: 7s; /* Different delay */
    background: radial-gradient(circle, rgba(218, 165, 32, 0.03) 0%, rgba(218, 165, 32, 0) 65%);
    filter: blur(30px); /* Increased blur */
}

/* === Keyframes for Smoke Animation (Ensure these are present) === */
@keyframes smoke-drift {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  25% { opacity: 0.8; }
  75% { opacity: 0.9; }
  100% { transform: translateY(-550px) translateX(40px) scale(1.8); opacity: 0; }
}
@keyframes smoke-drift-2 {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
   25% { opacity: 0.7; }
  75% { opacity: 0.8; }
  100% { transform: translateY(-600px) translateX(-50px) scale(2); opacity: 0; }
}

/* === Page Wrapper === */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative; /* Ensure content is above fixed smoke */
    z-index: 1;
}

/* === Sidebar Navigation === */
.sidebar-nav {
    width: var(--nav-width-desktop); /* Use desktop width by default */
    background-color: var(--bg-secondary);
    padding: 2rem 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: width 0.3s ease;
}

.logo-container {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.logo {
    max-width: 70%;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}

.nav-categories {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth), background-color 0.3s ease;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 0.5rem;
    filter: grayscale(80%) brightness(1.2);
    transition: var(--transition-smooth), filter 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
}

.nav-item a .nav-text {
    font-size: 0.85rem;
    line-height: 1.2;
    transition: var(--transition-smooth);
}

.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
    opacity: 1;
}

.nav-item a:hover .nav-icon {
    filter: grayscale(0%) brightness(1);
}

/* Active state for nav item */
.nav-item.active a {
    background-color: rgba(218, 165, 32, 0.1);
    color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.nav-item.active .nav-icon {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--accent-gold-glow)) grayscale(0%) brightness(1);
}


/* === Main Content Area === */
.main-content {
    margin-left: var(--nav-width-desktop); /* Offset by nav width */
    width: calc(100% - var(--nav-width-desktop));
    height: 100vh; /* Use 100vh of the viewport height */
    overflow-y: auto; /* This makes the main content area scrollable */
    transition: margin-left 0.3s ease, width 0.3s ease;
    position: relative;
    z-index: 5;
}

/* === Hero Section === */
.hero-section {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../assets/images/476109353_1083566160450390_5883731404631188955_n.jpg') no-repeat center center/cover; /* Adjust path if needed */
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* === Menu Sections === */
.menu-section {
    padding: 4rem 3rem;
    border-top: 1px solid rgba(218, 165, 32, 0.1);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--accent-gold);
    opacity: 0.6;
}


/* === Shisha Items List === */
.shisha-items-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.shisha-item {
    width: 100%;
    aspect-ratio: 1; /* Keep square shape */
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Keep a default shadow */
    transition: box-shadow 0.3s ease; /* Keep the shadow transition */
    color: #fff;
}

/* --- Removed the :hover shadow/glow effect here --- */
/*
.shisha-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-gold-glow);
}
*/


/* --- Overlay --- */
.shisha-item-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 1; /* Default visible */
}
/* --- Hides overlay if 'no-title' class is added via JS --- */
.shisha-item.no-title .shisha-item-overlay {
    opacity: 0;
}

/* --- Text Info Container --- */
.shisha-info {
    position: absolute;
    bottom: 0;
    right: 0; /* Anchor to the right edge */
    padding: 1.5rem 2rem; /* Keep padding */
    z-index: 2;
    max-width: 70%; /* Keep max width */
    direction: rtl; /* Text flows right-to-left */
    text-align: right; /* Default align for content within */
}

.shisha-category {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Container for Title and Price - ALIGNED RIGHT --- */
.shisha-title-price-line {
    display: flex;
    justify-content: flex-end; /* Aligns items inside to visual left in RTL */
    align-items: baseline;
    gap: 0; /* No gap */
    margin-bottom: 0.3rem; /* Space below line */

    width: max-content; /* Force container to shrink-wrap */
    max-width: 100%;   /* Safety */
    margin-left: 0; /* Override potential conflicting margins */
    /* REMOVED margin-right: auto; to allow it to align right */
}

/* --- Shisha Title --- */
.shisha-title {
    /* Keep font styles */
    font-family: var(--font-headings);
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);

    /* Layout */
    margin: 0;
    padding: 0;
    flex-grow: 0;
}

/* --- Shisha Price --- */
.shisha-price {
    /* Keep font styles */
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-gold);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);

    /* Layout */
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    white-space: nowrap;

    /* Visual Spacing */
    margin-left: 0.3em;
    margin-right: 0.4em; /* Small space between price(R) and title(L) in RTL */
}


/* === Responsive Adjustments === */

/* Medium Screens (Tablets) */
@media (max-width: 992px) {
    :root {
        --nav-width-desktop: 200px;
    }
     .main-content {
        margin-left: var(--nav-width-desktop);
        width: calc(100% - var(--nav-width-desktop));
    }
    .menu-section { padding: 3rem 2rem; }

    .shisha-info { padding: 1.2rem 1.5rem; max-width: 75%; }

    .shisha-title-price-line {
        justify-content: flex-end;
        gap: 0;
        width: max-content;
        max-width: 100%;
        margin-left: 0;
    }
     .shisha-title {
        font-size: 1.6em;
        flex-grow: 0;
        padding: 0;
    }
     .shisha-price {
         font-size: 1.6em;
         margin-left: 0.3em;
         padding: 0;
     }
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .sidebar-nav { width: var(--nav-width-mobile); padding: 1.5rem 0.2rem; }
    .logo-container { padding: 0 0.5rem; margin-bottom: 2rem; }
    .logo { max-width: 80%; }
    .nav-icon { width: 30px; height: 30px; margin-bottom: 0.4rem; }
    .nav-item a .nav-text { font-size: 0.75rem; line-height: 1.1; }
    .nav-item a { padding: 0.6rem 0.2rem; }

    .main-content {
        margin-left: var(--nav-width-mobile);
        width: calc(100% - var(--nav-width-mobile));
    }

    .hero-section { height: 45vh; }
    .hero-title { font-size: 1.8rem; }
    .hero-description { font-size: 0.9rem; }
    .menu-section { padding: 2.5rem 1rem; }
    .shisha-items-list { gap: 2rem; }
    .shisha-item {
        aspect-ratio: 1;
        border-radius: 8px;
    }

     .shisha-info { padding: 1rem 1.2rem; max-width: 85%; }
    .shisha-category { font-size: 0.7rem; padding: 0.1rem 0.5rem; margin-bottom: 0.3rem; }

    .shisha-title-price-line {
        justify-content: flex-end;
        gap: 0;
        margin-bottom: 0.2rem;
        width: max-content;
        max-width: 100%;
        margin-left: 0;
    }
     .shisha-title {
        font-size: 1.4em;
        flex-grow: 0;
        padding: 0;
    }
    .shisha-description { font-size: 0.85rem; line-height: 1.4; margin-bottom: 0.3em; }
     .shisha-price {
        font-size: 1.4em;
        margin-left: 0.3em;
        padding: 0;
     }

    .smoke-background::before { width: 200px; height: 200px; filter: blur(20px); bottom: -120px; animation-duration: 30s; }
    .smoke-background::after { width: 250px; height: 250px; filter: blur(25px); bottom: -150px; animation-duration: 35s; }
}


/* === Optional: CSS :has() Method (Alternative to JS) === */
/* Uncomment ONLY if you REMOVE the h3.shisha-title tag completely when empty */
/*
.shisha-item:not(:has(.shisha-title-price-line > h3.shisha-title)) .shisha-item-overlay {
     opacity: 0;
}
*/


/* === Scroll-based Animations === */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in { opacity: 0; }
.fade-in-up { opacity: 0; transform: translateY(30px); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }