/* Home Page Styles - Premium Design */

/* =====================
   HERO SECTION - Premium Enhanced
   ===================== */
.hero {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 50%, #990000 100%);
    color: white;
    padding: 5em 0 6em 0;
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Floating circles */
.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 25em;
    height: 25em;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-1.25em) scale(1.05);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: var(--font-weight-black);
    margin-bottom: 0.4em;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 0.25em 1.5em rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.25em);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.25em;
    margin-bottom: 2.5em;
    opacity: 0.95;
    font-weight: var(--font-weight-normal);
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-container {
    max-width: 45em;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.search-bar {
    display: flex;
    gap: 1em;
    background: white;
    padding: 0.75em;
    border-radius: 6.25em;
    box-shadow:
        0 1.25em 3.75em rgba(0, 0, 0, 0.3),
        0 0.5em 1em rgba(0, 0, 0, 0.15);
    align-items: center;
    transition: all var(--transition-normal);
}

.search-bar:hover {
    transform: translateY(-0.125em);
    box-shadow:
        0 1.5em 4em rgba(0, 0, 0, 0.35),
        0 0.75em 1.25em rgba(0, 0, 0, 0.2);
}

.search-bar .address-input-wrapper {
    flex: 1;
    position: relative;
}

/* Address Suggestions Dropdown */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1em;
    box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.15);
    margin-top: 0.5em;
    max-height: 20em;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    animation: slideDown 0.2s ease-out;
}

.address-suggestions::-webkit-scrollbar {
    width: 0.375em;
}

.address-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 1em 1em 0;
}

.address-suggestions::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 0.375em;
}

.address-suggestions::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.5em);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.875em 1.25em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 0.0625em solid #f0f0f0;
}

.suggestion-item:first-child {
    border-radius: 1em 1em 0 0;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 1em 1em;
}

.suggestion-item:hover,
.suggestion-item.suggestion-active {
    background-color: #f8f9fa;
    padding-left: 1.5em;
}

.suggestion-item.suggestion-loading,
.suggestion-item.suggestion-no-results {
    cursor: default;
    color: #5f6368;
}

.suggestion-item.suggestion-loading:hover,
.suggestion-item.suggestion-no-results:hover {
    background-color: white;
    padding-left: 1.25em;
}

.suggestion-item.suggestion-loading .suggestion-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

.suggestion-item.suggestion-current-location {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 0.125em solid #dee2e6;
    font-weight: 500;
}

.suggestion-item.suggestion-current-location:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.suggestion-item.suggestion-current-location .suggestion-icon {
    color: #FF0000;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

.suggestion-icon {
    font-size: 1.125em;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.suggestion-item:hover .suggestion-icon,
.suggestion-item.suggestion-active .suggestion-icon {
    transform: scale(1.2);
}

.suggestion-text {
    font-size: 0.9375em;
    color: #202124;
    flex: 1;
    line-height: 1.4;
}

.suggestion-text strong {
    color: #FF0000;
    font-weight: 600;
}

.search-bar .address-input-wrapper::before {
    content: '📍';
    position: absolute;
    left: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25em;
    z-index: 1;
}

.search-bar .address-input {
    border: none;
    padding: 1em 1.5em 1em 3.5em;
    font-size: 1em;
    border-radius: 3.125em;
    background: transparent;
}

.search-bar .address-input::placeholder {
    color: #999;
}

.search-bar .address-input:focus {
    box-shadow: none;
    outline: none;
}

.search-bar .btn {
    padding: 1em 3em;
    white-space: nowrap;
    font-weight: 700;
    font-size: 1em;
    border-radius: 3.125em;
    background: var(--text-dark);
    color: white;
    box-shadow: 0 0.25em 0.875em rgba(0, 0, 0, 0.2);
}

.search-bar .btn:hover {
    background: var(--text-primary);
    transform: translateY(-0.125em);
    box-shadow: var(--shadow-lg);
}

/* =====================
   PROMOTIONAL SECTION
   ===================== */
.promo-section {
    padding: 2em 0;
    background: var(--bg-white);
}

/* =====================
   PROMO & FEATURES COMBINED SECTION
   ===================== */
.promo-features-section {
    padding: 2.5em 0;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.promo-features-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5em;
    align-items: center;
}

/* Promo Column (Left) */
.promo-column {
    position: relative;
}

/* Features Horizontal (Right) */
.features-horizontal {
    display: flex;
    gap: 1em;
}

.feature-card-horizontal {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5em 1em;
    background: var(--bg-white);
    border-radius: 1em;
    border: 0.0625em solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 10em;
}

.feature-card-horizontal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1em;
    padding: 0.125em;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card-horizontal:hover::before {
    opacity: 1;
}

.feature-card-horizontal:hover {
    box-shadow: 0 0.75em 1.5em rgba(0, 0, 0, 0.1);
    transform: translateY(-0.3em);
}

.feature-card-horizontal .feature-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
    filter: drop-shadow(0 0.25em 0.5em rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.feature-card-horizontal:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-card-horizontal .feature-content {
    width: 100%;
}

.feature-card-horizontal h3 {
    margin: 0 0 0.4em 0;
    font-size: 1.125em;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-card-horizontal p {
    color: var(--text-medium);
    font-size: 0.875em;
    line-height: 1.4;
    margin: 0;
}

/* Old Styles - Keep for backward compatibility */
.features-column {
    position: relative;
    display: flex;
    flex-direction: column;
}

.features-column h2 {
    font-size: 1.75em;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1em;
}

.features-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 0.875em;
    flex: 1;
}

.feature-card-compact {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em 1.25em;
    background: var(--bg-white);
    border-radius: 1em;
    border: 0.0625em solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1em;
    padding: 0.125em;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card-compact:hover::before {
    opacity: 1;
}

.feature-card-compact:hover {
    box-shadow: 0 0.75em 1.5em rgba(0, 0, 0, 0.08);
    transform: translateX(0.5em);
}

.feature-card-compact .feature-icon {
    font-size: 2.25em;
    flex-shrink: 0;
    filter: drop-shadow(0 0.25em 0.5em rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.feature-card-compact:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-content {
    flex: 1;
}

.feature-card-compact h3 {
    margin: 0 0 0.25em 0;
    font-size: 1.0625em;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-card-compact p {
    color: var(--text-medium);
    font-size: 0.875em;
    line-height: 1.4;
    margin: 0;
}

/* =====================
   FEATURES SECTION (Old - Keep for fallback)
   ===================== */
.features {
    padding: 3em 0;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.features h2 {
    margin-bottom: 2em;
    font-size: 2em;
    font-weight: 800;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16.25em, 1fr));
    gap: 2em;
}

.feature-card {
    text-align: center;
    padding: 2em 1.5em;
    background: var(--bg-white);
    border-radius: 1.5em;
    border: 0.0625em solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5em;
    padding: 0.125em;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    box-shadow: 0 1.25em 2.5em rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5em);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 1em;
    display: block;
    filter: drop-shadow(0 0.25em 0.75em rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
    margin-bottom: 0.75em;
    font-size: 1.125em;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.9375em;
    line-height: 1.6;
    margin: 0;
}

/* =====================
   CUISINE SECTION
   ===================== */
.cuisines {
    padding: 3em 0;
    background: var(--bg-white);
}

.cuisines h2 {
    margin-bottom: 1.75em;
    font-size: 2em;
    font-weight: 800;
    color: var(--text-dark);
}

.cuisine-scroll-container {
    position: relative;
    overflow: hidden;
    margin: 0 -1.25em;
    padding: 0 1.25em;
}

.cuisine-grid {
    display: flex;
    gap: 1.25em;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1.25em;
}

.cuisine-grid::-webkit-scrollbar {
    display: none;
}

.cuisine-card {
    min-width: 9em;
    height: 9em;
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border: none;
    border-radius: 1.25em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0.25em 0.75em rgba(0, 0, 0, 0.1);
}

.cuisine-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cuisine-card:hover::before {
    opacity: 1;
}

.cuisine-card:hover {
    transform: translateY(-0.5em) scale(1.02);
    box-shadow: 0 0.75em 1.75em rgba(0, 0, 0, 0.15);
}

.cuisine-card:nth-child(2) {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.cuisine-card:nth-child(3) {
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
}

.cuisine-card:nth-child(4) {
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%);
}

.cuisine-card:nth-child(5) {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.cuisine-card:nth-child(6) {
    background: linear-gradient(135deg, #FD6585 0%, #0D25B9 100%);
}

.cuisine-card:nth-child(7) {
    background: linear-gradient(135deg, #FFD194 0%, #D1913C 100%);
}

.cuisine-card:nth-child(8) {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
}

.cuisine-icon {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    display: block;
    filter: drop-shadow(0 0.125em 0.5em rgba(0, 0, 0, 0.2));
}

.cuisine-card .cuisine-name {
    font-size: 0.9375em;
    font-weight: 700;
    color: white;
    text-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* =====================
   RESTAURANTS SECTION - Material Design
   ===================== */
.popular-restaurants {
    padding: 3em 0 4em 0;
    background: #FAFAFA;
}

.popular-restaurants h2 {
    font-size: 1.75em;
    font-weight: 600;
    color: #202124;
    letter-spacing: -0.01em;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75em;
}

.section-header .view-all {
    color: var(--info);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.section-header .view-all:hover {
    color: var(--info);
    gap: var(--space-3);
}

/* Grid Override for Better Cards - Material Design */
.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(18.75em, 1fr));
    gap: var(--space-6);
}

/* =====================
   RESPONSIVE STYLES
   ===================== */
@media (max-width: 64em) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .promo-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .features-horizontal {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
        gap: var(--space-8);
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(17.5em, 1fr));
    }
}

@media (max-width: 48em) {
    .hero {
        padding: 3.5em 0 4em 0;
    }

    .hero h1 {
        font-size: 2.25em;
    }

    .hero p {
        font-size: 1em;
    }

    .promo-features-section {
        padding: 2em 0;
    }

    .promo-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .features-horizontal {
        flex-direction: column;
        gap: 0.875em;
    }

    .feature-card-horizontal {
        min-height: auto;
        padding: 1.25em 1em;
    }

    .feature-card-horizontal .feature-icon {
        font-size: 2.5em;
    }

    .feature-card-horizontal h3 {
        font-size: 1em;
    }

    .features-column h2 {
        font-size: 1.5em;
        margin-bottom: 1.25em;
    }

    .feature-card-compact {
        padding: 1em 1.25em;
    }

    .feature-card-compact .feature-icon {
        font-size: 2em;
    }

    .feature-card-compact h3 {
        font-size: 1em;
    }

    .feature-card-compact p {
        font-size: 0.875em;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 1.5em;
        padding: 1em;
    }

    .search-bar .address-input-wrapper {
        width: 100%;
    }

    .address-suggestions {
        position: fixed;
        left: 1em;
        right: 1em;
        max-height: 15em;
    }

    .search-bar .address-input {
        padding: 1em 1.5em 1em 3.5em;
    }

    .search-bar .btn {
        width: 100%;
        padding: 1em;
    }

    .features h2,
    .cuisines h2,
    .popular-restaurants h2 {
        font-size: 1.75em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .feature-card {
        padding: 1.75em 1.25em;
    }

    .cuisine-grid {
        gap: 1em;
    }

    .cuisine-card {
        min-width: 8em;
        height: 8em;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
}

@media (max-width: 30em) {
    .hero {
        padding: 2.5em 0 3em 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }

    .cuisine-card {
        min-width: 7em;
        height: 7em;
    }

    .cuisine-icon {
        font-size: 2.5rem;
    }

    .cuisine-card .cuisine-name {
        font-size: 0.9375rem;
    }
}