/* ============================================
   SushiRoll - Premium Japanese Restaurant
   Mobile-First RTL Design
   ============================================ */

/* Font Faces */
@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Colors - New Pink/Magenta Palette */
    --color-primary: #C2005C;
    --color-primary-dark: #a00050;
    --color-primary-light: #e91e63;
    --color-bg-main: #FFA3CE;
    --color-bg-light: #FFB8D9;
    --color-bg-dark: #FF8EC2;
    --color-white: #ffffff;
    --color-text-white: #ffffff;
    --color-text-primary: #C2005C;
    --color-black: #1a1a1a;
    --color-gray: #666;
    --color-gray-light: rgba(255, 255, 255, 0.3);
    
    /* Typography */
    --font-primary: 'Assistant', sans-serif;
    --font-serif: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Layout */
    --header-height: 70px;
    --max-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-white);
    direction: rtl;
    overflow-x: hidden;
    background-color: #C2005C !important;
    background-image: url(/img/patt2.png) !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Header - Sticky
   ============================================ */

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: var(--color-bg-dark);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-sm);
    background:#000;
}

.header-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-white);
    font-weight: 600;
    transition: all var(--transition-fast);
    padding: 0.7rem 2rem;
    background: var(--color-primary);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(194, 0, 92, 0.3);
    width: calc(100% - var(--spacing-md));
    max-width: 450px;
}

.header-phone:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(194, 0, 92, 0.4);
}

.header-phone svg {
    display: none;
    flex-shrink: 0;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.header-phone-text {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.95;
}

.header-phone-number {
    font-size: 1.2rem;
    direction: ltr;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1rem;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ============================================
   Admin Floating Button
   ============================================ */

.admin-float {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    color: white;
}

.admin-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(194, 0, 92, 0.4);
}

.admin-float svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    margin-top: var(--header-height);
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg);
    background-color: #000 !important;
    background-image: url(/img/hero-img2.jpg) !important;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: var(--spacing-md);
    animation: fadeInDown 0.8s ease;
}

.hero-logo-img {
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-white);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-white);
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--color-text-white), transparent);
    margin: var(--spacing-lg) auto 0;
}

/* ============================================
   Tab Navigation
   ============================================ */

.tabs {
    background:#000;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm);
}

.tabs-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
}

.tab-button {
    flex: 1;
    max-width: 200px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tab-button.active {
    color: var(--color-text-white);
    background:#FFA3CE;
    box-shadow: var(--shadow-md);
}

/* ============================================
   Content Area
   ============================================ */

.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-xxl);
    min-height: 60vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-description {
    text-align: center;
    color: var(--color-text-white);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

/* ============================================
   Items Container
   ============================================ */

.items-container {
    display: grid;
    gap: var(--spacing-lg);
}

.items-container.loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vertical Layout (Platters & Rolls) */
.items-container.layout-vertical {
    grid-template-columns: 1fr;
}

/* Grid Layout (Additions) */
.items-container.layout-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

/* Subcategories Wrapper */
.subcategories-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

.subcategory-section {
    margin-bottom: var(--spacing-lg);
}

.subcategory-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-white);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.subcategory-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-text-white), transparent);
    border-radius: 2px;
}

/* Desktop Grid Enhancement */
@media (min-width: 1200px) {
    .items-container.layout-vertical {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

/* ============================================
   Item Cards - Vertical (Platters & Rolls)
   ============================================ */

.item-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: fadeInUp 0.5s ease backwards;
    border:0;
}

.item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(194, 0, 92, 0.15);
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
}

.item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.item-image-wrapper:hover .item-image {
    transform: scale(1.05);
}

.item-zoom-icon {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.item-image-wrapper:hover .item-zoom-icon {
    opacity: 1;
}

.item-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.item-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: 0;
}

.item-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.item-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to left, var(--color-primary), transparent);
    border-radius: 2px;
}

.item-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    white-space: nowrap;
    letter-spacing: -0.03em;
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(194, 0, 92, 0.15);
    margin-top: auto;
}

.item-type {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.item-servings {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--color-text-white);
    background: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(194, 0, 92, 0.2);
}

.item-servings::before {
    content: "👥";
    font-size: 1rem;
}

.item-description {
    color: #2d2d2d;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ============================================
   Item Cards - Grid (Additions)
   ============================================ */

.item-card-compact {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: fadeInUp 0.5s ease backwards;
    border: 1px solid rgba(194, 0, 92, 0.1);
}

.item-card-compact:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(194, 0, 92, 0.15);
}

.item-card-compact .item-image-wrapper {
    padding-top: 100%; /* 1:1 aspect ratio */
}

.item-card-compact .item-content {
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.item-card-compact .item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.item-card-compact .item-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* ============================================
   Loader
   ============================================ */

.loader {
    text-align: center;
    color: var(--color-text-white);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-text-white);
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Image Modal
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -40px;
    left: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    top: 20px;
  right: 20px;
}

.modal-close:hover {
    background: var(--color-white);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg);
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin: 0 auto var(--spacing-md);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.footer-contact a {
    color: var(--color-white);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-bg-light);
}

/* ============================================
   Animations
   ============================================ */

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

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets */
@media (min-width: 600px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .subcategory-title {
        font-size: 2.5rem;
    }
    
    .header-phone {
        gap: 0.75rem;
        padding: 0.8rem 2.5rem;
        max-width: 500px;
    }
    
    .header-phone svg {
        display: block;
        width: 22px;
        height: 22px;
        animation: ring 2s ease infinite;
    }
    
    .header-phone > div {
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem !important;
    }
    
    .header-phone-text {
        font-size: 0.85rem;
    }
    
    .header-phone-number {
        font-size: 1.15rem;
    }
    
    .items-container.layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 900px) {
    :root {
        --header-height: 80px;
    }
    
    .hero {
        padding: var(--spacing-xxl) var(--spacing-md) var(--spacing-xl);
        background-color: #000 !important;
        background-image: url(/img/hero-img2.jpg) !important;
    }
    
    .hero-logo-img {
        width: 150px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .header-phone {
        padding: 0.9rem 3rem;
        gap: 1rem;
        max-width: 550px;
    }
    
    .header-phone svg {
        width: 24px;
        height: 24px;
    }
    
    .header-phone > div {
        gap: 0.6rem !important;
    }
    
    .header-phone-text {
        font-size: 0.9rem;
    }
    
    .header-phone-number {
        font-size: 1.25rem;
    }
    
    .items-container.layout-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .subcategory-title {
        font-size: 3rem;
    }
    
    .subcategory-title::after {
        width: 150px;
        height: 4px;
    }
    
    .tab-button {
        font-size: 1.1rem;
    }
    
    .whatsapp-float {
        bottom: 30px;
        left: 30px;
        width: 70px;
        height: 70px;
    }
    
    .whatsapp-float svg {
        width: 36px;
        height: 36px;
    }
    
    .admin-float {
        bottom: 120px;
        left: 30px;
        width: 60px;
        height: 60px;
    }
    
    .admin-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .content {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    /* Desktop: Better spacing and readability */
    .hero-title {
        font-size: 3.5rem;
        line-height: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.3rem;
    }
    
    .hero-logo-img {
        width: 180px;
    }
    
    /* Desktop: Wider content area */
    .content {
        max-width: 1400px;
        padding: var(--spacing-xxl) var(--spacing-xl);
        background-repeat: repeat !important;
    }
    
    /* Desktop: Better card layout */
    .item-card {
        display: grid;
        grid-template-columns: 45% 55%;
        gap: 0;
    }
    
    .item-card:nth-child(even) {
        grid-template-columns: 55% 45%;
    }
    
    .item-card:nth-child(even) .item-image-wrapper {
        order: 2;
    }
    
    .item-card:nth-child(even) .item-content {
        order: 1;
    }
    
    .item-image-wrapper {
        padding-top: 100%; /* Square on desktop */
    }
    
    .item-content {
        padding: var(--spacing-xxl);
        gap: var(--spacing-lg);
    }
    
    .item-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .item-description {
        font-size: 1.2rem;
        line-height: 1.9;
    }
    
    .item-price {
        font-size: 2.8rem;
        padding-top: var(--spacing-lg);
        margin-top: var(--spacing-md);
    }
    
    .item-servings {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    .item-servings::before {
        font-size: 1.1rem;
    }
    
    .item-type {
        font-size: 1.1rem;
    }
    
    .item-title::after {
        width: 80px;
        height: 4px;
    }
    
    /* Desktop: Grid improvements for additions */
    .items-container.layout-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
    
    .item-card-compact .item-content {
        padding: var(--spacing-lg);
    }
    
    .item-card-compact .item-title {
        font-size: 1.4rem;
    }
    
    .item-card-compact .item-price {
        font-size: 1.8rem;
    }
    
    /* Desktop: Tab buttons bigger */
    .tab-button {
        font-size: 1.2rem;
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

/* Stagger animation delays */
.item-card:nth-child(1),
.item-card-compact:nth-child(1) { animation-delay: 0.05s; }
.item-card:nth-child(2),
.item-card-compact:nth-child(2) { animation-delay: 0.1s; }
.item-card:nth-child(3),
.item-card-compact:nth-child(3) { animation-delay: 0.15s; }
.item-card:nth-child(4),
.item-card-compact:nth-child(4) { animation-delay: 0.2s; }
.item-card:nth-child(5),
.item-card-compact:nth-child(5) { animation-delay: 0.25s; }
.item-card:nth-child(n+6),
.item-card-compact:nth-child(n+6) { animation-delay: 0.3s; }
