/* Estilos para o sistema de gerenciamento de camisas do Náutico */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Cabeçalho */
header {
    background-color: #e20613; /* Vermelho do Náutico */
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    width: 80px;
    height: auto;
    margin-right: 15px;
}

.site-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-title h1 {
    margin-bottom: 0.2rem;
}

.site-title .subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navegação */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 0.5rem;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* Conteúdo principal */
main {
    padding: 1rem 0;
    min-height: calc(100vh - 200px);
}

section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border-top: 4px solid #e20613; /* Borda superior vermelha */
}

section h2 {
    color: #e20613;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

/* Formulários */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #e20613;
}

.auth-form h2 {
    text-align: center;
    color: #e20613;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e20613;
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 6, 19, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    color: #777;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #e20613;
    color: white;
}

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

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    border-left-color: #dc3545;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    border-left-color: #28a745;
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
}

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

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

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #e20613;
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.badge-admin {
    background-color: #e20613;
    color: white;
}

.badge-user {
    background-color: #6c757d;
    color: white;
}

/* Grid de camisas */
.camisas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.camisa-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

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

.camisa-imagem {
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #e20613;
}

.camisa-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #6c757d;
    font-style: italic;
}

.camisa-info {
    padding: 1.5rem;
}

.camisa-info h3 {
    margin-bottom: 0.5rem;
    color: #e20613;
}

.camisa-info p {
    margin-bottom: 0.5rem;
}

.camisa-info .descricao {
    margin-top: 1rem;
    font-style: italic;
    color: #6c757d;
}

.camisa-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Filtros */
.filtros {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-left: 4px solid #e20613;
}

.filtros .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* Dashboard */
.dashboard-content,
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-card,
.stat-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid #e20613;
}

.dashboard-card:hover,
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3,
.stat-card h3 {
    color: #e20613;
    margin-bottom: 1rem;
}

.dashboard-card p,
.stat-card p {
    margin-bottom: 1.5rem;
}

/* Estatísticas da coleção */
.colecao-stats {
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e20613;
    margin-bottom: 0.5rem;
}

.stat-percentage {
    font-weight: 600;
    color: #6c757d;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #e20613;
    border-radius: 5px;
}

/* Mensagens vazias */
.empty-collection,
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: #6c757d;
}

.empty-collection p,
.no-results p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Imagens em formulários */
.current-image {
    margin-bottom: 1rem;
}

.current-image img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
}

.current-image p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Thumbnails em tabelas */
.thumbnail {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
}

/* Rodapé */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

footer .footer-logo {
    width: 40px;
    height: auto;
    margin-bottom: 0.5rem;
}

footer .footer-text {
    font-weight: 500;
}

/* Login e Registro */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #f5f5f5;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    width: 100px;
    height: auto;
}

/* Sistema de votos */
.votos-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.votos-count {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.likes-count, .dislikes-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.votos-actions {
    display: flex;
    gap: 0.5rem;
}

.voto-form {
    display: inline;
}

.btn-vote {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Ranking */
.ranking-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ranking-position {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: #e20613;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.camisa-card {
    position: relative;
}

.ranking-card {
    border-left: 4px solid #e20613;
}

.ranking-card.top-liked {
    border-left-color: #28a745;
}

.ranking-card.top-disliked {
    border-left-color: #dc3545;
}

/* Responsividade */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .camisa-actions {
        flex-direction: column;
    }
    
    .camisa-actions .btn {
        width: 100%;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    .logo {
        width: 60px;
    }
}
