/* Components/Landing/HeroSection.razor
   Public, non-isolated styles scoped exclusively to the match-hero namespace. */
.match-hero {
    --match-hero-color-white: #fff;
    --match-hero-color-primary: #8c1538;
    --match-hero-panel-radius: clamp(12px, 2vw, 18px);
    --match-hero-position: 64% center;
    --match-hero-position-mobile: 68% center;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    max-width: 100%;
    min-height: clamp(680px, 90vh, 900px);
    overflow: clip;
    color: var(--match-hero-color-white);
    background-color: #34151d;
    background-image:
        linear-gradient(180deg, rgba(24, 6, 12, 0.28) 0%, rgba(24, 6, 12, 0.52) 57%, rgba(15, 3, 8, 0.88) 100%),
        linear-gradient(90deg, rgba(28, 5, 12, 0.48) 0%, rgba(28, 5, 12, 0.14) 52%, rgba(28, 5, 12, 0.28) 100%),
        var(--match-hero-image);
    background-position: center, center, var(--match-hero-position);
    background-size: cover;
    background-repeat: no-repeat;
}

.match-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 50% 36%, transparent 0%, rgba(10, 2, 5, 0.2) 78%);
    pointer-events: none;
}

.match-hero__content {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: clamp(1rem, 2.4vh, 1.75rem);
    width: min(100%, 1540px);
    margin-inline: auto;
    padding: clamp(2rem, 6vh, 4.5rem) clamp(1rem, 4vw, 4rem) clamp(1.5rem, 4vh, 3rem);
    margin-bottom:2px;

}

.match-hero__logo {
    width: clamp(142px, 14vw, 190px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.48));
}

.match-hero__heading {
    width: min(100%, 90%);
    margin-top:50px;
    text-align: center;
    text-wrap: balance;
}

.match-hero__heading h1 {
    margin: 0;
    color: var(--match-hero-color-white);
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
}

.match-hero__heading h1:focus {
    outline: none;
}

.match-hero__heading p {
    max-width: 75%;
    margin: clamp(0.65rem, 1.4vh, 1rem) auto 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.05rem, 1.7vw, 1.42rem);
    font-weight: 500;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.match-hero__secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    margin-top: 0.75rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background: rgba(12, 3, 7, 0.3);
    color: var(--match-hero-color-white);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 160ms ease, border-color 160ms ease;
}

.match-hero__secondary-action:hover {
    border-color: rgba(255, 255, 255, 0.84);
    background: rgba(12, 3, 7, 0.54);
    color: var(--match-hero-color-white);
}

.match-hero__secondary-action:focus-visible {
    outline: 3px solid #f1c762;
    outline-offset: 3px;
}

.match-hero__search {
    width: 100%;
    padding: clamp(1rem, 2.1vw, 1.55rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--match-hero-panel-radius);
    background: rgba(18, 5, 10, 0.76);
    box-shadow: 0 24px 54px rgba(11, 2, 6, 0.32);
    backdrop-filter: blur(14px) saturate(118%);
    -webkit-backdrop-filter: blur(14px) saturate(118%);
}

.match-hero__fields {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) minmax(160px, 1.15fr) minmax(170px, 1.1fr) minmax(140px, 0.95fr) minmax(150px, 1fr) minmax(150px, 0.86fr);
    gap: clamp(0.75rem, 1.25vw, 1.15rem);
    align-items: start;
}

.match-hero__fields--with-age {
    grid-template-columns:
        minmax(120px, 0.75fr)
        minmax(210px, 1.35fr)
        minmax(145px, 1fr)
        minmax(160px, 1fr)
        minmax(130px, 0.85fr)
        minmax(140px, 0.9fr)
        minmax(140px, 0.8fr);
}

.match-hero__fields--registration {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.match-hero__field {
    display: grid;
    min-width: 0;
}

.match-hero__field label,
.match-hero__age-range legend {
    margin-bottom: 0.42rem;
    color: var(--match-hero-color-white);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
}

.match-hero__control {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0.7rem 0.84rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.96);
    color: #332325;
    font: inherit;
    line-height: 1.25;
    box-shadow: 0 2px 10px rgba(12, 3, 6, 0.16);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

select.match-hero__control {
    padding-right: 2rem;
}

.match-hero__control::placeholder {
    color: #6c6570;
    opacity: 1;
}

.match-hero__control:hover {
    border-color: rgba(255, 255, 255, 0.9);
    background-color: var(--match-hero-color-white);
}

.match-hero__control:focus-visible {
    border-color: #f1c762;
    background-color: var(--match-hero-color-white);
    box-shadow: 0 0 0 4px rgba(241, 199, 98, 0.36);
}

.match-hero__control.invalid {
    border-color: #ff9cae;
    box-shadow: 0 0 0 3px rgba(255, 119, 143, 0.2);
}

.match-hero__field .validation-message {
    min-height: 1.15em;
    margin-top: 0.3rem;
    color: #ffd5dd;
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.25;
}

.match-hero__consents {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
}

.match-hero__consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--match-hero-color-white);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.match-hero__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.12rem;
    accent-color: var(--match-hero-color-primary);
}

.match-hero__consent a {
    color: #f1c762;
    font-weight: 700;
}

.match-hero__consent .validation-message {
    display: block;
    margin-top: 0.25rem;
    color: #ffd5dd;
    font-size: 0.73rem;
    font-weight: 600;
}

.match-hero__alert {
    margin-bottom: 0.9rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.4;
}

.match-hero__alert--error {
    border-color: rgba(255, 156, 174, 0.7);
    background: rgba(103, 13, 32, 0.82);
    color: #fff1f4;
}

.match-hero__alert--success {
    border-color: rgba(139, 231, 176, 0.72);
    background: rgba(17, 91, 56, 0.84);
    color: #effff5;
}

.match-hero__submit {
    display: inline-flex;
    align-items: center;
    align-self: start;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    margin-bottom: 1.48rem;
    padding: 0.72rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--match-hero-color-primary), #b2293f);
    color: var(--match-hero-color-white);
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(92, 8, 34, 0.4);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.match-hero__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #a51943, #c93b52);
    box-shadow: 0 14px 30px rgba(92, 8, 34, 0.5);
}

.match-hero__submit:focus-visible {
    outline: 3px solid #f1c762;
    outline-offset: 3px;
}

.match-hero__submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.match-hero__fields--registration .match-hero__submit {
    margin-top: 0;
}

.match-hero__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: var(--match-hero-color-white);
    border-radius: 50%;
    animation: match-hero-spin 700ms linear infinite;
}

.match-hero__summary {
    color: #ffd5dd;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-hero__summary ul {
    margin: 0.8rem 0 0;
    padding-left: 1.25rem;
}

.match-hero__summary ul:empty {
    display: none;
}

.match-hero__age-range {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.match-hero__age-range legend {
    float: none;
    width: auto;
    padding: 0;
}

.match-hero__age-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.45rem;
}

.match-hero__age-range .validation-message {
    display: block;
    margin-top: 0.3rem;
    color: #ffd5dd;
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.25;
}

.match-hero__field--age label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.match-hero__trust {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(11, 2, 6, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.match-hero__trust ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 1220px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.match-hero__trust li {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
    min-width: 0;
    padding: clamp(1rem, 2.2vw, 1.4rem);
    text-align: center;
}

.match-hero__trust li + li::before {
    position: absolute;
    top: 26%;
    bottom: 26%;
    left: 0;
    width: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.24);
}

.match-hero__trust strong {
    color: #f1c762;
    font-size: clamp(0.9rem, 1.25vw, 1.05rem);
    font-weight: 800;
}

.match-hero__trust span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.82rem, 1.15vw, 0.98rem);
    font-weight: 600;
    text-overflow: ellipsis;
}

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

@media (min-width: 768px) {
    .match-hero__content {
        transform: translateY(clamp(2rem, 7vh, 4.5rem));
    }
}

@media (max-width: 1199.98px) {
    .match-hero__fields,
    .match-hero__fields--with-age,
    .match-hero__fields--registration {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .match-hero__submit {
        align-self: end;
    }
}

@media (max-width: 767.98px) {
    .match-hero {
        min-height: auto;
        background-image:
            linear-gradient(180deg, rgba(20, 4, 10, 0.4) 0%, rgba(20, 4, 10, 0.68) 42%, rgba(12, 2, 6, 0.94) 100%),
            linear-gradient(90deg, rgba(28, 5, 12, 0.42), rgba(28, 5, 12, 0.24)),
            var(--match-hero-image);
        background-position: center, center, var(--match-hero-position-mobile);
    }

    .match-hero__content {
        align-content: start;
        gap: 1.1rem;
        padding: 2rem 1rem 1.5rem;
    }

    .match-hero__heading h1 {
        font-size: clamp(2.2rem, 11vw, 3.5rem);
        letter-spacing: -0.04em;
    }

    .match-hero__heading p {
        font-size: clamp(1rem, 4.6vw, 1.2rem);
    }

    .match-hero__search {
        padding: 1rem;
        background: rgba(18, 5, 10, 0.83);
    }

    .match-hero__fields {
        grid-template-columns: 1fr;
        gap: 0.72rem;
    }

    .match-hero__consents {
        grid-template-columns: 1fr;
    }

    .match-hero__submit {
        width: 100%;
        min-height: 48px;
        margin-top: 0.15rem;
    }

    .match-hero__trust ul {
        grid-template-columns: 1fr;
        padding-block: 0.35rem;
    }

    .match-hero__trust li {
        justify-content: flex-start;
        padding: 0.72rem 1rem;
        text-align: left;
    }

    .match-hero__trust li + li::before {
        top: 0;
        right: 1rem;
        bottom: auto;
        left: 1rem;
        width: auto;
        height: 1px;
    }
}

@media (max-width: 420px) {
    .match-hero__logo {
        width: 136px;
    }

    .match-hero__content {
        padding-inline: 0.75rem;
    }

    .match-hero__search {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .match-hero__control,
    .match-hero__submit,
    .match-hero__secondary-action {
        scroll-behavior: auto;
        transition: none;
    }

    .match-hero__spinner {
        animation-duration: 1.4s;
    }
}
