/* ==========================================================================
   Profile Pro — Facebook-style profile header for the WoWonder theme
   Loaded from themes/wowonder/layout/timeline/content.phtml
   Accent colour comes from the site's main colour (set inline in content.phtml)
   ========================================================================== */
.wo_user_profile{
  --fbp-surface:#fff; --fbp-text:#050505; --fbp-muted:#65676b; --fbp-hover:#f0f2f5;
  --fbp-border:#e4e6eb; --fbp-btn:#e4e6eb; --fbp-btn-hover:#d8dadf;
  --fbp-accent:#1877f2; --fbp-accent-soft:rgba(24,119,242,.12);
  --fbp-av:168px; --fbp-radius:14px;
}
@supports (color: color-mix(in srgb, red, blue)){
  .wo_user_profile{ --fbp-accent-soft:color-mix(in srgb, var(--fbp-accent) 14%, transparent); }
}

/* ---- Card ---- */
.wo_user_profile .profile-container .card.hovercard.fbp-card{
  background:var(--fbp-surface); border:0; overflow:visible;
  border-radius:0 0 var(--fbp-radius) var(--fbp-radius);
  box-shadow:0 1px 2px rgba(0,0,0,.10), 0 2px 14px rgba(0,0,0,.06);
  margin-bottom:16px !important;
}

/* ---- Cover ---- */
.wo_user_profile .profile-container .card.hovercard.fbp-card .cardheader{
  position:relative; min-height:0; max-height:none; overflow:hidden;
  background:#d8dadf; border-radius:0 0 12px 12px;
}
.wo_user_profile .fbp-card .cardheader::after{
  content:""; position:absolute; inset:auto 0 0 0; height:120px; z-index:1;
  background:linear-gradient(to top, rgba(0,0,0,.30), rgba(0,0,0,0)); pointer-events:none;
}
.wo_user_profile .fbp-card .user-cover-reposition-w img#cover-image{
  display:block; width:100%; height:clamp(190px, 31vw, 370px); object-fit:cover;
}
.wo_user_profile .fbp-card .profile-cover-changer{
  inset-block-end:16px; inset-inline-end:16px; inset-block-start:auto; inset-inline-start:auto;
  width:auto; white-space:nowrap; z-index:10;
}
.wo_user_profile .fbp-card .profile-cover-changer .input-group{display:inline-block; width:auto; vertical-align:top}
.wo_user_profile .fbp-card .profile-cover-changer .input-group-btn{display:inline-block; width:auto}
.wo_user_profile .fbp-card .profile-cover-changer .btn-file{
  float:none; display:inline-block; margin:0 3px; width:auto; padding:8px 11px;
  border-radius:8px !important; background:rgba(0,0,0,.55);
}
.wo_user_profile .fbp-card .problackback{display:none}

/* ---- Head row: avatar | info | actions ---- */
.fbp-head{
  position:relative; display:flex; align-items:flex-start; gap:22px;
  padding:0 28px 16px;
}
.fbp-avatar-col{flex:0 0 auto; margin-top:-88px; position:relative; z-index:3}
.wo_user_profile .profile-container .card.hovercard.fbp-card .fbp-head .user-avatar{
  position:relative; bottom:auto; margin:0; width:var(--fbp-av); height:var(--fbp-av);
  border-radius:50%; padding:0; background:transparent;
}
.wo_user_profile .fbp-head .user-avatar > img{
  width:100%; height:100%; object-fit:cover; border-radius:50%; background:#fff;
  border:5px solid var(--fbp-surface); box-shadow:0 2px 10px rgba(0,0,0,.25);
  position:relative; z-index:2;
}
.wo_user_profile .profile-container .card.hovercard.fbp-card .fbp-head .user-avatar.unseen_story{
  padding:4px; background:linear-gradient(-45deg,#ee7752,#e73c7e,#23a6d5,#23d5ab);
}
.wo_user_profile .profile-container .card.hovercard.fbp-card .fbp-head .user-avatar.unseen_story > img{border-width:4px}

.fbp-info{flex:1 1 auto; min-width:0; padding-top:16px}
.wo_user_profile .fbp-name{
  margin:0; padding:0; font-size:30px; line-height:1.2; font-weight:800; letter-spacing:-.2px;
  color:var(--fbp-text); display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px;
}
.wo_user_profile .fbp-name > a{color:var(--fbp-text); text-decoration:none}
.wo_user_profile .fbp-name > a:hover{text-decoration:none; color:var(--fbp-accent)}
.wo_user_profile .fbp-name .badge-pro{display:inline-flex; align-items:center; font-size:11px; line-height:1; font-weight:700; padding:0; border-radius:5px; box-shadow:none}
.wo_user_profile .fbp-name .badge-pro .badge-link{display:block; padding:5px 8px; color:#fff; text-decoration:none; letter-spacing:.3px}
.wo_user_profile .fbp-name svg{width:22px; height:22px; margin:0; flex:0 0 auto}
.wo_user_profile .fbp-name svg.verified-color{fill:#1d9bf0}

.fbp-stats{
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin-top:6px;
  color:var(--fbp-muted); font-size:15px;
}
.fbp-stats a{color:var(--fbp-muted); text-decoration:none; font-weight:500}
.fbp-stats a b{color:var(--fbp-text); font-weight:700}
.fbp-stats a:hover{text-decoration:underline}
.fbp-dot{display:inline-block; width:4px; height:4px; border-radius:50%; background:var(--fbp-muted); opacity:.55}

.fbp-bio{
  margin:8px 0 0; max-width:640px; color:var(--fbp-text); font-size:15px; line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.fbp-social{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.fbp-social .social-icon{width:34px; height:34px; font-size:16px; transition:transform .15s, box-shadow .15s}
.fbp-social .social-icon:hover{transform:translateY(-2px); box-shadow:0 4px 10px rgba(0,0,0,.2)}

/* Avatar upload overlay must sit ABOVE the avatar image, otherwise it can't be clicked */
.wo_user_profile .fbp-head .user-avatar .profile-avatar-changer{z-index:5}
.wo_user_profile .fbp-head .user-avatar .user-avatar-uploading-container{z-index:6}
.wo_user_profile .fbp-head .user-avatar .user-avatar-uploading-progress{z-index:7}
/* Always-visible camera button (opens the same file input as the hover overlay) */
.wo_user_profile .fbp-avatar-edit{
  position:absolute; inset-block-end:10px; inset-inline-end:6px; z-index:8;
  width:38px; height:38px; padding:0; display:flex; align-items:center; justify-content:center;
  border-radius:50%; border:3px solid var(--fbp-surface); background:var(--fbp-btn); color:var(--fbp-text);
  box-shadow:0 1px 4px rgba(0,0,0,.25); cursor:pointer; transition:background .15s;
}
.wo_user_profile .fbp-avatar-edit:hover{background:var(--fbp-btn-hover)}
.wo_user_profile .fbp-avatar-edit svg{width:18px; height:18px}

/* ---- Action buttons ---- */
.wo_user_profile .fbp-head .options-buttons{
  position:relative; z-index:3; flex:0 0 auto; margin:16px 0 0; padding:0;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px;
}
.wo_user_profile .fbp-head .options-buttons .btn-glossy{display:inline-flex; margin:0}
.wo_user_profile .fbp-head .options-buttons .btn-glossy > a,
.wo_user_profile .fbp-head .options-buttons .btn-glossy > button,
.wo_user_profile .fbp-head .options-buttons .btn-glossy > span > button,
.wo_user_profile .fbp-head .options-buttons .btn-glossy > span > a{
  display:inline-flex !important; align-items:center; justify-content:center; gap:6px;
  height:38px !important; padding:0 16px !important; margin:0 !important;
  border:0 !important; border-radius:10px !important; box-shadow:none !important;
  font-size:15px !important; font-weight:600; line-height:1;
  color:var(--fbp-text) !important; background:var(--fbp-btn) !important;
  text-decoration:none; transition:background .15s, filter .15s;
}
.wo_user_profile .fbp-head .options-buttons .btn-glossy > a:hover,
.wo_user_profile .fbp-head .options-buttons .btn-glossy > button:hover,
.wo_user_profile .fbp-head .options-buttons .btn-glossy > span > button:hover{
  background:var(--fbp-btn-hover) !important; color:var(--fbp-text) !important;
}
.wo_user_profile .fbp-head .options-buttons .fbp-primary > a,
.wo_user_profile .fbp-head .options-buttons .fbp-primary > button,
.wo_user_profile .fbp-head .options-buttons .btn-glossy .btn-main{
  background:var(--fbp-accent) !important; color:#fff !important;
}
.wo_user_profile .fbp-head .options-buttons .fbp-primary > a:hover,
.wo_user_profile .fbp-head .options-buttons .fbp-primary > button:hover,
.wo_user_profile .fbp-head .options-buttons .btn-glossy .btn-main:hover{
  background:var(--fbp-accent) !important; color:#fff !important; filter:brightness(.93);
}
.wo_user_profile .fbp-head .options-buttons .btn-glossy svg.feather{
  width:18px; height:18px; margin:0 !important; flex:0 0 auto;
}
.wo_user_profile .fbp-head .options-buttons .dropdown.btn-glossy > button.dropdown-toggle{padding:0 12px !important}
.wo_user_profile .fbp-head .options-buttons .dropdown.open > button.dropdown-toggle{background:var(--fbp-btn-hover) !important}

/* ---- Tabs ---- */
.fbp-tabs{border-top:1px solid var(--fbp-border); margin:0 20px}
.fbp-tabs ul{
  display:flex; gap:4px; list-style:none; margin:0; padding:0;
  overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.fbp-tabs ul::-webkit-scrollbar{display:none}
.fbp-tabs li{flex:0 0 auto; margin:0; padding:0}
.fbp-tabs a{
  position:relative; display:flex; align-items:center; gap:8px; height:48px; margin:4px 0; padding:0 18px;
  color:var(--fbp-muted); font-size:15px; font-weight:600; text-decoration:none; white-space:nowrap;
  border-radius:8px; transition:background .15s, color .15s;
}
.fbp-tabs a svg{width:19px; height:19px; flex:0 0 auto}
.fbp-tabs a:hover{background:var(--fbp-hover); color:var(--fbp-text)}
.fbp-tabs li.active a{color:var(--fbp-accent)}
.fbp-tabs li.active a:hover{background:var(--fbp-accent-soft); color:var(--fbp-accent)}
.fbp-tabs li.active a::after{
  content:""; position:absolute; inset-inline:12px; bottom:-4px; height:3px;
  border-radius:3px 3px 0 0; background:var(--fbp-accent);
}

/* ---- Polish for the cards below the header ---- */
.wo_user_profile .wow_content{border-radius:12px; border:0; box-shadow:0 1px 2px rgba(0,0,0,.10)}

/* ---- Social icons (kept from the previous inline block; also used by the Info sidebar) ---- */
.user-social-links{margin-top:10px; display:flex; gap:10px}
.social-icon{width:35px; height:35px; display:flex; align-items:center; justify-content:center; border-radius:50%; font-size:16px; color:#fff; text-decoration:none}
.social-icon.facebook{background:#1877f2}
.social-icon.twitter{background:#1da1f2}
.social-icon.instagram{background:#e4405f}
.social-icon.youtube{background:#ff0000}
.social-icon.website{background:#444}
.social-icon:hover{transform:scale(1.1); transition:.2s; color:#fff}

/* ---- Tablet / phone ---- */
@media (max-width:991px){
  .fbp-head{gap:16px; padding:0 18px 14px}
  .wo_user_profile{--fbp-av:150px}
}
@media (max-width:768px){
  .wo_user_profile{--fbp-av:130px}
  .wo_user_profile .profile-container{padding-left:0; padding-right:0}
  .fbp-head{flex-direction:column; align-items:center; text-align:center; gap:0; padding:0 14px 14px}
  .fbp-avatar-col{margin-top:-65px}
  .fbp-info{padding-top:10px; width:100%}
  .wo_user_profile .fbp-name{font-size:24px; justify-content:center}
  .fbp-stats, .fbp-social{justify-content:center}
  .fbp-bio{margin-left:auto; margin-right:auto}
  .wo_user_profile .fbp-head .options-buttons{width:100%; margin-top:14px; justify-content:center}
  .fbp-tabs{margin:0 6px}
  .fbp-tabs a{padding:0 12px; height:46px}
  .wo_user_profile .profile-container .card.hovercard.fbp-card{border-radius:0 0 12px 12px}
}
