/* All Match Types Directory */

.all-match-types-container {
    max-width: 1280px;
    margin: 2rem auto;
    padding:0 1.25rem;
    padding-bottom: 60px;
    color: #E9ECF2;
    font-family: 'sofia-sans', sans-serif;
}

/* Header */
.all-match-types-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.all-match-types-title {
    font-family: 'khand', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: #E6C97F;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    line-height: 1.05;
}

.all-match-types-subtitle {
    color: #A0A6BC;
    font-size: 1rem;
    margin: 0;
}

.all-match-types-count,
.all-match-types-total-matches {
    color: #E9ECF2;
    font-weight: 600;
}

/* Controls (search + sort) */
.all-match-types-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem auto 1.75rem;
    padding: 0.85rem 1rem;
    background: rgba(26, 36, 46, 0.6);
    border: 1px solid rgba(230, 201, 127, 0.18);
    border-radius: 10px;
}

.all-match-types-search {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
}

.all-match-types-search input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: rgba(10, 14, 19, 0.7);
    border: 1px solid rgba(160, 166, 188, 0.3);
    border-radius: 6px;
    color: #E9ECF2;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.all-match-types-search input[type="text"]:focus {
    outline: none;
    border-color: #E6C97F;
}

.all-match-types-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.all-match-types-sort-label {
    font-size: 0.85rem;
    color: #A0A6BC;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.all-match-types-sort select {
    padding: 0.5rem 0.75rem;
    background: rgba(10, 14, 19, 0.7);
    border: 1px solid rgba(160, 166, 188, 0.3);
    border-radius: 6px;
    color: #E9ECF2;
    font-size: 0.9rem;
    font-family: 'sofia-sans', sans-serif;
    cursor: pointer;
}

.all-match-types-submit,
.all-match-types-clear {
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #E6C97F 0%, #BFA45B 100%);
    color: #0A0E13;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.all-match-types-submit:hover,
.all-match-types-clear:hover {
    transform: translateY(-1px);
}

.all-match-types-clear {
    background: transparent;
    color: #A0A6BC;
    border: 1px solid rgba(160, 166, 188, 0.4);
}

.all-match-types-results-count {
    color: #A0A6BC;
    font-size: 0.95rem;
    margin: -0.5rem 0 1.25rem;
}

/* Grid */
.all-match-types-grid {
    display: grid;
    grid-template-columns: repeat(var(--mt-cols, 3), 1fr);
    gap: 1rem;
}

.all-match-types-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #A0A6BC;
    font-style: italic;
}

/* Card */
.all-match-types-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.2rem 1.25rem 1.1rem;
    background: linear-gradient(135deg, rgba(26, 36, 46, 0.92) 0%, rgba(18, 25, 33, 0.92) 100%);
    border: 1px solid rgba(230, 201, 127, 0.25);
    border-radius: 12px;
    color: #E9ECF2;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.all-match-types-card:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 201, 127, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.all-match-types-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.all-match-types-card-name {
    font-family: 'khand', sans-serif !important;
    font-size: 1.45rem;
    color: #E9ECF2;
    margin: 0;
    font-weight: 600 !important;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.all-match-types-card-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'khand', sans-serif;
    font-size: 1.6rem;
    color: #E9ECF2;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.all-match-types-card-count small {
    font-size: 0.7rem;
    color: #A0A6BC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 4px;
    font-family:'sofia-sans', sans-serif;
}

.all-match-types-card-description {
    color: #A0A6BC;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.all-match-types-card-cta {
    align-self: flex-start;
    color: #8A96C7;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    transition: color 0.2s ease;
}

.all-match-types-card-cta i {
    margin-left: 0.35rem;
    transition: transform 0.2s ease;
}

.all-match-types-card:hover .all-match-types-card-cta {
    color: #E6C97F;
}

.all-match-types-card:hover .all-match-types-card-cta i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 900px) {
    .all-match-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .all-match-types-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .all-match-types-search,
    .all-match-types-sort {
        width: 100%;
    }
    .all-match-types-sort select {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .all-match-types-grid {
        grid-template-columns: 1fr;
    }
    .all-match-types-card-name {
        font-size: 1.3rem;
    }
    .all-match-types-card-count {
        font-size: 1.4rem;
    }
}

/* Screen reader utility */
.all-match-types-controls .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
