/**
 * Groupe Parlementaire Detail Styles
 */

/* Hero Section specific overrides if needed */
.page-hero {
    margin-bottom: 0;
}

/* Group Header Info */
.group-header-section {
    background: #FFFFFF;
    padding: 3rem 0;
    border-bottom: 1px solid #E0E0E0;
}

.group-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.group-detail-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #E8E8E8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.group-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-detail-info h1 {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.group-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.group-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-meta-icon {
    color: #ED2024;
}

/* Description Section */
.group-description-section {
    padding: 2rem 0;
    background: #f9f9f9;
}

.description-content {
    max-width: 800px;
    line-height: 1.6;
    color: #444;
}

/* Members Section */
.group-members-section {
    padding: 3rem 0 5rem;
    background: #FFFFFF;
}

/* Flag Title Styles */
.title-flag {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 2rem;
}

.title-flag-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.title-flag-underline {
    display: flex;
    height: 4px;
    width: 100%;
    margin-top: 5px;
    border-radius: 2px;
    overflow: hidden;
}

.flag-white { flex: 1; background-color: #ffffff; border: 1px solid #e0e0e0; }
.flag-red { flex: 1; background-color: #ED2024; }
.flag-green { flex: 1; background-color: #0E8040; }

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.member-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #2e7d32;
}

.member-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-name {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
    display: block;
    text-decoration: none;
}

.member-name:hover {
    color: #ED2024;
}

.member-district {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.member-function {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Function Badges */
.badge-pr { background: #ED2024; color: white; }
.badge-vp { background: #2e7d32; color: white; }
.badge-ra { background: #1976D2; color: white; }
.badge-rad { background: #0288D1; color: white; }
.badge-me { background: #E0E0E0; color: #333; }

/* Back Button Area */
.group-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .group-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .group-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
}
