/**
 * @package     Joomla.Site
 * @subpackage  mod_padre_winners
 *
 * @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-winners {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* Alert messages */
.mod-padre-winners .alert {
    margin: 0;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid;
}

.mod-padre-winners .alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.mod-padre-winners .alert-danger {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* Winners header */
.mod-padre-winners .winners-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.mod-padre-winners .winners-title {
    color: #495057;
    font-weight: 600;
    margin: 0;
    font-size: 1.4rem;
}

/* Winners list */
.mod-padre-winners .winners-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Winner items */
.mod-padre-winners .winner-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid;
    background: #f8f9fa;
    transition: transform 0.2s ease;
}

.mod-padre-winners .winner-item:hover {
    transform: translateX(5px);
}

/* Position badges */
.mod-padre-winners .position-badge {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 1rem;
}

.mod-padre-winners .first-place {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fff9c4 0%, #ffeaa7 100%);
}

.mod-padre-winners .first-place .position-badge {
    background: #ffd700;
    color: #333;
}

.mod-padre-winners .second-place {
    border-left-color: #c0c0c0;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
}

.mod-padre-winners .second-place .position-badge {
    background: #c0c0c0;
    color: #333;
}

.mod-padre-winners .third-place {
    border-left-color: #cd7f32;
    background: linear-gradient(135deg, #fdf4e3 0%, #f4e4bc 100%);
}

.mod-padre-winners .third-place .position-badge {
    background: #cd7f32;
    color: white;
}

.mod-padre-winners .fourth-place {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mod-padre-winners .fourth-place .position-badge {
    background: #6c757d;
    color: white;
}

/* Team info */
.mod-padre-winners .team-info {
    flex: 1;
}

.mod-padre-winners .team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.mod-padre-winners .team-city {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

/* Game score */
.mod-padre-winners .game-score {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Game information */
.mod-padre-winners .game-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.mod-padre-winners .game-details {
    color: #6c757d;
    font-size: 0.9rem;
}

.mod-padre-winners .game-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mod-padre-winners .game-date {
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .mod-padre-winners .winner-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .mod-padre-winners .position-badge {
        width: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .mod-padre-winners .game-score {
        margin-top: 0.5rem;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .mod-padre-winners {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .mod-padre-winners .winners-title {
        color: #e2e8f0;
    }
    
    .mod-padre-winners .winner-item {
        background: #4a5568;
    }
    
    .mod-padre-winners .team-name {
        color: #e2e8f0;
    }
    
    .mod-padre-winners .team-city {
        color: #a0aec0;
    }
    
    .mod-padre-winners .game-score {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .mod-padre-winners .game-details {
        color: #a0aec0;
    }
}