/**
 * Styles pour les pages Teams
 * Thème spatial/futuriste avec nuances de bleu
 */

/* Variables de couleurs */
:root {
    --primary-blue: #8a581e;
    --secondary-blue: #f6b53b;
    --accent-blue: #faf060;
    --dark-blue: #2a1d0f;
    --light-blue: #fdc693;
    --text-light: #f9f6f1;
    --text-dark: #3b311e;
    --background-dark: rgba(42, 34, 15, 0); /* Rendu transparent */
    --background-gradient: linear-gradient(135deg, rgba(42, 30, 15, 0.4) 0%, rgba(138, 118, 30, 0.4) 100%);
    --card-background: rgba(138, 113, 30, 0.6);
    --card-border: rgba(250, 196, 96, 0.5);
}

/* Styles généraux pour les pages Teams */
.teams-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--text-light);
    background-color: transparent; /* Conteneur transparent */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding-top: 0;
}


/* En-tête de la page Teams - style modifié pour correspondre au site */
.teams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    position: relative;
    margin-top: 120px;
}

.teams-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #faf060, transparent);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.teams-title-section {
    flex: 1;
}

/* Style du titre modifié pour correspondre au site */
.teams-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
}

/* Suppression de l'icône étoile qui ne correspond pas au thème */
.teams-main-title::before {
    display: none;
}

/* Sous-titre modifié pour correspondre au site */
.teams-subtitle {
    display: none;
}

/* Bouton Créer une team */
.create-team-button-container {
    margin-left: 2rem;
}

.create-team-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px #fadb60;
    position: relative;
    overflow: hidden;
}

.create-team-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.create-team-button:hover,
.create-team-button:focus {
    color: #fffb00;                    /* Texte noir */
    box-shadow: 0 4px 16px #ffd70033;
}


.create-team-button:hover::before {
    left: 100%;
}

.create-team-button i {
    margin-right: 0.5rem;
}

/* Formulaire de création de team */
.create-team-form-container {
    background: var(--background-gradient);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.create-team-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="30" cy="40" r="0.5" fill="white" opacity="0.1"/><circle cx="70" cy="20" r="0.8" fill="white" opacity="0.1"/><circle cx="90" cy="60" r="0.6" fill="white" opacity="0.1"/><circle cx="50" cy="80" r="0.7" fill="white" opacity="0.1"/><circle cx="20" cy="70" r="0.4" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="0.5" fill="white" opacity="0.1"/><circle cx="40" cy="50" r="0.6" fill="white" opacity="0.1"/><circle cx="60" cy="90" r="0.8" fill="white" opacity="0.1"/></svg>');
    background-size: 200px 200px;
    opacity: 0.5;
    z-index: 0;
}

.create-team-form-inner {
    position: relative;
    z-index: 1;
}

.create-team-form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-align: center;
    position: relative;
    display: inline-block;
}

.create-team-form-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    background-color: rgba(42, 35, 15, 0.7);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(250, 214, 96, 0.5);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px dashed var(--card-border);
    border-radius: 5px;
    color: var(--text-light);
    cursor: pointer;
}

.logo-preview {
    margin-top: 1rem;
    text-align: center;
}

.logo-preview img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #eed6b2;
    box-shadow: 0 0 15px rgba(250, 222, 96, 0.7);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.submit-team-button,
.cancel-team-button {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-team-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-light);
    border: none;
    flex: 1;
    margin-right: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.submit-team-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.cancel-team-button {
    background-color: transparent;
    color: var(--light-blue);
    border: 1px solid var(--light-blue);
    flex: 0 0 auto;
}

.cancel-team-button:hover {
    background-color: rgba(147, 197, 253, 0.1);
}

/* Grille des teams */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(250, 211, 96, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 100, 30, 0) 0%, rgba(250, 240, 96, 0.1) 100%);
    z-index: 0;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(250, 214, 96, 0.5);
}

/* Logo container modifié pour agrandir et centrer les logos */
.team-logo-container {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Logo agrandi */
.team-logo-list {
    width: 150px; /* Taille augmentée */
    height: 150px; /* Taille augmentée */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eedfb2;
    box-shadow: 0 0 20px rgba(250, 211, 96, 0.7);
    transition: all 0.3s ease;
    margin: 0 auto; /* Centrage */
}

.team-card:hover .team-logo-list {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(250, 222, 96, 0.9);
}

.team-logo-placeholder {
    width: 200px; /* Taille augmentée */
    height: 200px; /* Taille augmentée */
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--text-light);
    border: 4px solid #fae960;
    box-shadow: 0 0 20px rgba(250, 196, 96, 0.7);
    margin: 0 auto; /* Centrage */
}

.team-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.team-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #fae960;
}

.team-description {
    flex: 1;
    opacity: 0.9;
    margin-top: var(--spacing-md);
}

/* Style du bouton "Voir la team" modifié pour correspondre au site */
.team-link {
    display: inline-block;
    width: 100%;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #000 0%, #404040 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.team-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.team-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.team-link:hover::before {
    left: 100%;
}

/* Message quand aucune team n'existe */
.no-teams-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--card-background);
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.no-teams-message p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

/* Pagination ajoutée */
.teams-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.teams-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 0.25rem;
    border-radius: 50%;
    background-color: rgba(42, 30, 15, 0.8);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(250, 240, 96, 0.3);
}

.teams-pagination .page-numbers.current {
    background: linear-gradient(135deg, #8a5b1e 0%, #f6d93b 100%);
    color: white;
    border-color: #fad360;
    box-shadow: 0 0 10px rgba(250, 248, 96, 0.5);
}

.teams-pagination .page-numbers:hover:not(.current) {
    background-color: rgb(138 123 30 / 80%);
    border-color: #fae260;
    transform: translateY(-2px);
}

/* Message d'attente d'approbation */
.pending-approval-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(245, 158, 11, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}
.pending-message {
    margin-top: 15px;
    background-color: rgba(245, 158, 11, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 12px 15px;
    border-radius: 6px;
    color: #fff4ed;
    font-size: 0.95em;
}
.pending-message a {
    color: #ffd586;
    text-decoration: underline;
}
/* Responsive */
@media (max-width: 768px) {
    .teams-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .create-team-button-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .create-team-button {
        width: 100%;
        justify-content: center;
    }
    
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-team-button {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .team-logo-list, .team-logo-placeholder {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .teams-list-container {
        padding: 1rem;
    }
    
    .teams-main-title {
        font-size: 2rem;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .team-logo-list, .team-logo-placeholder {
        width: 120px;
        height: 120px;
    }
}
