/* Mundial 2026 - Estilo Principal */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c28 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: white;
}

.logo h1 a:hover {
    color: #90EE90; /* Verde claro no hover */
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #90EE90; /* Verde claro */
}

.btn-login {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: rgba(255,255,255,0.3);
}

/* Contador Regressivo */
.countdown-container {
    display: flex;
    align-items: center;
}

.countdown {
    text-align: center;
    color: white;
    margin-right: 2rem;
}

.countdown-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-days {
    font-size: 1.8rem;
    font-weight: bold;
    color: #90EE90; /* Verde claro */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.countdown-text {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Animação do contador */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.countdown-days {
    animation: pulse 2s infinite;
}

/* Estilos para contador urgente */
.countdown-urgent .countdown-days {
    color: #ff6b6b; /* Vermelho para urgente */
    animation: urgent-pulse 1s infinite;
}

@keyframes urgent-pulse {
    0% { transform: scale(1); color: #ff6b6b; }
    50% { transform: scale(1.1); color: #dc3545; }
    100% { transform: scale(1); color: #ff6b6b; }
}

/* Estilos para contador ao vivo */
.countdown-live {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545; /* Vermelho para ao vivo */
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.countdown-hours {
    font-size: 1.2rem;
    font-weight: bold;
    color: #90EE90; /* Verde claro */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Menu do usuário */
.user-info {
    position: relative;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.user-name:hover {
    background: rgba(144,238,144,0.3); /* Verde claro no hover */
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.user-info:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.user-dropdown a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.user-dropdown a:hover {
    background: #f8f9fa;
}

.user-dropdown a:first-child {
    border-radius: 10px 10px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #e9ecef;
}

/* Botões de favorito */
.btn-favorite {
    background: #4a7c28; /* Verde campo */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-favorite:hover {
    background: #2d5016; /* Verde escuro */
    transform: translateY(-2px);
}

.btn-favorite.favorited {
    background: #2d5016; /* Verde escuro */
    color: white;
}

.btn-favorite.favorited:hover {
    background: #1a3009; /* Verde muito escuro */
}

/* Seções */
section {
    padding: 3rem 0;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2d5016; /* Verde escuro */
}

/* Jogos do Dia */
.today-matches {
    background: linear-gradient(135deg, #4a7c28 0%, #2d5016 100%);
    border-bottom: 3px solid #1a3009;
    padding: 0.5rem 0;
}

.matches-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.3rem 0;
    scroll-snap-type: x mandatory;
}

.match-card {
    min-width: 320px;
    background: white;
    border-radius: 15px;
    padding: 0.8rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.match-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid #f0f0f0;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid #f0f0f0;
}

.match-competition {
    font-weight: bold;
    color: #2d5016; /* Verde escuro */
    font-size: 0.9rem;
}

.match-status {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.team-flag {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid #e9ecef;
}

.team-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.2;
}

.match-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d5016; /* Verde escuro */
    margin: 0 0.8rem;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
    padding-top: 0.2rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
    color: #666;
}

.match-time {
    font-weight: 500;
}

.match-venue {
    font-weight: 500;
}

/* Jogos ao Vivo */
.live-matches {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-bottom: 3px solid #a71e2a;
    padding: 0.5rem 0;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.live-match {
    background: white;
    border-radius: 15px;
    padding: 0.8rem;
    border: 3px solid #dc3545;
    position: relative;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

.live-match:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.3);
}

.live-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff0000 0%, #dc3545 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.live-score {
    color: #ff0000 !important; /* Vermelho vivo */
    font-size: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.match-minute {
    background: #ff0000; /* Vermelho vivo */
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Notícias */
.news {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 2rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4a7c28 0%, #2d5016 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .news-image::after {
    opacity: 1;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #2d5016; /* Verde escuro */
    line-height: 1.3;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

.news-category {
    background: #4a7c28; /* Verde campo */
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Classificação */
.standings {
    background: white;
}

.standings-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.standings-container {
    display: flex;
    transition: transform 0.3s ease;
}

.standings-group {
    min-width: 100%;
    padding: 1.5rem;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e3c72;
}

.group-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3c72;
}

.group-info {
    font-size: 0.9rem;
    color: #666;
}

.standings-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th,
.standings-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.standings-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #1e3c72;
    font-size: 0.9rem;
}

.standings-table tr:hover {
    background: #f8f9fa;
}

.position {
    font-weight: bold;
    color: #1e3c72;
    text-align: center;
}

.team-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.standings-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-dot.active {
    background: #1e3c72;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 60, 114, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s;
}

.nav-button:hover {
    background: rgba(30, 60, 114, 1);
}

.nav-button.prev {
    left: 10px;
}

.nav-button.next {
    right: 10px;
}

.stats-cell {
    text-align: center;
    font-weight: 500;
}

.points {
    font-weight: bold;
    color: #28a745;
    text-align: center;
}

.qualified {
    background: #d4edda !important;
}

.qualified .position {
    color: #155724;
}

.eliminated {
    opacity: 0.6;
}

.eliminated .position {
    color: #6c757d;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Notificações */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.notification-message {
    font-weight: 500;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin-left: 1rem;
}

.notification-close:hover {
    color: #333;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-live {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff3cd 100%);
}

.notification-warning {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fff8e1 100%);
}

/* Animações e transições */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4a7c28; /* Verde campo */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d5016; /* Verde escuro */
}

/* Focus states */
button:focus,
a:focus {
    outline: 2px solid #4a7c28; /* Verde campo */
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav-button,
    .notification,
    .btn-login {
        display: none !important;
    }
    
    .match-card,
    .news-card,
    .live-match {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Loading e Info states */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    margin: 1rem 0;
}

.info {
    text-align: center;
    padding: 2rem;
    color: #17a2b8;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .matches-carousel {
        flex-direction: column;
    }
    
    .match-card {
        min-width: auto;
    }
    
    .live-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .standings-carousel {
        padding: 0 1rem;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .notifications-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    section {
        padding: 2rem 0;
    }
}
