/* ================== GLOBAL ================== */
html {
    font-size: 16px;
    /* base font size */
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fb;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    /* responsive base text */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================== NAVBAR ================== */
nav.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #fff !important;
}

.navbar a {
    color: #fff !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    position: relative;
    transition: 0.3s;
}

.navbar-nav .nav-link::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #ffc107;
    position: absolute;
    left: 0;
    bottom: -4px;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* SEARCH */
.navbar input[type="search"] {
    border-radius: 50px;
    padding: 10px 20px;
    border: none;
    width: auto;
}

.navbar input[type="search"]:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px;
    z-index: 9999;
}

.dropdown-menu .dropdown-item {
    color: #333 !important;
    border-radius: 8px;
    padding: 8px 12px;
}

.dropdown-menu .dropdown-item:hover {
    background: #f3f4f6 !important;
    color: #000 !important;
}

/* CART BADGE */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    padding: 3px 6px;
    border-radius: 50%;
}

/* ================== CARDS ================== */
.card,
.restaurant-card,
.food-card,
.contact-card {
    border-radius: 16px;
    transition: 0.3s;
}

.card:hover,
.restaurant-card:hover,
.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.restaurant-card,
.food-card {
    overflow: hidden;
    background: #fff;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* IMAGE */
.img-wrapper {
    height: 200px;
}


.img-wrapper img,
.restaurant-card img,
.food-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* DARK OVERLAY */
.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    font-size: 0.75rem;
}

.delivery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
}

.discount-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #dc3545;
    font-size: 0.75rem;
}

.food-card:hover img {
    transform: scale(1.08);
}

.restaurant-card:hover img {
    transform: scale(1.08);
}

.card-body h5 {
    margin-bottom: 5px;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
}

/* ================== BADGES ================== */
.time-badge,
.status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #fff;
}

.status-badge.open {
    background: #28a745;
    color: white;
}

.status-badge.closed {
    background: #dc3545;
    color: white;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    /* semi-transparent dark overlay */
    border-radius: 20px;
}

/* ================== WISHLIST ================== */
.wishlist,
.wishlist-icon {
    position: absolute;
    top: 45%;
    right: 10px;
    background: #fff;
    padding: 6px 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.wishlist:hover,
.wishlist-icon:hover {
    background: #ff4d4d;
    color: #fff;
}

.wishlist-icon.active {
    background: #ff4d4d;
}

.wishlist-icon.active i {
    color: white;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
}

/* ================== BUTTONS ================== */
.btn,
.btn-cta,
.btn-primary,
.btn-outline-primary,
.subscribe-btn,
.cart-btn {
    border-radius: 10px;
    transition: 0.3s;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.btn:hover,
.btn-cta:hover,
.btn-primary:hover,
.btn-outline-primary:hover,
.subscribe-btn:hover,
.cart-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.btn-primary {
    background: linear-gradient(135deg, #6C63FF, #48C6EF);
    border: none;
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid #6C63FF;
    background: transparent;
    color: #6C63FF;
}

.btn-outline-primary:hover {
    background: #6C63FF;
    color: white;
}

.btn-cta {
    background: linear-gradient(135deg, #ff4d4d, #ff7a18);
    color: white;
    padding: clamp(8px, 1vw, 12px) clamp(12px, 2vw, 25px);
    border-radius: 30px;
    font-weight: 600;
}

.cart-btn {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    padding: 6px 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ================== FOOTER ================== */
.footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #9ca3af;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff4d4d, #ff7a18, #ffc107);
}

.footer h5 {
    color: #fff;
    position: relative;
    padding-bottom: 5px;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.footer h5::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #ff4d4d;
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-links li {
    list-style: none;
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffc107;
    padding-left: 5px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #ff4d4d, #ff7a18);
    transform: translateY(-4px) scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

/* ================== HERO ================== */
.contact-hero {
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('{% static "images/slide-1.jpg" %}') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-overlay {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
    padding: clamp(15px, 3vw, 30px);
    border-radius: 20px;
    text-align: center;
}

.hero-overlay h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-overlay p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

/* ================== CONTACT ================== */
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: clamp(15px, 3vw, 30px);
}

.form-control {
    border-radius: 10px;
    padding: clamp(8px, 1.5vw, 12px);
    margin-bottom: 15px;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    margin-top: 20px;
}

/* ================== LIST & TABLE ================== */
.list-group-item {
    border: none;
    border-radius: 12px;
    background: #f9f9f9;
    transition: 0.2s;
}

.list-group-item:hover {
    background: #f1f1f1;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

.badge {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    padding: 0.45em 0.7em;
    border-radius: 12px;
}

/* ================== SECTION TITLES ================== */
.section-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

/* ================== OVERLAY ================== */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: #fff;
    border-radius: 16px;
}

.restaurant-card:hover .overlay {
    opacity: 1;
}

/* HERO SECTION */
.restaurant-hero {
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    padding: 20px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

/* PRICE */
.price-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #ff4b2b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.quick-cart-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.quick-cart-btn:hover {
    background: #ff4b2b;
    color: #fff;
}

/* ================== ANIMATION ================== */
.bi-check-circle-fill {
    animation: pop 0.6s ease forwards;
}

@keyframes pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* ================== MEDIA QUERIES ================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .navbar .d-flex {
        flex-direction: column;
    }

    .navbar input[type="search"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar-nav {
        text-align: center;
    }

    .cart-badge {
        top: -8px;
        right: -10px;
    }

    .footer .row {
        text-align: center;
    }

    .footer .col-md-4 {
        margin-bottom: 30px;
    }

    .social-icons {
        justify-content: center;
    }

    .newsletter-box form {
        flex-direction: column;
    }

    .newsletter-box input {
        margin-bottom: 10px;
    }
}

@media (max-width: 575px) {

    .restaurant-card,
    .food-card {
        margin-bottom: 20px;
    }

    .overlay {
        font-size: 0.85rem;
    }

    .btn,
    .btn-cta,
    .btn-primary {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .hero-overlay {
        padding: 15px;
    }
}