/* Shared header for all 9 public-profile roles (templates/partials/profile_header.html).
   Extracted verbatim from the 9 role templates — same rules, single source. */

.profile-cover-wrap { position: relative; width: 100%; height: 280px; }
.profile-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-cover-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.profile-hero-info {
    position: absolute;
    left: 0; right: 0; bottom: 84px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.profile-hero-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.profile-hero-stat { display: flex; align-items: center; gap: 5px; font-size: 13px; color: rgba(255,255,255,0.9); text-shadow: 0 1px 3px rgba(0,0,0,0.3); font-weight: 600; }
.profile-hero-social { display: flex; align-items: center; gap: 10px; }
.profile-hero-social a { color: rgba(255,255,255,0.85); transition: color 0.15s; }
.profile-hero-social a:hover { color: #fff; }
.profile-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: flex; align-items: center; justify-content: center;
}
.profile-hero-avatar-edit {
    position: absolute; top: -4px; right: -4px;
    width: 24px; height: 24px;
    border-radius: 50%;
    z-index: 2;
}
.profile-hero-online-dot {
    position: absolute; bottom: 8px; right: 8px;
    width: 16px; height: 16px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}
.profile-hero-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.profile-hero-name {
    font-family: 'LemonMilk', sans-serif;
    font-size: 34px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-hero-username {
    position: relative;
    top: -5px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 4px 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.profile-hero-tagline {
    font-size: 15px;
    color: rgba(255,255,255,0.92);
    margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.profile-avatar-positioner { position: absolute; top: 0; bottom: 0; left: 0; right: 0; max-width: 960px; margin: 0 auto; pointer-events: none; z-index: 1; }
.profile-avatar-wrap { position: absolute; bottom: -48px; left: 15px; width: 128px; height: 128px; border-radius: 50%; border: 4px solid #fff; background: #e8e8e8; box-shadow: 0 2px 12px rgba(0,0,0,0.18); overflow: hidden; display: flex; align-items: center; justify-content: center; pointer-events: all; }
.profile-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.profile-online-dot { position: absolute; bottom: -31px; left: 126px; width: 16px; height: 16px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.verified-badge-inline { display: inline-block; vertical-align: middle; margin-left: 8px; flex-shrink: 0; position: relative; top: -2px; height: 30px; width: auto; }

.profile-name { font-family: 'LemonMilk', sans-serif; font-size: 34px; font-weight: 500; color: #111; margin: 0 0 4px 0; }
.profile-tagline { font-size: 14px; color: #888; margin: 0; }

.follow-btn { padding: 6px 20px; border-radius: 20px; border: 1.5px solid #3b82f6; background: #3b82f6; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.follow-btn.following { background: #f5c400; color: #111; border-color: #f5c400; }
.follow-btn:hover { opacity: 0.8; }

/* VISUAL TEST v3: pull the tabs bar up so it overlaps the bottom of the hero
   and becomes part of the cover, glass/editorial style. `.profile-tabs` and
   friends are still defined locally in each of the 9 role templates (out of
   scope for the header partial), so these overrides need !important to win
   the cascade without touching those 9 files. */
.profile-tabs {
    position: relative;
    z-index: 2;
    margin-top: -38px !important;
    background: transparent !important;
}
.profile-tabs-inner {
    background: transparent !important;
}
.profile-tab {
    background: rgba(20,20,20,0.32) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none !important;
    border-radius: 8px 8px 0 0;
    color: rgba(255,255,255,0.75) !important;
}
.profile-tab svg { opacity: 0.8; }
.profile-tab:hover { background: rgba(255,255,255,0.10) !important; color: #fff !important; }
.profile-tab.active {
    background: #fff !important;
    color: #111 !important;
    border-radius: 8px 8px 0 0;
}
.profile-tabs-border { display: none !important; }

/* Creative role (makeup/stylist/hairdresser) only: distinct desktop social-icons
   wrapper, kept exactly as-is — not unified with the other 8 roles yet. */
.social-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.social-link { color: #888; text-decoration: none; transition: color 0.15s; }
.social-link:hover { color: #555; }

@media (max-width: 768px) {
    #mobile-report-btn { display:inline-flex!important; align-items:center; background:#dc2626!important; color:#fff!important; border-color:#dc2626!important; box-shadow:none!important; }
    #mobile-social-icons { display:inline-flex!important; position:relative; top:4px; }
    #desktop-social-icons { display:none!important; }
    #profile-action-btns { justify-content:flex-start!important; align-self:flex-start!important; }
    .profile-cover-wrap { height: 240px; }
    .profile-cover-wrap.profile-hero--other { height: 380px; }
    .profile-name { font-size: 26px; }
    .profile-hero-info { top: 50px; bottom: auto; padding: 0 20px; gap: 12px; flex-wrap: wrap; }
    .profile-hero-info.profile-hero-info--own { top: 50px; }
    .profile-hero-avatar-wrap { width: 64px; height: 64px; }
    .profile-hero-avatar-edit { width: 18px; height: 18px; top: -3px; right: -3px; }
    .profile-hero-online-dot { width: 12px; height: 12px; bottom: -1px; right: -1px; }
    .profile-hero-name { font-size: 22px; margin: 0 0 2px 0; }
    .profile-hero-username { font-size: 11px; margin: 0 0 2px 0; top: 0; }
    .profile-hero-tagline { font-size: 12px; }
    .profile-hero-side { margin-left: 0; width: 100%; align-items: flex-start; margin-top: 6px; gap: 8px; }
    .profile-hero-stats { justify-content: flex-start; gap: 10px; }
    .profile-hero-stat { font-size: 11px; }
    .profile-hero-social { gap: 8px; }
    .profile-tabs { margin-top: -23px !important; }
}

/* Móvil: portada por detrás de la barra superior */
@media (max-width: 768px) {
    body.cover-under-nav .navbar { background: transparent; border-bottom-color: transparent; transition: background .25s, border-color .25s; }
    body.cover-under-nav .navbar.nav-solid { background: #fff; border-bottom-color: #e5e5e5; }
    body.cover-under-nav .navbar:not(.nav-solid) .hamburger span { background: #fff; }
    body.cover-under-nav .profile-cover-wrap { margin-top: calc(-1 * var(--navoff)); height: calc(240px + var(--navoff)); }
    body.cover-under-nav .profile-cover-wrap.profile-hero--other { height: calc(380px + var(--navoff)); }
    body.cover-under-nav .profile-cover-wrap::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 130px; background: linear-gradient(to bottom, rgba(0,0,0,.38), rgba(0,0,0,0)); z-index: 1; pointer-events: none; }
    body.cover-under-nav .profile-hero-info, body.cover-under-nav .profile-hero-info.profile-hero-info--own { top: calc(50px + var(--navoff)); }
    body.cover-under-nav .profile-cover-wrap > label { top: calc(8px + var(--navoff)) !important; }
}
