/*
Theme Name: Placar Final
Description: Tema minimalista para site de placar ao vivo de futebol
Version: 1.0
Author: Placar Final Team
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* Header */
.site-header {
    background-color: #2d2d2d;
    padding: 1rem 0;
    border-bottom: 2px solid #4CAF50;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.site-logo {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
    text-decoration: none;
}

.site-logo:hover {
    color: #66BB6A;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.header-nav a:hover {
    background-color: #4CAF50;
}

.search-box {
    padding: 0.5rem;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
}

/* Sidebar */
.sidebar {
    background-color: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list a {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-list a:hover,
.filter-list a.active {
    background-color: #4CAF50;
    color: #fff;
}

/* Date Navigation */
.date-navigation {
    background-color: #2d2d2d;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow-x: auto;
}

.date-nav-container {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.date-item {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 80px;
}

.date-item:hover,
.date-item.active {
    background-color: #4CAF50;
}

.date-item .day {
    font-size: 0.8rem;
    color: #ccc;
}

.date-item .date {
    font-weight: bold;
}

/* Content Area */
.content-area {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Championship Section */
.championship-section {
    margin-bottom: 2rem;
}

.championship-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #333;
    border-radius: 6px;
}

.championship-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.championship-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4CAF50;
}

.match-count {
    background-color: #4CAF50;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: auto;
}

/* Match Card */
.match-card {
    background-color: #1a1a1a;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.match-time {
    font-size: 0.9rem;
    color: #ccc;
}

.match-status {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.match-status.live {
    background-color: #f44336;
    color: #fff;
    animation: pulse 2s infinite;
}

.match-status.finished {
    background-color: #666;
    color: #fff;
}

.match-status.upcoming {
    background-color: #2196F3;
    color: #fff;
}

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

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

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

.team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.team-name {
    font-weight: bold;
    font-size: 1rem;
}

.score {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
    margin: 0 1rem;
}

.match-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.goal-list {
    list-style: none;
    font-size: 0.9rem;
    color: #ccc;
}

.goal-list li {
    margin-bottom: 0.3rem;
}

.goal-time {
    color: #4CAF50;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team {
        justify-content: center;
    }
    
    .score {
        margin: 0.5rem 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Loading Animation */
.spinner {
    border: 3px solid #333;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

