/* ================================================================
   Shared Header — unified member header + back link
   ================================================================ */

/* ── Header ── */
.header {
    background: linear-gradient(135deg, #8458b3 0%, #d0bdf4 100%);
    padding: 20px 40px;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo span { color: #fff; }

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover { opacity: 0.8; }

.nav .user-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: white;
}

/* ── Back link ── */
.back-link {
    display: inline-block;
    padding: 10px 20px;
    color: #8458b3;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.2s;
}

.back-link:hover { opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .header { padding: 15px 20px; }
    .header-content { flex-direction: column; gap: 12px; }
    .logo { font-size: 18px; }
    .nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .nav a { font-size: 14px; }
}
