/* guilde.css - Styles pour l'espace guilde Iron Oath */

/* En-tête de la page */
.guilde-header {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(78, 205, 196, 0.15));
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid rgba(78, 205, 196, 0.4);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.guilde-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.guilde-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

/* Section containers */
.guilde-section {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid #4ecdc4;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.guilde-section h2 {
    color: #4ecdc4;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Liste de planning */
#planning-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1rem;
}

.planning-item {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.05) 100%);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.planning-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
}

.planning-item .item-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.planning-item .item-date {
    color: #4ecdc4;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.planning-item .item-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Liste des objectifs */
#objectives-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1rem;
}

.objective-item {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(78, 205, 196, 0.03) 100%);
    border: 1px solid rgba(78, 205, 196, 0.25);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.objective-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.15);
    border-color: #4ecdc4;
}

.objective-item .item-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.objective-item .item-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

/* Barre de progression */
.progress-bar {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 205, 196, 0.4);
    border-radius: 20px;
    height: 25px;
    overflow: hidden;
    position: relative;
    margin-top: 0.8rem;
}

.progress-fill {
    background: linear-gradient(90deg, #4ecdc4 0%, #3ba89f 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    transition: width 0.5s ease;
    border-radius: 20px;
}

/* Liste de présence */
#presence-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.presence-card {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.presence-card.present {
    border-color: rgba(78, 205, 196, 0.6);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.12) 0%, rgba(78, 205, 196, 0.06) 100%);
}

.presence-card.absent {
    border-color: rgba(160, 160, 170, 0.5);
    background: linear-gradient(135deg, rgba(160, 160, 170, 0.1) 0%, rgba(160, 160, 170, 0.05) 100%);
}

.presence-card.en_mission {
    border-color: rgba(78, 205, 196, 0.4);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(78, 205, 196, 0.04) 100%);
}

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

.presence-username {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.presence-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-present {
    background: rgba(78, 205, 196, 0.6);
    color: white;
}

.status-absent {
    background: rgba(140, 140, 150, 0.6);
    color: white;
}

.status-en_mission {
    background: rgba(78, 205, 196, 0.4);
    color: white;
}

/* Boutons d'appel */
.appel-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.appel-btn {
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.present-btn {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.5) 0%, rgba(78, 205, 196, 0.4) 100%);
    border: 2px solid rgba(78, 205, 196, 0.6);
    box-shadow: 0 4px 10px rgba(78, 205, 196, 0.2);
}

.present-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.3);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.6) 0%, rgba(78, 205, 196, 0.5) 100%);
}

.absent-btn {
    background: linear-gradient(135deg, rgba(140, 140, 150, 0.4) 0%, rgba(140, 140, 150, 0.3) 100%);
    border: 2px solid rgba(140, 140, 150, 0.5);
    box-shadow: 0 4px 10px rgba(140, 140, 150, 0.2);
}

.absent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 67, 54, 0.4);
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
}

.appel-btn:active {
    transform: translateY(0);
}

.appel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Messages vides */
.no-data {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    padding: 2rem;
    font-style: italic;
}

/* Accès refusé */
#access-denied {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

#access-denied h2 {
    color: #f44336;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#access-denied p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#access-denied a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

#access-denied a:hover {
    border-bottom-color: #4ecdc4;
}

/* Loading */
#loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #4ecdc4;
}

/* Système d'onglets pour l'espace guilde */
.guilde-tabs-container {
    margin-top: 0;
    margin-bottom: 30px;
}

.guilde-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: rgba(26, 26, 26, 0.6);
    padding: 10px;
    border-radius: 12px;
    border: 2px solid rgba(78, 205, 196, 0.3);
}

.guilde-tab-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(78, 205, 196, 0.08));
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    color: #4ecdc4;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guilde-tab-btn:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(78, 205, 196, 0.15));
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.guilde-tab-btn.active {
    background: linear-gradient(135deg, #4ecdc4, #44a3ff);
    border-color: #4ecdc4;
    color: white;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.guilde-tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

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

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

/* Layout deux colonnes */
.guilde-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.guilde-left-column,
.guilde-right-column {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.guilde-left-column .activity-wall-container {
    height: 100%;
}

.guilde-right-column .guilde-tabs-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 1200px) {
    .guilde-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .guilde-header h1 {
        font-size: 1.8rem;
    }
    
    .guilde-header p {
        font-size: 0.9rem;
    }
    
    .guilde-container {
        padding: 10px;
        margin-top: 60px;
    }
    
    #planning-list,
    #objectives-list {
        grid-template-columns: 1fr;
    }
    
    #presence-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .guilde-section {
        padding: 1rem;
    }
    
    .guilde-section h2 {
        font-size: 1.3rem;
    }
    
    .guilde-tabs {
        flex-direction: column;
    }
    
    .guilde-tab-btn {
        min-width: 100%;
        font-size: 0.85rem;
        padding: 12px 20px;
    }
    
    .activity-wall-container {
        padding: 1rem;
    }
}

