/* ========================================
   HERO SECTION
   ======================================== */

.profile-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    padding: 4rem 0 6rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Pattern Overlay */
.profile-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* ========================================
   AVATAR
   ======================================== */

.group-avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.group-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    background: var(--white);
}

.avatar-edit-btn {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--white);
    color: var(--primary-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
    text-decoration: none;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    color: var(--accent-green);
}

/* ========================================
   GROUP INFO
   ======================================== */

.group-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-pill.verified {
    background: var(--accent-green);
    color: white;
}

.group-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.group-meta-row {
    display: flex;
    gap: 1.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

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

/* ========================================
   HERO ACTIONS
   ======================================== */

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-hero {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-hero:hover {
    background: white;
    color: var(--primary-dark);
    text-decoration: none;
}

.btn-hero.primary {
    background: white;
    color: var(--primary-dark);
    border: none;
}

.btn-hero.primary:hover {
    background: var(--accent-green);
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .profile-hero {
        padding: 3rem 0 5rem;
        text-align: center;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .group-avatar-wrapper {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .group-meta-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .group-badges {
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
}
