/**
 * @package     Joomla.Site
 * @subpackage  mod_padre_scores
 *
 * @copyright   Copyright (C) 2025 Custom Development. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

/* Main module container */
.mod-padre-scores {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* Season header */
.mod-padre-scores .scores-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.mod-padre-scores .season-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1.4rem;
}

.mod-padre-scores .season-title small {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Matchday headers */
.mod-padre-scores .matchday-group {
    margin-bottom: 2rem;
}

.mod-padre-scores .matchday-header {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
    border-radius: 6px;
}

.mod-padre-scores .matchday-title {
    color: #495057;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.mod-padre-scores .matchday-description {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Match containers */
.mod-padre-scores .matches-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Match items */
.mod-padre-scores .match-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.mod-padre-scores .match-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.mod-padre-scores .match-item.recent-match {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.mod-padre-scores .match-item.status-completed {
    background: #f8f9fa;
}

.mod-padre-scores .match-item.status-today {
    border-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.mod-padre-scores .match-item.status-upcoming {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

/* Full format styles */
.mod-padre-scores .match-full {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mod-padre-scores .match-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mod-padre-scores .team-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    min-height: 60px;
}

.mod-padre-scores .team-row.winner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    font-weight: 600;
}

.mod-padre-scores .team-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mod-padre-scores .team-name {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

.mod-padre-scores .team-city {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.mod-padre-scores .team-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    min-width: 40px;
    text-align: center;
}

.mod-padre-scores .match-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 600;
}

.mod-padre-scores .vs-separator {
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 50%;
    min-width: 40px;
    text-align: center;
}

/* Match details */
.mod-padre-scores .match-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.mod-padre-scores .match-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mod-padre-scores .match-datetime {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.mod-padre-scores .match-location {
    font-size: 0.9rem;
    color: #6c757d;
}

.mod-padre-scores .match-status-full {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Compact format styles */
.mod-padre-scores .match-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mod-padre-scores .match-compact .match-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mod-padre-scores .match-compact .team-row {
    min-height: auto;
    padding: 0.5rem 0.75rem;
}

.mod-padre-scores .match-info-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    min-width: 120px;
}

.mod-padre-scores .match-info-compact .match-datetime {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    font-size: 0.8rem;
}

/* Minimal format styles */
.mod-padre-scores .match-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mod-padre-scores .teams-minimal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.mod-padre-scores .teams-minimal .team {
    font-size: 0.9rem;
    color: #495057;
}

.mod-padre-scores .teams-minimal .team.winner {
    font-weight: 600;
    color: #28a745;
}

.mod-padre-scores .score-separator {
    font-weight: 600;
    color: #007bff;
    padding: 0 0.5rem;
}

.mod-padre-scores .match-date-minimal {
    font-size: 0.8rem;
    color: #6c757d;
    min-width: 60px;
    text-align: right;
}

/* Status badges */
.mod-padre-scores .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mod-padre-scores .status-completed {
    background: #28a745;
    color: white;
}

.mod-padre-scores .status-today {
    background: #ffc107;
    color: #212529;
}

.mod-padre-scores .status-upcoming {
    background: #17a2b8;
    color: white;
}

.mod-padre-scores .status-postponed {
    background: #dc3545;
    color: white;
}

.mod-padre-scores .extra-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #6f42c1;
    color: white;
    text-transform: uppercase;
}

/* Match description */
.mod-padre-scores .match-description {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Responsive design */
@media (max-width: 768px) {
    .mod-padre-scores {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .mod-padre-scores .match-teams {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mod-padre-scores .match-separator {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .mod-padre-scores .match-details {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .mod-padre-scores .match-info-compact {
        align-items: stretch;
        min-width: auto;
    }
    
    .mod-padre-scores .match-info-compact .match-datetime {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mod-padre-scores .teams-minimal {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .mod-padre-scores .match-minimal {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .mod-padre-scores .team-row {
        padding: 0.5rem;
    }
    
    .mod-padre-scores .team-name {
        font-size: 0.9rem;
    }
    
    .mod-padre-scores .team-score {
        font-size: 1.25rem;
    }
    
    .mod-padre-scores .matchday-title {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .mod-padre-scores {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .mod-padre-scores .match-item {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .mod-padre-scores .match-item:hover {
        box-shadow: none;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-padre-scores .match-item {
    animation: fadeIn 0.5s ease-out;
}