/* 
 * vs_oponent.css - Styles for the Spartak vs Opponent page
 * Matches the site's existing design language
 */

/* Filter Controls */
.filter-controls {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.filter-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.toggle-switch:hover {
    background-color: #e0e0e0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    margin-right: 8px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .toggle-slider {
    background-color: #c00;
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 14px;
    white-space: nowrap;
}

/* Filtered rows */
tr.filtered {
    display: none;
}

/* General layout */
.all-box {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* VS Header section */
.vs-header {
    text-align: center;
    margin-bottom: 30px;
}

.vs-header h1 {
    margin-top: 15px;
    color: #222;
    font-size: 28px;
}

.team-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.spartak-logo {
    margin-right: 20px;
}

.opponent-logo {
    margin-left: 20px;
}

.vs-text {
    font-size: 24px;
    font-weight: bold;
    color: #c00;
    margin: 0 15px;
}

/* Stats summary */
.stats-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.stat-box {
    text-align: center;
    min-width: 100px;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #c00;
}

.stat-label {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* Games list */
.games-list {
    margin-bottom: 30px;
}

.games-list h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #c00;
    padding-bottom: 5px;
}

table.standard {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.standard th {
    background-color: #c00;
    color: white;
    padding: 10px;
    text-align: center;
}

table.standard td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table.standard tr.win td {
    background-color: #e8f5e9;
}

table.standard tr.loss td {
    background-color: #ffebee;
}

table.standard tr.draw td {
    background-color: #fff8e1;
}

table.standard tr:hover td {
    background-color: #f5f5f5;
}

.team-name {
    font-weight: bold;
    text-align: left;
}

.score {
    font-weight: bold;
    font-size: 16px;
}

.score a {
    color: #c00;
    text-decoration: none;
}

.score a:hover {
    text-decoration: underline;
}

/* Opponents list */
.intro-text {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.alphabet-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
}

.letter-link {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 3px;
    background-color: #c00;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
}

.letter-link:hover {
    background-color: #900;
}

.letter-group {
    margin-bottom: 30px;
}

.letter-heading {
    font-size: 24px;
    color: #c00;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.opponents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.opponent-item {
    background-color: #f8f8f8;
    border-radius: 5px;
    transition: transform 0.2s;
}

.opponent-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.opponent-link {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.opponent-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 10px;
}

.opponent-name {
    font-weight: bold;
}

/* Back link */
.back-link {
    margin-top: 20px;
}

.back-link a {
    display: inline-block;
    color: #c00;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border: 1px solid #c00;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-link a:hover {
    background-color: #c00;
    color: white;
}

/* Table responsive wrapper */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-summary {
        gap: 10px;
    }
    
    .stat-box {
        min-width: 80px;
        padding: 8px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .opponents-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .team-logos img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .opponents-grid {
        grid-template-columns: 1fr;
    }
    
    .alphabet-index {
        padding: 5px;
    }
    
    .letter-link {
        width: 25px;
        height: 25px;
        line-height: 25px;
        margin: 2px;
    }
    
    table.standard th, 
    table.standard td {
        padding: 5px;
        font-size: 14px;
    }
    
    .score {
        font-size: 14px;
    }
}
