/**
 * SuPavFoods - Zomato Clone Style
 * Complete Food Delivery UI
 * Version: 3.0.0
 */

/* ============================================
   IMPORTS & RESET
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Okra:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --primary: #EF4F5F;
    --primary-dark: #D63A4A;
    --primary-light: #FF6B7A;
    --secondary: #1C1C1C;
    --text-primary: #1C1C1C;
    --text-secondary: #696969;
    --text-light: #9C9C9C;
    --white: #FFFFFF;
    --light: #F8F8F8;
    --light-gray: #F0F0F0;
    --border-color: #E8E8E8;
    --success: #3D9C5E;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(239, 79, 95, 0.12);
    --radius: 12px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1100px;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: 'Okra', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR - Zomato Style
   ============================================ */
.navbar {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.navbar-brand .brand-logo {
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.navbar-brand .brand-dot {
    color: var(--primary);
}

.navbar-location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    flex-shrink: 0;
}

.navbar-location:hover {
    border-color: var(--primary);
}

.navbar-location .location-icon {
    color: var(--primary);
    font-size: 14px;
}

.navbar-location .city-name {
    font-weight: 500;
    font-size: 13px;
}

.navbar-location .dropdown-icon {
    color: var(--text-light);
    font-size: 11px;
}

.navbar-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.navbar-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Okra', sans-serif;
    font-size: 13px;
    transition: var(--transition);
    background: var(--light);
}

.navbar-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(239, 79, 95, 0.08);
}

.navbar-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    color: var(--white);
}

.cart-btn .cart-count {
    background: rgba(255,255,255,0.2);
    padding: 1px 8px;
    border-radius: 50%;
    font-size: 11px;
}

/* ============================================
   HERO - Video Background (Full Screen)
   ============================================ */
.hero-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.hero-content h1 .highlight {
    color: var(--primary);
}

.hero-content .subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.hero-search {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .search-input {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.hero-search .search-input i {
    color: var(--text-light);
    margin-right: 8px;
}

.hero-search .search-input input {
    border: none;
    padding: 16px 0;
    font-family: 'Okra', sans-serif;
    font-size: 13px;
    width: 100%;
    outline: none;
}

.hero-search .search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    font-family: 'Okra', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search .search-btn:hover {
    background: var(--primary-dark);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator i {
    font-size: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   ABOUT SECTION - "Better food for more people"
   ============================================ */
.about-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-content > p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.about-stats .stat-item h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.about-stats .stat-item p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    padding: 48px 0;
    background: var(--white);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.section-header .view-all {
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-header .view-all:hover {
    color: var(--primary-dark);
}

.category-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 16px;
    min-width: 100px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.category-item:hover {
    background: var(--light);
    transform: translateY(-4px);
}

.category-item .cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 8px;
    transition: var(--transition);
}

.category-item:hover .cat-icon {
    background: rgba(239, 79, 95, 0.1);
}

.category-item .cat-name {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   FOOD CARDS
   ============================================ */
.featured-foods {
    padding: 48px 0;
    background: var(--light);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.food-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.food-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.food-card .food-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--light-gray);
}

.food-card .food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.food-card:hover .food-img img {
    transform: scale(1.05);
}

.food-card .food-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.food-card .food-badge.veg {
    color: var(--success);
}

.food-card .food-badge.nonveg {
    color: var(--primary);
}

.food-card .food-time {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.food-card .food-info {
    padding: 16px;
}

.food-card .food-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.food-card .food-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-card .food-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.food-card .food-meta .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--success);
    font-weight: 600;
}

.food-card .food-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.food-card .food-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.food-card .food-price .original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}

.food-card .add-btn {
    padding: 6px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.food-card .add-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================
   OFFER BANNER
   ============================================ */
.offer-banner-section {
    padding: 32px 0;
    background: var(--light);
}

.offer-banner {
    background: linear-gradient(135deg, #1C1C1C 0%, #363636 100%);
    padding: 48px 24px;
    border-radius: var(--radius-md);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.offer-banner .offer-text h3 {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-banner .offer-text p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.offer-banner .offer-btn {
    padding: 12px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-banner .offer-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1C1C1C;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}

.footer .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer .footer-brand h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer .footer-brand p {
    font-size: 13px;
    max-width: 300px;
}

.footer .footer-links h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer .footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer .footer-links a:hover {
    color: var(--primary);
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   LOCATION MODAL - Blinkit Style
   ============================================ */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease;
}

.location-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-md);
    max-width: 480px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-logo .brand-logo {
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.modal-logo .brand-dot {
    color: var(--primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-detect-location {
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-detect-location:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-detect-location:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 16px;
}

.pincode-input-group {
    display: flex;
    gap: 8px;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 79, 95, 0.08);
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Okra', sans-serif;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.btn-submit-pincode {
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.btn-submit-pincode:hover {
    background: var(--primary-dark);
}

.popular-cities {
    margin-top: 8px;
}

.popular-cities p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.city-chip {
    padding: 8px 16px;
    background: var(--light);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.city-chip:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    background: var(--secondary);
    color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    font-weight: 500;
    font-size: 13px;
    z-index: 9999;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .navbar-search {
        max-width: 300px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .navbar-location {
        order: 2;
        flex: 1;
    }
    
    .navbar-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .navbar-right {
        order: 1;
    }
    
    .hero-video {
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
    }
    
    .hero-search .search-btn {
        padding: 14px;
        border-radius: 0 0 var(--radius) var(--radius);
        justify-content: center;
    }
    
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .food-card .food-img {
        height: 140px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .footer .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .offer-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .about-section {
        padding: 48px 0;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
    
    .about-content > p {
        font-size: 16px;
        padding: 0 16px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-stats .stat-item h3 {
        font-size: 28px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .food-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .food-card .food-img {
        height: 120px;
    }
    
    .food-card .food-info {
        padding: 12px;
    }
    
    .food-card .food-name {
        font-size: 13px;
    }
    
    .food-card .food-price {
        font-size: 15px;
    }
    
    .food-card .add-btn {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .category-item {
        min-width: 70px;
        padding: 8px;
    }
    
    .category-item .cat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .category-item .cat-name {
        font-size: 11px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 16px;
        width: 95%;
    }
    
    .modal-logo {
        font-size: 20px;
    }
    
    .pincode-input-group {
        flex-direction: column;
    }
    
    .btn-submit-pincode {
        width: 100%;
    }
    
    .about-content h2 {
        font-size: 24px;
    }
    
    .about-stats .stat-item h3 {
        font-size: 24px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 50%;
}

::selection {
    background: var(--primary);
    color: var(--white);
}