/* 
 * Estilos para o Sistema de Campeonato Mata-Mata
 * Autor: Manus AI
 * Data: 06/06/2025
 */

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gray-color: #95a5a6;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
    padding-top: 60px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Seção principal */
main {
    padding: 30px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

/* Estilos para as chaves do campeonato */
.tournament {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    margin-bottom: 30px;
}

.round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 200px;
    margin-right: 40px;
}

.round-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding: 10px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.match {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.match::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px;
    height: 2px;
    background-color: var(--gray-color);
    transform: translateY(-50%);
}

.round:last-child .match::after {
    display: none;
}

.competitor {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 2px;
    transition: var(--transition);
    position: relative;
}

.competitor:hover {
    background-color: var(--light-color);
}

.competitor.winner {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: var(--success-color);
}

.competitor.loser {
    opacity: 0.7;
}

.competitor img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.competitor .name {
    flex-grow: 1;
    font-weight: 500;
}

.competitor .seed {
    background-color: var(--light-color);
    color: var(--dark-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 5px;
}

.competitor .winner-badge {
    position: absolute;
    right: 10px;
    color: var(--success-color);
    font-size: 1.2rem;
}

.bye {
    background-color: #f8f9fa;
    color: var(--gray-color);
    font-style: italic;
}

/* Estilos para a final e disputa de 3º lugar */
.final-rounds {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.final, .third-place {
    width: 300px;
    margin: 0 20px;
}

.final-title, .third-place-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    padding: 10px;
    border-radius: var(--border-radius);
}

.final-title {
    background-color: var(--accent-color);
}

.third-place-title {
    background-color: var(--warning-color);
}

.podium {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.podium-place {
    text-align: center;
    padding: 0 20px;
}

.podium-place img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid;
}

.first-place img {
    border-color: gold;
}

.second-place img {
    border-color: silver;
}

.third-place img {
    border-color: #cd7f32; /* Bronze */
}

.podium-place .position {
    font-weight: 700;
    margin-bottom: 5px;
}

.first-place .position {
    color: gold;
}

.second-place .position {
    color: silver;
}

.third-place .position {
    color: #cd7f32; /* Bronze */
}

.podium-place .name {
    font-weight: 500;
}

/* Botões e formulários */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: darken(var(--primary-color), 10%);
}

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

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

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

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

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Rodapé */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .tournament {
        flex-direction: column;
        align-items: center;
    }
    
    .round {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .match::after {
        display: none;
    }
    
    .final-rounds {
        flex-direction: column;
        align-items: center;
    }
    
    .final, .third-place {
        width: 100%;
        margin: 0 0 30px 0;
    }
    
    .podium {
        flex-direction: column;
    }
    
    .podium-place {
        margin-bottom: 20px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

/* Estilos para a área administrativa */
.admin-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.admin-title {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: var(--light-color);
    font-weight: 700;
    color: var(--primary-color);
}

.admin-table tr:hover {
    background-color: rgba(236, 240, 241, 0.5);
}

.admin-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Mensagens de alerta */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Estilos para o formulário de login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 60px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-actions {
    margin-top: 30px;
}

.login-form .btn {
    width: 100%;
}

