﻿/* =================================
HOME SECTION
================================= */

.home-about-section {
    padding: 120px 0;
    background: #f9f6f1;
}

.home-about-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.home-about-text {
    color: #1e293b;
}

.home-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 15px;
}

.home-subtitle {
    font-size: 20px;
    color: #475569;
    margin-bottom: 35px;
}

.section-kicker {
    letter-spacing: 0.05em;
    font-size: 12px;
    color: #10b981;
    margin-bottom: 20px;
}

[lang="tj"] .section-kicker {
    letter-spacing: normal !important;
}

.home-title {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .scrollbar-hide::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

.filter-scroll {
    -ms-overflow-style: none;
}

    .filter-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .filter-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .filter-scroll::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 10px;
    }

    .filter-scroll:hover::-webkit-scrollbar-thumb {
        background: #94a3b8;
    }

/* BUTTONS */

.hero-buttons {
    display: flex;
    gap: 18px;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 56px;
    padding: 0 28px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
    box-shadow: 0 10px 24px rgba(16,185,129,0.18);
    transition: all 0.25s ease;
    cursor: pointer;
}

    .hero-btn:hover {
        background: #10b981;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(16,185,129,0.24);
    }

/* IMAGE & SLIDER */

.home-about-image {
    position: relative;
    width: 520px;
    height: 340px;
    margin-left: auto;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

    .slider-btn.left {
        left: 14px;
    }

    .slider-btn.right {
        right: 14px;
    }

    .slider-btn:hover {
        background: #10b981;
        color: white;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    }

.home-about-image:hover .slider-btn {
    opacity: 1;
    pointer-events: auto;
}

.slider-dots {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.2s;
}

    .dot.active {
        background: #10b981;
        transform: scale(1.3);
    }

/* MOBILE */

@media(max-width:900px) {
    .home-about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-title {
        font-size: 48px;
    }

    .home-about-image {
        width: 100%;
        height: 280px;
        margin-left: 0;
    }

    .chef-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .chef-container {
        padding: 0 20px;
    }
}

.order-type-btn {
    padding: 8px 4px;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .order-type-btn.active {
        border-color: #10b981;
        background: #ecfdf5;
        color: #059669;
    }

/* =================================
NAVIGATION
================================= */

a.nav-link {
    position: relative;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding-bottom: 8px;
}

    a.nav-link:hover {
        color: #10b981;
    }

    a.nav-link.nav-link-active {
        color: #10b981 !important;
        font-weight: 700;
    }

        a.nav-link.nav-link-active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 100%;
            height: 3px;
            background-color: #10b981;
            border-radius: 9999px;
        }

/* =================================
CHEF SECTION
================================= */

.chef-section {
    padding: 80px 0;
    background: white;
}

.chef-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.chef-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.chef-subtitle {
    color: #64748b;
    margin-bottom: 40px;
}

.chef-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
}

.chef-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

    .chef-card:hover {
        transform: translateY(-5px);
    }

    .chef-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 14px;
        margin-bottom: 15px;
    }

    .chef-card h3 {
        margin-bottom: 6px;
    }

/* =================================
SHOP PAGE - OUTLINE BUTTONS
================================= */

/* Shop Now Button */
.outline-btn,
.shop-now-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #10b981 !important;
    background: transparent !important;
    border: 2px solid #10b981 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

    .outline-btn:hover,
    .shop-now-btn:hover {
        background: #10b981 !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.2) !important;
    }

#shop .filter-btn,
.filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: unset !important;
    height: unset !important;
    padding: 12px 28px !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    background: transparent !important;
    color: #10b981 !important;
    border: 2px solid #10b981 !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

    #shop .filter-btn:hover,
    .filter-btn:hover {
        background: #10b981 !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 14px 28px rgba(16,185,129,0.24) !important;
    }

    #shop .filter-btn.active,
    button.filter-btn.active {
        background: #10b981 !important;
        color: white !important;
        border-color: #10b981 !important;
        box-shadow: 0 14px 28px rgba(16,185,129,0.24) !important;
    }

#shop .flex.gap-3.overflow-x-auto {
    background: transparent !important;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100% !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ef4444 !important;
    background: transparent !important;
    border: 2px solid #ef4444 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

    .add-to-cart-btn:hover {
        background: #ef4444 !important;
        color: white !important;
        transform: translateY(-1px) !important;
    }

/* =================================
ANIMATIONS
================================= */

.fade-up {
    animation: fadeUp 1s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-bounce-in {
    animation: bounceIn 0.5s ease-out;
}

.lang-select {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: white;
    cursor: pointer;
    outline: none;
    transition: 0.2s ease;
}

    .lang-select:hover,
    .lang-select:focus {
        border-color: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    }

/* =================================
ABOUT PAGE
================================= */

.about-page {
    max-width: 900px;
    margin: auto;
    padding: 60px 20px;
}

.about-header {
    margin-bottom: 40px;
}

.about-badge {
    display: inline-block;
    background: #e7f8ef;
    color: #10b981;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-title {
    font-size: 48px;
    font-weight: 800;
    margin: 10px 0;
    color: #0f172a;
}

.about-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.about-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid #dbe2ea;
    text-decoration: none;
    font-weight: 600;
    color: #111827;
    background: white;
    transition: all 0.25s ease;
}

    .about-social-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

.maps-btn {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.instagram-btn i {
    color: #e1306c;
}

.facebook-btn i {
    color: #2563eb;
}

.opening-hours-card {
    margin-top: 50px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.opening-header {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #0f172a;
}

.opening-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 16px;
    color: #334155;
}

.closed {
    color: #ef4444;
    font-weight: 600;
}

@media (max-width: 640px) {
    .about-page {
        padding: 40px 16px;
    }

    .about-title {
        font-size: 38px;
    }

    .about-subtitle {
        font-size: 16px;
    }

    .about-social-btn {
        width: 100%;
        justify-content: center;
    }

    .opening-row {
        font-size: 15px;
    }
}

.phone-btn {
    border: 1px solid #10b981;
    color: #10b981;
    background: #ecfdf5;
}

    .phone-btn i {
        color: #10b981;
    }

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

    .payment-method-btn:hover {
        transform: translateY(-2px);
    }

    .payment-method-btn.active {
        border-color: #10b981;
        background: #ecfdf5;
        color: #059669;
    }

html,
body {
    font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
}

[lang="tj"] {
    font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
}

    [lang="tj"] .section-kicker {
        letter-spacing: normal !important;
    }

/* =================================
FLATPICKR - SAPPORO THEME
================================= */

.flatpickr-calendar {
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    border: 1px solid #e5e7eb !important;
    font-family: "Noto Sans", "Segoe UI", Arial, sans-serif !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

.flatpickr-day:hover {
    background: #ecfdf5 !important;
    border-color: #ecfdf5 !important;
}

.flatpickr-day.today {
    border-color: #10b981 !important;
}

    .flatpickr-day.today:hover {
        background: #10b981 !important;
        color: white !important;
    }

.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-weekday {
    color: #1e293b !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #10b981 !important;
}

.flatpickr-day.flatpickr-disabled {
    color: #cbd5e1 !important;
}

/* Make readonly date input look clickable */
.sapporo-date-input {
    cursor: pointer;
    background: white;
}

/* =================================
IMAGE PLACEHOLDER (no photo)
================================= */

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

    .img-placeholder i {
        font-size: 2.5rem;
        color: #10b981;
        opacity: 0.8;
    }

/* Remove focus outline on page headings */
h1:focus,
h1:focus-visible {
    outline: none !important;
}

h1:focus {
    outline: none !important;
}

/* Chef card image wrapper (supports gradient placeholder) */
.chef-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
}

    .chef-img-wrap img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .chef-img-wrap .img-placeholder {
        border-radius: 14px;
    }

/* Filter buttons: wrap long text on mobile */
@media (max-width: 767px) {
    .filter-btn {
        white-space: normal !important;
        line-height: 1.3 !important;
        min-height: 56px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 8px 6px !important;
        font-size: 0.85rem !important;
        overflow: visible !important;
    }
}

/* Modal image placeholder support */
.modal-image-wrap {
    position: relative;
    height: 240px;
}

    .modal-image-wrap .img-placeholder {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .modal-image-wrap .modal-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 2;
    }

/* ===== Animated empty state (add to wwwroot/app.css) ===== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-art {
    width: 200px;
    max-width: 70%;
    margin-bottom: 1.25rem;
}

    .empty-state-art svg {
        width: 100%;
        height: auto;
        overflow: visible;
    }

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.empty-state-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    max-width: 22rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.empty-state-btn {
    background: #22C55E;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

    .empty-state-btn:hover {
        background: #16A34A;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(34, 197, 94, 0.38);
    }

/* --- shared animations --- */

.es-blob {
    animation: es-pulse 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes es-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.85;
    }
}

/* --- favorites: floating heart --- */

.es-heart {
    animation: es-float 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes es-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.04);
    }
}

/* --- cart: gently rocking basket --- */

.es-basket {
    animation: es-rock 3.5s ease-in-out infinite;
    transform-origin: 100px 120px;
}

@keyframes es-rock {
    0%, 100% {
        transform: rotate(-2.5deg) translateY(0);
    }

    50% {
        transform: rotate(2.5deg) translateY(-4px);
    }
}

/* --- sparkles (favorites) --- */

.es-spark {
    animation: es-twinkle 2.4s ease-in-out infinite;
    transform-origin: center;
}

.es-spark-1 {
    animation-delay: 0s;
}

.es-spark-2 {
    animation-delay: 0.6s;
}

.es-spark-3 {
    animation-delay: 1.2s;
}

@keyframes es-twinkle {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

/* --- falling items (cart) --- */

.es-drop {
    animation: es-fall 2.8s ease-in-out infinite;
}

.es-drop-1 {
    animation-delay: 0s;
}

.es-drop-2 {
    animation-delay: 0.5s;
}

.es-drop-3 {
    animation-delay: 1s;
}

@keyframes es-fall {
    0% {
        opacity: 0;
        transform: translateY(-14px);
    }

    25% {
        opacity: 1;
    }

    70% {
        opacity: 1;
        transform: translateY(40px);
    }

    100% {
        opacity: 0;
        transform: translateY(46px);
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .es-blob, .es-heart, .es-basket, .es-spark, .es-drop {
        animation: none;
    }
}
