/* Site.css - Ana sayfa (Hero, Search, Popular, Category, CTA) */

/* APP */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
}

/* HERO */
.hero {
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-light));
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0 72px;
}

@media (min-width: 900px) {
    .hero__inner {
        flex-direction: row;
        align-items: center;
        gap: 56px;
        padding: 52px 24px 96px;
    }
}

.hero__left {
    flex: 1;
}

.hero__eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .9;
    margin: 0 0 8px;
}

.hero__title {
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}

.hero__lead {
    font-size: 15px;
    max-width: 480px;
    line-height: 1.6;
    opacity: .95;
    margin: 0 0 18px;
}

/* Toggle buttons (aria-pressed) */
.hero-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px;
    border-radius: 999px;
    gap: 4px;
    margin-bottom: 16px;
}

.hero-toggle__button {
    border-radius: 999px;
    border: none;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #e7ffe9;
    opacity: .85;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

    .hero-toggle__button:hover {
        background: rgba(255, 255, 255, 0.22);
    }

.hero-toggle__icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.hero-toggle__button.is-active {
    background: #ffffff;
    color: #25692A;
    opacity: 1;
}

    .hero-toggle__button.is-active .hero-toggle__icon {
        background: #E6F7E6;
        color: #25692A;
    }

/* Benefits (fade) */
.hero-benefits {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: max-height 260ms ease, opacity 420ms ease, transform 420ms ease;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

    .hero-benefits li::before {
        content: "•";
        margin-right: 6px;
    }

    .hero-benefits.is-active {
        max-height: 260px;
        opacity: 1;
        transform: translateY(0);
    }

/* HERO: görseller üst üste + fade */
.hero__right {
    flex: 1;
    display: grid;
    place-items: center;
}

    .hero__right > div {
        grid-area: 1 / 1;
        display: grid;
        place-items: center;
    }

    .hero__right img {
        display: block;
        width: 100%;
        max-width: 520px;
        height: auto;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 280ms ease, transform 280ms ease;
        pointer-events: none;
    }

        .hero__right img.is-active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

/* Dalgalı alt */
.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    line-height: 0;
}

    .hero-wave svg {
        width: 100%;
        height: 80px;
        display: block;
    }

/* SEARCH SECTION */
.section--search {
    background: var(--color-bg);
}

.search-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 900px) {
    .search-layout {
        flex-direction: row;
        align-items: center;
        gap: 44px;
    }
}

.search-layout__text {
    flex: 1.1;
}

.search-form {
    margin-top: 14px;
    margin-bottom: 14px;
}

.search-form__row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 600px) {
    .search-form__row {
        flex-direction: row;
        align-items: center;
    }
}

.search-input {
    flex: 1;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input__icon {
    font-size: 15px;
}

.search-input input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #555555;
    background: transparent;
}

    .search-input input::placeholder {
        color: #B5B5B5;
    }

.search-form__button {
    align-self: flex-start;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #ECE1D6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #654B33;
    cursor: pointer;
}

.chip__icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--color-primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Map card */
.search-layout__map {
    flex: 1;
    display: flex;
    justify-content: center;
}

.map-card {
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.map-card__iframe {
    width: 100%;
    height: 260px;
    border: 0;
}

/* POPULAR RESTAURANTS */
.section--popular {
    background: var(--color-bg);
}

.popular-grid {
    display: grid;
    gap: 22px;
}

@media (min-width: 900px) {
    .popular-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.restaurant-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .restaurant-card img {
        height: 170px;
        object-fit: cover;
    }

.restaurant-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.restaurant-card__name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.restaurant-card__tags {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0;
}

.restaurant-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    color: #666666;
}

.restaurant-card__icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--color-primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 4px;
}

.restaurant-card__footer {
    padding: 0 16px 14px;
}

/* CATEGORIES */
.section--categories {
    background: var(--color-bg);
}

.category-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 720px) {
    .category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.category-card {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    padding: 18px 14px 16px;
    text-align: center;
}

.category-card__image {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto 10px;
}

.category-card__name {
    font-weight: 600;
    margin: 0 0 4px;
}

.category-card__count {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0;
}

/* CTA */
.cta {
    background: var(--color-secondary-light);
    color: #ffffff;
}

.cta__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 24px;
}

.cta__title {
    font-size: 24px;
    margin: 0 0 4px;
}

.cta__subtitle {
    font-size: 14px;
    opacity: .9;
    margin: 0;
}

.cta__button {
    margin-top: 4px;
}

@media (min-width: 768px) {
    .cta__inner {
        flex-direction: row;
        align-items: center;
    }
}

/* Mobil ekstra */
@media (max-width: 600px) {
    .hero__inner {
        padding: 28px 24px 60px;
    }

    .hero__lead {
        max-width: 100%;
    }

    .site-footer {
        padding-top: 24px;
        padding-bottom: 16px;
    }
}
