/* Anasayfa: mavi sert kort + tenis topu sarısı.
   Tailwind çıktısı önceden derlendiği için bu sayfanın stilleri burada, mh- önekiyle duruyor. */

.mh {
    --mh-court: #0a55b4;
    --mh-court-deep: #003678;
    --mh-night: #001f47;
    --mh-ball: #d9f24b;
    --mh-ball-dark: #b9d42a;
    --mh-ink: #0f1f38;
    --mh-muted: #55657d;
    --mh-paper: #f5f7fb;
    --mh-line: rgba(255, 255, 255, 0.2);
    --mh-display: 'Barlow Condensed', 'Titillium Web', 'Segoe UI', sans-serif;
    overflow-x: clip;
}

/* ---------- Hero ---------- */

.mh-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(155deg, var(--mh-court) 0%, var(--mh-court-deep) 52%, var(--mh-night) 100%);
}

.mh-hero-court {
    position: absolute;
    top: -6%;
    right: -46%;
    width: 150%;
    max-width: none;
    pointer-events: none;
    transform: perspective(1400px) rotateX(56deg) rotateZ(-30deg);
    transform-origin: 50% 40%;
}

.mh-hero-court * {
    fill: none;
    stroke: var(--mh-line);
    stroke-width: 7;
    vector-effect: non-scaling-stroke;
}

.mh-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8.25rem 1rem 3.25rem;
}

.mh-title {
    margin: 0;
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(4rem, 19vw, 9.5rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.mh-title-line {
    display: block;
}

.mh-word {
    display: block;
    min-height: 0.9em;
    color: var(--mh-ball);
    white-space: nowrap;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.mh-word.is-long {
    font-size: 0.74em;
    line-height: 1.216;
}

.mh-word.is-longer {
    font-size: 0.56em;
    line-height: 1.607;
}

.mh-word.is-out {
    opacity: 0;
    transform: translateY(-0.18em) skewX(-6deg);
}

.mh-ball {
    display: inline-block;
    width: 0.2em;
    height: 0.2em;
    margin-left: 0.07em;
    border-radius: 50%;
    background: var(--mh-ball);
    box-shadow: inset -0.03em -0.03em 0 rgba(0, 0, 0, 0.14);
    transform-origin: 50% 100%;
    animation: mhBallDrop 1.1s cubic-bezier(0.3, 0, 0.5, 1) 0.2s both;
}

.mh-ball.is-bounce {
    animation: mhBallHop 0.55s ease-out;
}

@keyframes mhBallDrop {
    0% { transform: translateY(-3.4em); }
    42% { transform: translateY(0) scale(1.2, 0.72); }
    62% { transform: translateY(-0.95em) scale(0.94, 1.06); }
    80% { transform: translateY(0) scale(1.1, 0.85); }
    90% { transform: translateY(-0.26em); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes mhBallHop {
    0%, 100% { transform: translateY(0) scale(1); }
    15% { transform: translateY(0) scale(1.14, 0.82); }
    55% { transform: translateY(-0.55em) scale(0.96, 1.05); }
}

.mh-lead {
    max-width: 34rem;
    margin: 1.35rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
}

.mh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.mh-chip {
    padding: 0.5rem 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.mh-chip:hover {
    border-color: var(--mh-ball);
}

.mh-chip.is-active {
    border-color: var(--mh-ball);
    background: var(--mh-ball);
    color: var(--mh-night);
}

.mh-chip:focus-visible,
.mh-day input:focus-visible + span,
.mh-go:focus-visible,
.mh-picker:focus-visible,
.mh-card-go:focus-visible,
.mh-card-map:focus-visible {
    outline: 3px solid var(--mh-ball);
    outline-offset: 2px;
}

/* ---------- Seans bileti ---------- */

.mh-ticket-wrap {
    width: 100%;
    max-width: 30rem;
    filter: drop-shadow(0 22px 34px rgba(0, 15, 40, 0.42));
}

.mh-ticket {
    --mh-tear: 6.6rem;
    border-radius: 1.25rem;
    background: #fff;
    color: var(--mh-ink);
    -webkit-mask:
        radial-gradient(circle 0.8rem at 0 calc(100% - var(--mh-tear)), transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 0.8rem at 100% calc(100% - var(--mh-tear)), transparent 98%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle 0.8rem at 0 calc(100% - var(--mh-tear)), transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 0.8rem at 100% calc(100% - var(--mh-tear)), transparent 98%, #000) right / 51% 100% no-repeat;
}

.mh-ticket-body {
    padding: 1.4rem 1.35rem 1.35rem;
}

.mh-ticket-kicker {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: 1.625rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--mh-night);
}

.mh-ticket-kicker small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--mh-muted);
}

.mh-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mh-muted);
}

.mh-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0 1rem;
    border: 1.5px solid #d6deea;
    border-radius: 0.8rem;
    background: var(--mh-paper);
    color: var(--mh-ink);
    font-size: 1.0625rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.mh-picker:hover {
    border-color: var(--mh-court);
}

.hero-search-picker-wrap {
    position: relative;
}

.hero-search-picker-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-search-picker-caret {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--mh-muted);
}

.mh-days {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
}

.mh-days legend {
    padding: 0;
}

.mh-day {
    display: block;
    cursor: pointer;
}

.mh-day input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mh-day span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    padding: 0.4rem 0.15rem;
    border: 1.5px solid #d6deea;
    border-radius: 0.8rem;
    background: var(--mh-paper);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--mh-muted);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.mh-day b {
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: 1.625rem;
    line-height: 1;
    color: var(--mh-night);
}

.mh-day:hover span {
    border-color: var(--mh-court);
}

.mh-day input:checked + span {
    border-color: var(--mh-night);
    background: var(--mh-night);
    color: rgba(255, 255, 255, 0.82);
}

.mh-day input:checked + span b {
    color: var(--mh-ball);
}

.mh-ticket-stub {
    height: var(--mh-tear);
    display: flex;
    align-items: center;
    padding: 0 1.35rem;
    border-top: 2px dashed #cbd5e4;
}

.mh-go {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 3.5rem;
    border: 0;
    border-radius: 0.8rem;
    background: var(--mh-ball);
    color: var(--mh-night);
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s;
}

.mh-go i {
    font-size: 1.1rem;
    transition: transform 0.18s ease;
}

.mh-go:hover {
    background: var(--mh-ball-dark);
}

.mh-go:hover i {
    transform: translateX(4px);
}

/* ---------- Skor tabelası ---------- */

.mh-score {
    position: relative;
    z-index: 2;
    margin-top: -1.1rem;
    background: var(--mh-ball);
    color: var(--mh-night);
    transform: skewY(-1.1deg);
}

.mh-score-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.15rem 1rem;
    transform: skewY(1.1deg);
}

.mh-score-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.5rem;
    border-left: 2px solid rgba(0, 31, 71, 0.2);
}

.mh-score-cell:first-child {
    padding-left: 0;
    border-left: 0;
}

.mh-score-cell b {
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 0.95;
}

.mh-score-cell span {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
}

/* ---------- Üç adım ---------- */

.mh-steps {
    padding: 4.5rem 1rem 3.5rem;
    background: var(--mh-paper);
}

.mh-section-head {
    max-width: 1400px;
    margin: 0 auto 2.25rem;
}

.mh-h2 {
    margin: 0;
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(2.75rem, 8vw, 4.75rem);
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--mh-night);
}

.mh-section-head p {
    max-width: 36rem;
    margin: 0.75rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--mh-muted);
}

.mh-step-list {
    display: grid;
    gap: 1.75rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.mh-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 1rem;
    align-items: start;
}

.mh-step-no {
    grid-row: span 2;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mh-ball);
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: 1.875rem;
    color: var(--mh-night);
}

.mh-step h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--mh-ink);
}

.mh-step p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--mh-muted);
}

/* ---------- Tesisler ---------- */

.mh-venues {
    padding: 3.5rem 1rem 5rem;
    background: var(--mh-paper);
}

.mh-venue-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.mh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 21rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--mh-court-deep);
    color: #fff;
    isolation: isolate;
}

.mh-card-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    transition: transform 0.5s ease;
}

.mh-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 20, 48, 0.94) 0%, rgba(0, 20, 48, 0.55) 46%, rgba(0, 20, 48, 0.08) 100%);
}

/* Üzerine gelince saha çizgisi gibi beliren iç çerçeve */
.mh-card::after {
    content: "";
    position: absolute;
    inset: 0.7rem;
    border: 2px solid var(--mh-ball);
    border-radius: 0.8rem;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.mh-card:hover .mh-card-photo {
    transform: scale(1.05);
}

.mh-card:hover::after,
.mh-card:focus-within::after {
    opacity: 1;
    transform: scale(1);
}

.mh-card-no {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--mh-ball);
}

.mh-card-body {
    padding: 1.35rem 1.35rem 1.4rem;
}

.mh-card-title {
    margin: 0;
    font-family: var(--mh-display);
    font-style: italic;
    font-weight: 800;
    font-size: 2.125rem;
    line-height: 1;
    text-transform: uppercase;
}

.mh-card-address {
    display: -webkit-box;
    margin: 0.5rem 0 0;
    overflow: hidden;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.84);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mh-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mh-card-go,
.mh-card-map {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s;
}

.mh-card-go {
    border: 0;
    background: var(--mh-ball);
    color: var(--mh-night);
}

.mh-card-go:hover {
    background: var(--mh-ball-dark);
}

.mh-card-map {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
}

.mh-card-map:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ---------- Telefon: bilet ve "Seansları gör" ilk ekranda kalsın ---------- */

@media (max-width: 639px) {
    .mh-hero-inner {
        gap: 1.1rem;
        padding-top: 6.9rem;
        padding-bottom: 2.6rem;
    }

    .mh-title {
        font-size: clamp(2.75rem, 13.5vw, 4rem);
    }

    .mh-lead {
        display: none;
    }

    /* Branşlar tek satırda yana kayar */
    .mh-chips {
        flex-wrap: nowrap;
        margin: 0.85rem -1rem 0;
        padding: 0 1rem 0.15rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .mh-chips::-webkit-scrollbar {
        display: none;
    }

    .mh-chip {
        flex: 0 0 auto;
    }

    .mh-ticket {
        --mh-tear: 4.9rem;
    }

    .mh-ticket-body {
        padding: 1rem 1.1rem 0.9rem;
    }

    .mh-ticket-kicker {
        margin-bottom: 0.7rem;
    }

    .mh-picker {
        min-height: 3rem;
    }

    .mh-days {
        margin-top: 0.7rem;
    }

    .mh-day span {
        min-height: 3.5rem;
    }

    .mh-ticket-stub {
        padding: 0 1.1rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .mh-title {
        font-size: clamp(4.5rem, 12vw, 6.5rem);
    }
}

/* ---------- Geniş ekranlar ---------- */

@media (min-width: 640px) {
    .mh-hero-inner,
    .mh-score-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .mh-steps,
    .mh-venues {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .mh-venue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .mh-score-cell {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1.25rem;
    }

    .mh-score-cell span {
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .mh-hero-inner {
        grid-template-columns: minmax(0, 1fr) 27rem;
        align-items: center;
        gap: 3rem;
        min-height: 46rem;
        padding: 8.5rem 2.5rem 5rem;
    }

    .mh-hero-court {
        top: -18%;
        right: -22%;
        width: 92%;
    }

    .mh-ticket-wrap {
        justify-self: end;
        transform: rotate(1.4deg);
    }

    .mh-score-inner {
        padding: 1.35rem 2.5rem;
    }

    .mh-steps {
        padding: 6rem 2.5rem 4rem;
    }

    .mh-venues {
        padding: 4rem 2.5rem 6.5rem;
    }

    .mh-step-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
    }

    /* Adımlar arasında sekip giden topun izi */
    .mh-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: -1.1rem;
        left: 4.25rem;
        right: -1.75rem;
        height: 2.5rem;
        border-top: 2.5px dashed #a9b8cc;
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    }

    .mh-step h3,
    .mh-step p {
        grid-column: 2;
    }

    .mh-venue-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: minmax(18rem, auto);
        gap: 1.25rem;
    }

    .mh-card {
        grid-column: span 2;
        min-height: 0;
    }

    /* Mozaik: her altı kartta ilki büyük (solda 2 satır), ikisi yanında, üçü alt sırada */
    .mh-card:nth-child(6n + 1) {
        grid-column: span 4;
        grid-row: span 2;
    }

    .mh-card:nth-child(6n + 1) .mh-card-title {
        font-size: 3.25rem;
    }

    /* Kart sayısı altının katı değilse son kart boşluğu doldurur */
    .mh-card:nth-child(6n + 1):last-child {
        grid-column: span 6;
    }

    .mh-card:nth-child(6n + 2):last-child {
        grid-row: span 2;
    }

    .mh-card:nth-child(6n + 4):last-child {
        grid-column: span 6;
    }

    .mh-card:nth-child(6n + 5):last-child {
        grid-column: span 4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-ball,
    .mh-ball.is-bounce {
        animation: none;
    }

    .mh-word,
    .mh-card-photo,
    .mh-card::after,
    .mh-go i {
        transition: none;
    }
}
