/**
 * Archive Match Page Styles
 * Maç listeleme sayfası stilleri
 *
 * @package AylakSpor
 */

/* Archive Container */
.as-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Archive Header */
.as-archive-header {
    margin-bottom: 40px;
}

.as-archive-title-wrap {
    margin-bottom: 30px;
}

.as-archive-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, var(--as-primary), var(--as-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.as-archive-count {
    color: var(--as-text-muted);
    font-size: 14px;
    margin: 0;
}

/* Filter Tabs */
.as-archive-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.as-filter-status {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--as-radius);
    color: var(--as-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.as-filter-status:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--as-primary);
    transform: translateY(-2px);
}

.as-filter-status.active {
    background: linear-gradient(135deg, var(--as-primary), var(--as-accent));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.as-live-dot {
    width: 8px;
    height: 8px;
    background: var(--as-live);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Archive Content Layout */
.as-archive-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Sidebar */
.as-archive-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.as-archive-sidebar::-webkit-scrollbar {
    width: 6px;
}

.as-archive-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.as-archive-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.as-archive-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Filter Widget */
.as-filter-widget {
    background: var(--as-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--as-radius);
    padding: 20px;
}

.as-filter-widget-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--as-text);
}

.as-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--as-text);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.as-filter-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--as-primary);
    transform: translateX(5px);
}

.as-filter-item.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--as-primary);
    font-weight: 600;
}

.as-filter-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--as-text-muted);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.as-filter-item.active .as-filter-count {
    background: var(--as-primary);
    color: white;
}

.as-filter-more {
    color: var(--as-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.as-filter-more:hover {
    color: var(--as-accent);
}

/* Today's Matches Widget */
.as-today-widget .as-match-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.as-today-widget .as-match-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--as-primary);
}

.as-no-matches {
    text-align: center;
    color: var(--as-text-muted);
    font-size: 14px;
    padding: 20px;
}

/* Main Content */
.as-archive-main {
    min-height: 500px;
}

/* Matches List */
.as-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

/* Match List Item */
.as-match-list-item {
    background: var(--as-bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.as-match-list-item:last-child {
    border-bottom: none;
}

.as-match-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.as-match-list-item.is-live {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid var(--as-live);
}

.as-match-list-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

/* List Header */
.as-match-list-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.as-match-list-badges {
    flex-shrink: 0;
}

.as-match-list-league {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.as-match-list-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* List Teams */
.as-match-list-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.as-match-list-team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.as-match-list-team:last-child {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.as-match-list-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.as-match-list-team-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* Score */
.as-match-list-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--as-primary);
    min-width: 80px;
    justify-content: center;
}

.as-score-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
}

.as-score-vs {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

/* Matches Grid (Legacy) */
.as-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* No Results */
.as-no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--as-card-bg);
    border-radius: var(--as-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.as-no-results-icon {
    margin-bottom: 20px;
    color: var(--as-text-muted);
}

.as-no-results h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--as-text);
}

.as-no-results p {
    color: var(--as-text-muted);
    margin: 0 0 30px;
    font-size: 16px;
}

/* Responsive - List View */
@media (max-width: 768px) {
    .as-match-list-teams {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .as-match-list-team:last-child {
        flex-direction: row;
    }
    
    .as-match-list-score {
        order: -1;
        font-size: 20px;
    }
    
    .as-match-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .as-match-list-link {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .as-match-list-team-name {
        font-size: 14px;
    }
    
    .as-match-list-logo {
        width: 28px;
        height: 28px;
    }
    
    .as-match-list-score {
        font-size: 18px;
    }
}

/* Pagination Styles */
.as-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.as-pagination a,
.as-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--as-text);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.as-pagination a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--as-primary);
    transform: translateY(-2px);
}

.as-pagination a.active,
.as-pagination .current {
    background: linear-gradient(135deg, var(--as-primary), var(--as-accent));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.as-pagination-numbers {
    display: flex;
    gap: 5px;
}

.as-pagination-prev,
.as-pagination-next {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .as-archive-content {
        grid-template-columns: 1fr;
    }

    .as-archive-sidebar {
        position: static;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .as-matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .as-archive-container {
        padding: 20px 15px;
    }

    .as-archive-header {
        margin-bottom: 30px;
    }

    .as-archive-title {
        font-size: 24px;
    }

    .as-archive-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .as-filter-status {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .as-archive-sidebar {
        grid-template-columns: 1fr;
    }

    .as-matches-grid {
        grid-template-columns: 1fr;
    }

    .as-pagination {
        gap: 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .as-pagination a,
    .as-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .as-archive-title {
        font-size: 20px;
    }

    .as-filter-status {
        padding: 10px 16px;
        font-size: 13px;
    }

    .as-no-results {
        padding: 60px 20px;
    }

    .as-no-results h2 {
        font-size: 20px;
    }
}
