/* Fixtures Styles */
.fixtures-month {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.fixtures-month-header {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    user-select: none;
    border-bottom: 1px solid #34495e;
}

.fixtures-month-header:hover {
    background-color: #34495e;
}

.fixtures-month-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fixtures-month-header .collapse-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fixtures-month-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.fixtures-month-content {
    padding: 20px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.fixtures-month-content.collapsed {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
}

.gameweek {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gameweek-header {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    user-select: none;
}

.gameweek-header:hover {
    background-color: #2980b9;
}

.gameweek-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gameweek-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gameweek-date {
    font-size: 0.85rem;
    color: #ffffff;
    opacity: 1;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gameweek-header .collapse-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.gameweek-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.gameweek-content {
    padding: 15px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.gameweek-content.collapsed {
    max-height: 0;
    padding: 0 15px;
    opacity: 0;
}

.fixture {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.fixture:hover {
    background-color: #e8f4f8;
    transform: translateX(2px);
}

.fixture.played {
    border-left-color: #27ae60;
    background-color: #e8f5e8;
}

.fixture.played:hover {
    background-color: #d4edda;
}

.fixture-teams {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.fixture-team.home {
    justify-content: flex-end;
    text-align: right;
}

.fixture-team.away {
    justify-content: flex-start;
    text-align: left;
}

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

.fixture-vs {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.fixture-result {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
}

.fixture-score {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    min-width: 40px;
    text-align: center;
}

.fixture-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fixture-input input {
    width: 40px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 0.9rem;
}

.fixture-input button {
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.fixture-input button:hover {
    background-color: #2980b9;
}

.edit-result-btn {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.edit-result-btn:hover {
    background-color: #e67e22;
}

.cancel-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #c0392b;
}

.update-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.update-btn:hover {
    background-color: #229954;
}

.fixture-date {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-left: 10px;
    min-width: 80px;
    text-align: right;
}

/* Compact Fixtures Design */
.fixtures-list.compact {
    max-width: 100%;
}

.month-group.compact {
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.month-header.compact {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.month-header.compact:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.month-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.month-stats {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.fixture-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

.gameweek-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

.month-content.collapsed {
    display: none;
}

.month-content {
    padding: 0;
}

.gameweek-sections.compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.gameweek-group.compact {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.gameweek-header.compact {
    background: #f8f9fa;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    user-select: none;
}

.gameweek-header.compact:hover {
    background: #e9ecef;
}

.gameweek-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gameweek-title h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.gameweek-info {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: #6c757d;
}

.gameweek-content.collapsed {
    display: none;
}

.gameweek-content {
    padding: 0;
}

.fixture-item.compact {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.fixture-item.compact:hover {
    background: #f8f9fa;
}

.fixture-item.compact:last-child {
    border-bottom: none;
}

.fixture-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.fixture-status.completed {
    background: #d4edda;
    color: #155724;
}

.fixture-status.scheduled {
    background: #fff3cd;
    color: #856404;
}

.fixture-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.fixture-teams.compact {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.fixture-team.home {
    justify-content: flex-end;
}

.fixture-team.away {
    justify-content: flex-start;
}

.fixture-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
}

.team-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
}

.fixture-score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.fixture-score {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
}

.fixture-vs {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.fixture-actions.compact {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.fixture-actions.compact button {
    padding: 4px 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.edit-fixture {
    background: #007bff;
    color: white;
}

.edit-fixture:hover {
    background: #0056b3;
}

.delete-fixture {
    background: #dc3545;
    color: white;
}

.delete-fixture:hover {
    background: #c82333;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.month-content:not(.collapsed) .toggle-icon,
.gameweek-content:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

/* Mobile Responsive for Compact Design */
@media (max-width: 768px) {
    .month-header.compact {
        padding: 10px 12px;
    }
    
    .month-title h3 {
        font-size: 1rem;
    }
    
    .month-stats {
        flex-direction: column;
        gap: 4px;
        font-size: 0.8rem;
    }
    
    .gameweek-header.compact {
        padding: 8px 10px;
    }
    
    .gameweek-title h4 {
        font-size: 0.9rem;
    }
    
    .fixture-item.compact {
        padding: 6px 8px;
    }
    
    .fixture-teams.compact {
        gap: 8px;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
    
    .fixture-score-container {
        min-width: 50px;
    }
    
    .fixture-actions.compact {
        gap: 2px;
    }
    
    .fixture-actions.compact button {
        padding: 3px 5px;
        font-size: 0.75rem;
    }
}
