/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #282c3f;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Typography - Swiggy Style Headers */
.header-1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
}

.header-2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.4;
}

/* Mobile Header */
.mobile-header {
    background: #ffffff;
    padding: 12px 16px;
    border-bottom: 1px solid #e9e9eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo {
    height: 32px;
    width: auto;
}

.mobile-location-btn {
    background: none;
    border: none;
    color: #3d4152;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-location-btn:hover {
    background: #f0f0f5;
    color: #60b246;
}

.mobile-signin-btn {
    background: none;
    border: none;
    color: #3d4152;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.mobile-signin-btn:hover {
    background: #f0f0f5;
    color: #60b246;
}

/* Desktop Header */
.desktop-header {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e9e9eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 44, 63, 0.07);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.location-dropdown {
    flex-shrink: 0;
}

.location-btn {
    background: none;
    border: none;
    color: #3d4152;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.location-btn:hover {
    background: #f0f0f5;
    color: #60b246;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3d4152;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.nav-item:hover {
    color: #60b246;
    background: rgba(96, 178, 70, 0.1);
}

.offers-badge {
    background: #60b246;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    position: absolute;
    top: -2px;
    right: -2px;
}

.wishlist-count {
    background: #60b246;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -2px;
    right: -2px;
}

/* Search Section */
.search-section {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e9e9eb;
    position: sticky;
    top: 73px;
    z-index: 999;
    transition: all 0.3s ease;
}

.search-section.show {
    display: block !important;
}

.search-wrapper {
    position: relative;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 14px 80px 14px 50px;
    border: 1px solid #e9e9eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #282c3f;
    outline: none;
}

.search-input:focus {
    border-color: #60b246;
    box-shadow: 0 0 0 2px rgba(96, 178, 70, 0.1);
}

.search-input::placeholder {
    color: #93959f;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #93959f;
    font-size: 16px;
    pointer-events: none;
}

.voice-search-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #60b246;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 16px;
}

.voice-search-btn:hover {
    background: rgba(96, 178, 70, 0.1);
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #93959f;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

.clear-search:hover {
    background: #f0f0f5;
    color: #60b246;
}

/* Main Content Section */
.main-content-section {
    padding: 24px 0;
    margin-top: 73px;
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

/* Mobile Title */
.mobile-title {
    display: none;
    margin-bottom: 16px;
}

.mobile-explore-title {
    font-family: 'Freight Sans Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #282c3f;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: left;
    padding: 0 16px;
}

/* Desktop Title */
.desktop-title {
    margin-bottom: 24px;
}

.main-title {
    font-family: 'Freight Sans Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 29px;
    font-weight: 700;
    color: #282c3f;
    line-height: 1.2;
}

.location-name {
    color: #60b246;
    font-weight: 700;
}

/* Filter Section */
.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9e9eb;
}

.filter-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #d4d5d9;
    color: #3d4152;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.filter-btn:hover {
    border-color: #60b246;
    color: #60b246;
}

.filter-btn-primary {
    background: #60b246;
    border-color: #60b246;
    color: #ffffff;
}

.filter-btn-primary:hover {
    background: #4a9c37;
    border-color: #4a9c37;
    color: #ffffff;
}

/* Results Count */
.results-count {
    font-size: 16px;
    font-weight: 600;
    color: #3d4152;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Desktop Canteen Grid */
.canteen-grid {
    display: none;
}

/* Mobile Canteen List (Default) */
.canteen-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Canteen Card */
.canteen-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    box-shadow: none;
    display: flex;
    position: relative;
    padding: 0;
    min-height: 120px;
}

.canteen-card:hover {
    transform: translateY(-2px);
}

.card-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f5;
    border-radius: 8px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    opacity: 0;
    border-radius: 8px;
}

.card-image.loaded {
    opacity: 1;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f5;
    color: #93959f;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    border-radius: 8px;
}

.card-offer-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
    line-height: 1.2;
}

.card-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: transparent;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #7e808c;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: #ffffff;
    color: #60b246;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #e74c3c;
}

.canteen-name {
    font-size: 16px;
    font-weight: 700;
    color: #282c3f;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 14px;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge {
    background: #60b246;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-count {
    color: #7e808c;
    font-size: 12px;
    font-weight: 400;
}

.delivery-time {
    color: #7e808c;
    font-weight: 500;
    font-size: 14px;
}

.cuisine-info {
    color: #7e808c;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-info {
    color: #7e808c;
    font-size: 14px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.distance {
    font-weight: 500;
}

/* Shimmer Effect */
.shimmer-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    border: none;
    box-shadow: none;
    min-height: 120px;
}

.shimmer-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(90deg, #f0f0f5 25%, #e9e9eb 50%, #f0f0f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.shimmer-content {
    flex: 1;
    padding: 12px 16px;
}

.shimmer-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f5 25%, #e9e9eb 50%, #f0f0f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.shimmer-line.title {
    height: 16px;
    width: 70%;
    margin-bottom: 8px;
}

.shimmer-line.info {
    height: 14px;
    width: 50%;
    margin-bottom: 4px;
}

.shimmer-line.cuisine {
    height: 14px;
    width: 80%;
    margin-bottom: 4px;
}

.shimmer-line.location {
    height: 14px;
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Empty State */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-content {
    text-align: center;
    max-width: 400px;
}

.empty-icon {
    font-size: 48px;
    color: #d4d5d9;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #282c3f;
    margin-bottom: 8px;
}

.empty-message {
    color: #7e808c;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.empty-action {
    background: #60b246;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.empty-action:hover {
    background: #4a9c37;
}

/* Error State */
.error-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.error-icon {
    font-size: 48px;
    color: #e23744;
    margin-bottom: 16px;
}

.error-title {
    font-size: 20px;
    font-weight: 600;
    color: #282c3f;
    margin-bottom: 8px;
}

.error-message {
    color: #7e808c;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.retry-button {
    background: #e23744;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.retry-button:hover {
    background: #c73037;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e9e9eb;
    border-radius: 50%;
    border-top-color: #60b246;
    animation: spin 1s ease-in-out infinite;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    color: #7e808c;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 16px;
    z-index: 10;
}

.modal-close:hover {
    background: #f0f0f5;
    color: #282c3f;
}

.modal-body {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.modal-form {
    padding: 40px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #282c3f;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: #7e808c;
    font-size: 16px;
    margin-bottom: 32px;
}

.create-account {
    color: #60b246;
    font-weight: 600;
    cursor: pointer;
}

.create-account:hover {
    text-decoration: underline;
}

.login-form,
.otp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    color: #7e808c;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    padding: 16px;
    border: 1px solid #e9e9eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #282c3f;
    outline: none;
}

.form-input:focus {
    border-color: #60b246;
    box-shadow: 0 0 0 2px rgba(96, 178, 70, 0.1);
}

.form-input::placeholder {
    color: #93959f;
}

.form-input:read-only {
    background: #f8f9fa;
    color: #7e808c;
}

.login-btn,
.verify-btn {
    background: #60b246;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover,
.verify-btn:hover {
    background: #4a9c37;
    transform: translateY(-1px);
}

.terms-text {
    color: #7e808c;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.terms-link {
    color: #282c3f;
    font-weight: 600;
    cursor: pointer;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Desktop Responsive Design */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }

    .mobile-title {
        display: none;
    }

    .desktop-header {
        display: block;
    }

    .desktop-title {
        display: block;
    }

    .search-section {
        top: 73px;
        display: none;
    }

    .search-section.show {
        display: block !important;
    }

    .main-content-section {
        padding: 32px 0;
    }

    .filter-section {
        padding: 0 0 20px 0;
    }

    .canteen-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 32px 24px;
    }

    .canteen-list {
        display: none;
    }

    .canteen-card {
        flex-direction: column;
        height: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        min-height: auto;
    }

    .canteen-card:hover {
        transform: translateY(-4px);
    }

    .card-image-container {
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }

    .card-image {
        border-radius: 12px;
    }

    .image-loading {
        border-radius: 12px;
    }

    .card-content {
        padding: 16px 0;
        background: transparent;
    }

    .wishlist-btn {
        top: 12px;
        right: 12px;
    }

    .canteen-name {
        font-size: 18px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .shimmer-card {
        flex-direction: column;
        min-height: auto;
    }

    .shimmer-image {
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }

    .shimmer-content {
        padding: 16px 0;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }

    .mobile-title {
        display: block;
    }

    .desktop-header {
        display: none;
    }

    .desktop-title {
        display: none;
    }

    .search-section {
        top: 61px;
        position: sticky;
        display: block;
    }

    .main-content-section {
        margin-top: 61px;
        padding: 16px 0;
    }

    .container {
        padding: 0;
    }

    .search-wrapper {
        margin: 0 16px;
    }

    .voice-search-btn {
        right: 15px;
    }

    .clear-search {
        right: 45px;
    }

    .filter-section {
        padding: 0 16px 20px 16px;
    }

    .results-count {
        padding: 0 16px;
    }

    .canteen-list {
        padding: 0 16px;
    }

    .empty-state,
    .error-state {
        padding: 0 16px;
    }

    .modal-form {
        padding: 20px 24px 32px 24px;
    }

    .modal-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .card-image-container {
        width: 100px;
        height: 100px;
    }

    .card-content {
        padding: 10px 12px;
    }

    .canteen-name {
        font-size: 15px;
        font-weight: 700;
    }

    .card-info {
        font-size: 13px;
        gap: 8px;
    }

    .cuisine-info,
    .location-info {
        font-size: 13px;
    }

    .wishlist-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .shimmer-image {
        width: 100px;
        height: 100px;
    }

    .shimmer-content {
        padding: 10px 12px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.search-input:focus,
.mobile-location-btn:focus,
.mobile-signin-btn:focus,
.location-btn:focus,
.nav-item:focus,
.voice-search-btn:focus,
.clear-search:focus,
.filter-btn:focus,
.wishlist-btn:focus,
.empty-action:focus,
.retry-button:focus,
.modal-close:focus,
.form-input:focus,
.login-btn:focus,
.verify-btn:focus {
    outline: 2px solid #60b246;
    outline-offset: 2px;
}


/* Footer Styles */
.chefo-footer {
  background-color: #f8f8f8; /* Light grey background */
  padding: 40px 20px;
  text-align: left; /* Changed from center to left */
  border-top: 1px solid #e9e9eb;
}

.chefo-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Main heading text */
.footer-live-it-up {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(83, 83, 83, 0.8); /* Slight transparency */
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Subtext */
.footer-crafted-with {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(126, 128, 140, 0.7); /* Slight transparency */
  line-height: 1.5;
}

.footer-heart {
  color: #e23744;
  margin: 0 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chefo-footer {
    padding: 30px 16px;
  }
  .footer-live-it-up {
    font-size: 36px;
  }
  .footer-crafted-with {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .chefo-footer {
    padding: 20px 16px;
  }
  .footer-live-it-up {
    font-size: 28px;
  }
  .footer-crafted-with {
    font-size: 14px;
  }
}
