/* Estilos para Página de Times */

/* Seção Hero */
.times-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    padding: 3rem 1rem;
    text-align: center;
    color: white;
}

.times-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.times-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Seção Carrossel */
.carousel-section {
    padding: 3rem 0;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Wrapper do Carrossel */
.carousel-wrapper {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    perspective: 1000px;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
}

/* Cards de Time */
.team-card {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 4px solid #1e3a8a;
}

.team-card:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.team-card.active {
    transform: scale(1.15);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.5);
    border-color: #0ea5e9;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Botões de Navegação */
.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #1e3a8a;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #1e3a8a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.btn-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e3a8a;
}

.carousel-btn:hover .btn-arrow {
    color: white;
}

/* Informações do Time */
.team-info-section {
    margin-top: 2rem;
}

.team-info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.team-info-card h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.team-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.team-detail-item {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
}

.team-detail-item label {
    display: block;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.team-detail-item span {
    font-size: 1.2rem;
    color: #4b5563;
}

/* Ações do Time */
.team-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-view-players,
.btn-generate-sumula,
.btn-admin-team {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-players {
    background: #0ea5e9;
    color: white;
}

.btn-view-players:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-generate-sumula {
    background: #10b981;
    color: white;
}

.btn-generate-sumula:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-admin-team {
    background: #f59e0b;
    color: white;
}

.btn-admin-team:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease-out;
    margin: 2rem auto;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #1f2937;
}

/* Lista de Jogadores */
.players-list {
    max-height: 400px;
    overflow-y: auto;
}

.player-item {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: #1e3a8a;
}

.player-details {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Painel Admin */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    overflow-y: auto;
    animation: slideInRight 0.3s ease-out;
}

.admin-panel.active {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.admin-panel-header {
    background: #1e3a8a;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-panel-header h2 {
    margin: 0;
}

.btn-close-admin {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-close-admin:hover {
    transform: scale(1.2);
}

.admin-panel-content {
    padding: 1.5rem;
}

/* Abas Admin */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab-btn.active {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Formulário de Jogador */
.add-player-form {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.add-player-form input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.add-player-form button {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-player-form button:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Lista Admin de Jogadores */
.players-admin-list {
    max-height: 300px;
    overflow-y: auto;
}

.player-admin-item {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-admin-info {
    flex: 1;
}

.player-admin-name {
    font-weight: 600;
    color: #1e3a8a;
}

.player-admin-details {
    font-size: 0.85rem;
    color: #6b7280;
}

.btn-delete-player {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-delete-player:hover {
    background: #dc2626;
}

/* Formulário Arte do Jogo */
.game-art-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #1e3a8a;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.team-preview,
.shield-preview,
.sponsor-preview {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    margin-top: 0.5rem;
}

.btn-generate-art {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-generate-art:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

/* Resultado Arte do Jogo */
.game-art-result {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.game-art-result img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin: 1rem 0;
}

.btn-download {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Modal Login */
.modal-login {
    max-width: 400px;
}

/* Responsividade */
@media (max-width: 768px) {
    .times-hero h1 {
        font-size: 2.5rem;
    }

    .carousel-container {
        gap: 1rem;
    }

    .team-card {
        width: 150px;
        height: 150px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .team-details {
        grid-template-columns: 1fr;
    }

    .team-actions {
        flex-direction: column;
    }

    .btn-view-players,
    .btn-generate-sumula,
    .btn-admin-team {
        width: 100%;
    }

    .admin-panel {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .carousel-container {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .team-card {
        width: 120px;
        height: 120px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .admin-panel {
        max-width: 100%;
    }

    .admin-panel-content {
        padding: 1rem;
    }
}
