/*
Theme Name: Fiverr Elite Restaurant Pro
Theme URI: https://fiverr.com/elite
Author: DeepSeek Advanced
Description: Ultra Premium Multi-Page Restaurant Theme with Advanced Delivery System
Version: 3.0
License: GPL-2.0+
Text Domain: fiverr-elite
*/

/* === CSS Variables for WordPress Customizer Integration === */
:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --secondary: #0f172a;
    --accent: #fbbf24;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --font-primary: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-secondary: 'Clash Display', 'Inter', sans-serif;
}

/* === Premium Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* === Custom Cursor (Premium Feature) === */
@media (min-width: 1024px) {
    .custom-cursor {
        width: 20px;
        height: 20px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.2s ease;
        transform: translate(-50%, -50%);
        mix-blend-mode: difference;
    }
    .cursor-dot {
        width: 4px;
        height: 4px;
        background: var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.1s ease;
        transform: translate(-50%, -50%);
    }
    a:hover ~ .custom-cursor,
    button:hover ~ .custom-cursor {
        transform: translate(-50%, -50%) scale(1.5);
        background: rgba(220, 38, 38, 0.1);
    }
}

/* === Premium Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* === Container === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
}
h2 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 24px;
}

/* === Premium Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 16px;
    gap: 12px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}
.btn-outline:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-3px);
}

/* === Header Styles (Premium Multi-level) === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s;
    padding: 20px 0;
    background: transparent;
    backdrop-filter: blur(0);
}

.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
    border-bottom: var(--glass-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    transition: transform 0.3s;
}
.logo:hover {
    transform: scale(1.05);
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}
.primary-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* === Hero Section (Multi-Page controlled via WordPress) === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.hero-title {
    margin-bottom: 24px;
}
.hero-title span {
    color: var(--primary);
    position: relative;
}
.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(220, 38, 38, 0.2);
    z-index: -1;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 700px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-20px); }
}

/* === Menu Grid (Premium Cards) === */
.menu-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 12px 28px;
    background: white;
    border: none;
    border-radius: 100px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    font-size: 15px;
}
.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(220, 38, 38, 0.3);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.menu-card {
    background: white;
    border-radius: 32px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}
.menu-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-2xl);
}
.menu-card.featured {
    border: 2px solid var(--accent);
}
.menu-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.menu-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 20px;
}
.menu-title {
    font-size: 24px;
    margin-bottom: 8px;
}
.menu-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}
.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.add-cart-btn {
    background: var(--text-dark);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.add-cart-btn:hover {
    background: var(--primary);
    transform: scale(1.1) rotate(90deg);
}

/* === Cart Drawer (Premium Slide-out) === */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-2xl);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
}
.cart-drawer.active {
    right: 0;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.close-drawer {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}
.cart-item-drawer {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}
.item-details {
    flex: 1;
}
.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
}
.drawer-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* === Delivery Options === */
.delivery-section {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0;
    margin: 80px 0;
    border-radius: 60px;
}
.delivery-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.delivery-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s;
}
.delivery-card.active {
    background: var(--primary);
    border-color: var(--primary);
}
.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}
.time-slot {
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.time-slot.active {
    background: white;
    color: var(--text-dark);
}

/* === Footer (Premium with Widgets) === */
.site-footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 80px 0 30px;
    margin-top: 100px;
    border-radius: 60px 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-logo {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-links h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 18px;
}
.footer-links ul {
    list-style: none;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: white;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 100px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: white;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* === Mobile Responsive === */
@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 100px 30px;
        transition: right 0.3s;
        box-shadow: var(--shadow-2xl);
    }
    .primary-nav.active {
        right: 0;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 30px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-actions .btn {
        display: none;
    }
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .delivery-options {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}