/* Home Page Styles for Football Contest 2025 */

.welcome-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-title i {
    color: #f4a261;
    margin-right: 1rem;
    animation: football-spin 3s ease-in-out infinite;
}

.welcome-subtitle {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.status-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
}

.status-item.working {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left: 4px solid #28a745;
}

.status-item.working i {
    color: #28a745;
}

.status-item.isolated {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left: 4px solid #ffc107;
}

.status-item.isolated i {
    color: #ffc107;
}

.status-item h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #2a2a2a;
}

.status-item span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #6c757d;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-item.current .timeline-marker {
    background: #28a745;
    box-shadow: 0 0 0 2px #28a745;
    animation: pulse-green 2s ease-in-out infinite;
}

.timeline-content h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #2a2a2a;
}

.timeline-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Button Enhancements */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1dad8a 100%);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.card-header h5 {
    margin: 0;
    color: #2a2a2a;
}

.card-header i {
    color: #1a472a;
    margin-right: 0.5rem;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left: 4px solid #28a745;
}

.alert h5 {
    color: #1a472a;
    font-weight: 600;
}

.alert h5 i {
    color: #28a745;
    margin-right: 0.5rem;
}

/* Animations */
@keyframes football-spin {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 2px #28a745, 0 0 0 4px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 0 2px #28a745, 0 0 0 8px rgba(40, 167, 69, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.25rem;
    }
    
    .welcome-header {
        padding: 1.5rem 0;
    }
    
    .status-grid {
        gap: 0.75rem;
    }
    
    .status-item {
        padding: 0.75rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-title i {
        display: block;
        margin: 0 0 0.5rem 0;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        margin-bottom: 0.5rem;
    }
}

/* Focus states for accessibility */
.btn:focus,
.card:focus-within {
    outline: 3px solid rgba(0, 123, 255, 0.3);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .welcome-header {
        background: none !important;
        box-shadow: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .btn {
        display: none !important;
    }
}