/* ==========================================
   CHAMPIONSHIPS PAGE
   ==========================================
   Standings (leagues) listing page styles.
   Previously lived in standings.css before that file was repurposed as the
   shared standings-table stylesheet (assets/js/standings-renderer.js).
   Loaded by pages/standings.php.
   ========================================== */

.championships-page {
    min-height: 60vh;
}

.championships-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 24px 15px 48px;
}

.championships-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Search Bar */
.championships-search-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.championships-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

.championships-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    outline: none;
    transition: border-color 0.15s ease;
}

.championships-search-input::placeholder {
    color: var(--text-muted);
}

.championships-search-input:focus {
    border-color: var(--accent-teal);
}

/* No results */
.championships-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 16px;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.championships-no-results i {
    font-size: 28px;
    opacity: 0.4;
}

/* Tier Group */
.championships-tier-group {
    margin-bottom: 32px;
}

.championships-tier-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding-inline-start: 4px;
}

/* League List */
.championships-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* League Card */
.championships-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.championships-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-teal);
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Logo */
.championships-card-logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.championships-card-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Info */
.championships-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.championships-card-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.championships-card-country {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Arrow */
.championships-card-arrow {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.championships-card:hover .championships-card-arrow {
    color: var(--accent-teal);
    /* transform: translateX(2px); */
}

/* Responsive */
@media (max-width: 575.98px) {
    .championships-container {
        padding: 16px 12px 40px;
    }

    .championships-title {
        font-size: var(--font-size-lg);
        margin-bottom: 20px;
    }

    .championships-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .championships-card-logo {
        width: 30px;
        height: 30px;
    }

    .championships-card-logo img {
        width: 26px;
        height: 26px;
    }

    .championships-card-name {
        font-size: var(--font-size-xs);
    }
}
