/* Directory-specific landing styles. Loaded after landing.css so the directory and home preview can evolve independently. */

.lm-page-flow--directory {
    background: #f4f7fb;
}

.lm-directory-hero {
    min-height: 42vh;
}

.lm-directory-section {
    display: grid;
    gap: 1.1rem;
    padding: 1.25rem;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15,23,42,.07);
}

.lm-directory-toolbar {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, .62fr);
    gap: 1.5rem;
    align-items: end;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.lm-directory-toolbar h2 {
    margin: .8rem 0 .35rem;
    color: #0f172a;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.08;
    font-weight: 900;
}

.lm-directory-toolbar p {
    margin: 0;
    color: #52637a;
}

.lm-directory-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
}

.lm-directory-search > i {
    position: absolute;
    left: 1rem;
    z-index: 1;
    color: #64748b;
}

.lm-directory-search .form-control {
    min-height: 48px;
    padding-left: 2.6rem;
    border-color: rgba(15,23,42,.14);
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
}

.lm-directory-search .form-control:focus {
    border-color: rgba(14,165,233,.58);
    box-shadow: 0 0 0 3px rgba(14,165,233,.16);
}

.lm-directory-search .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.lm-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .9rem;
}

.lm-directory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    padding-top: .35rem;
}

.lm-directory-pagination > span {
    color: #52637a;
    font-size: .92rem;
    font-weight: 800;
}

.lm-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    padding: .6rem .95rem;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
    transition: transform .16s ease, border-color .16s ease, color .16s ease;
}

.lm-pagination-button:hover {
    transform: translateY(-1px);
    border-color: rgba(14,165,233,.36);
    color: #0369a1;
}

.lm-pagination-button.is-disabled {
    pointer-events: none;
    opacity: .46;
}

.lm-league-card--directory {
    min-height: 96px;
}

.lm-home-leagues {
    align-self: center;
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.04));
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.lm-home-leagues__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lm-home-leagues__header span,
.lm-home-leagues__header a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #7dd3fc;
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
}

.lm-home-leagues__header a {
    color: #dff7ff;
    text-transform: none;
}

.lm-home-leagues__intro h2 {
    margin: 0 0 .35rem;
    color: #ffffff;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.12;
    font-weight: 900;
}

.lm-home-leagues__intro p {
    margin: 0;
    color: #aab9cc;
    line-height: 1.55;
}

.lm-home-leagues__list {
    display: grid;
    gap: .75rem;
}

.lm-league-card--hero {
    min-height: 74px;
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    box-shadow: none;
    color: #ffffff;
}

.lm-league-card--hero:hover {
    border-color: rgba(56,189,248,.28);
    background: rgba(255,255,255,.1);
    color: #ffffff;
}

.lm-league-card--hero .lm-league-card__content strong {
    color: #ffffff;
}

.lm-league-card--hero .lm-league-card__content small {
    color: #b8c7d9;
}

.lm-league-card--hero .lm-league-card__brand {
    background: rgba(239,248,255,.92);
}

.lm-home-leagues__empty {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .9rem;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 16px;
    color: #c6d6ea;
}

.lm-league-preview {
    grid-template-columns: minmax(0, .82fr) minmax(360px, .7fr);
}

.lm-league-preview__link {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    margin-top: 1rem;
    color: #0369a1;
}

.lm-league-preview__list {
    display: grid;
    gap: .8rem;
}

.lm-directory-empty {
    display: grid;
    justify-items: center;
    gap: .65rem;
    padding: 3rem 1rem;
    border: 1px dashed rgba(15,23,42,.18);
    border-radius: 22px;
    background: #f8fafc;
    text-align: center;
}

.lm-directory-empty i {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef8ff;
    color: #0284c7;
    font-size: 1.35rem;
}

.lm-directory-empty h2 {
    margin: .35rem 0 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 850;
}

.lm-directory-empty p {
    max-width: 520px;
    margin: 0;
    color: #52637a;
}

.lm-directory-toolbar h2,
.lm-directory-empty h2 {
    margin-bottom: 1.15rem;
}

.lm-directory-toolbar h2 + p,
.lm-directory-empty h2 + p {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .lm-directory-toolbar,
    .lm-league-preview {
        grid-template-columns: 1fr;
    }

    .lm-directory-search {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .lm-directory-section {
        padding: 1rem;
        border-radius: 20px;
    }

    .lm-directory-search {
        grid-template-columns: 1fr;
    }

    .lm-directory-search > i {
        top: 16px;
    }

    .lm-directory-grid {
        grid-template-columns: 1fr;
    }

    .lm-directory-pagination {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .lm-directory-pagination > span {
        order: -1;
        text-align: center;
    }

    .lm-league-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

/* Keep the leagues directory hero aligned with the tighter internal landing pages. */
.lm-directory-hero {
    min-height: auto;
    padding-block: 2.4rem 3rem;
}

@media (max-width: 575.98px) {
    .lm-directory-hero {
        min-height: auto;
        padding-block: 2.35rem 2.6rem;
    }
}
