/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;
    --secondary-color: #3498db;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --border-color: #bdc3c7;
    --text-color: #34495e;
    --bg-color: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Navegação */
.navbar {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    color: white;
}

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

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

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Main content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #27ae60;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Info sections */
.info-section, .api-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.resources-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.resources-list li {
    padding: 0.5rem;
}

.api-endpoints {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.api-endpoints code {
    display: block;
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: white;
    border-left: 3px solid var(--primary-color);
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Times grid */
.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.time-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.time-card:hover {
    transform: translateY(-5px);
}

.time-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-logo, .time-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.time-logo-placeholder {
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.time-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.time-actions {
    margin-top: 1rem;
    text-align: center;
}

/* Time details */
.time-detalhes {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.time-header-large {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-color);
}

.time-logo-large, .time-logo-placeholder-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.time-logo-placeholder-large {
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.subtitle {
    color: var(--border-color);
    font-size: 1.2rem;
}

/* Stats section */
.stats-section {
    margin: 2rem 0;
}

.stats-section h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

.stat-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
}

.stat-card.highlight {
    border-color: var(--primary-color);
    background: #e8f8f5;
}

.stat-card.warning {
    border-color: var(--warning-color);
    background: #fef9e7;
}

.stat-card.danger {
    border-color: var(--danger-color);
    background: #fadbd8;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.comparison-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.comparison-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Tendência */
.tendencia-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tendencia-crescente {
    color: var(--primary-color);
}

.tendencia-decrescente {
    color: var(--danger-color);
}

.gols-timeline {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
}

.gol-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 5px;
    font-weight: bold;
}

/* Forms */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--border-color);
}

.close:hover {
    color: var(--danger-color);
}

.form-group {
    margin: 1rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--border-color);
}

.importar-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Comparação */
.comparacao-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.vs-divider {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.comparacao-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.time-comparacao h2 {
    text-align: center;
}

.vs-large {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stats-comparison {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-color);
    font-weight: bold;
}

.comparison-table .stat-name {
    background: var(--light-color);
    font-weight: bold;
}

.comparison-table .melhor {
    background: #e8f8f5;
    color: var(--primary-color);
    font-weight: bold;
}

.vantagens-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.vantagens-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vantagens-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.vantagens-card ul {
    list-style: none;
}

.vantagens-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.vantagens-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Jogos */
.jogos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jogo-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--border-color);
}

.jogo-card.status-finalizado {
    border-left-color: var(--primary-color);
}

.jogo-card.status-ao_vivo {
    border-left-color: var(--danger-color);
    animation: pulse 2s infinite;
}

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

.jogo-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--border-color);
    font-size: 0.9rem;
}

.jogo-times {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 1rem 0;
}

.jogo-time {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.jogo-time:last-child {
    justify-content: flex-end;
}

.time-logo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.time-nome {
    font-weight: bold;
}

.jogo-placar {
    text-align: center;
}

.placar {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-color);
}

.vs {
    font-size: 1.5rem;
    color: var(--border-color);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.finalizado {
    background: #e8f8f5;
    color: var(--primary-color);
}

.status-badge.ao_vivo,
.status-badge.live {
    background: var(--danger-color);
    color: white;
}

.status-badge.agendado {
    background: var(--light-color);
    color: var(--text-color);
}

.stats-detalhes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--light-color);
}

.time-stats-preview {
    margin: 1rem 0;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.stats-mini span {
    background: var(--bg-color);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.stats-mini .destaque {
    background: #fadbd8;
    color: var(--danger-color);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-state p {
    margin: 0.5rem 0;
}

/* Actions section */
.actions-section {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .vs-divider {
        text-align: center;
    }

    .comparacao-header {
        grid-template-columns: 1fr;
    }

    .jogo-times {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .jogo-time:last-child {
        justify-content: flex-start;
    }
}
