/* ============================================================================
   FOLLOWS — follow button, hero follower strip, followers/following modal
   (follows.css v1) — loaded after profile-esports.css. Uses the site's own
   tokens (--gold, --panel-2, --line, --pitch, --red ...) so it follows every
   theme / season skin automatically.
   ========================================================================== */

/* icon vars (the profile card defines these on .profile-modal only; the
   followers modal lives on <body>, so it needs its own copy) */
.follow-overlay{
  --ic-users:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  --ic-x:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
  --ic-user-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6'/%3E%3Cpath d='M22 11h-6'/%3E%3C/svg%3E");
  --ic-user-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='m16 11 2 2 4-4'/%3E%3C/svg%3E");
  --ic-check-circle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* ---------------- Follow button on the profile hero ---------------- */
.profile-follow-btn{position:relative; overflow:hidden; min-width:112px; justify-content:center;}
.profile-follow-btn.is-none{
  color:var(--on-gold,#0a0e0b); background:linear-gradient(180deg, var(--gold-hover,var(--gold)), var(--gold));
  border-color:var(--gold); box-shadow:0 6px 18px -8px color-mix(in srgb, var(--gold) 80%, transparent);
}
.profile-follow-btn.is-none:hover{background:var(--gold-hover,var(--gold)); color:var(--on-gold,#0a0e0b); border-color:var(--gold-hover,var(--gold)); box-shadow:0 10px 24px -8px color-mix(in srgb, var(--gold) 90%, transparent);}
.profile-follow-btn.is-none.is-pop .ic{animation:followPop .45s cubic-bezier(.3,1.6,.5,1);}
.profile-follow-btn.is-following{color:var(--pitch); border-color:color-mix(in srgb, var(--pitch) 55%, var(--line)); background:color-mix(in srgb, var(--pitch) 12%, rgba(0,0,0,.34));}
.profile-follow-btn.is-following .fb-off{display:none;}
.profile-follow-btn .fb-on, .profile-follow-btn .fb-off{display:inline-flex; align-items:center; gap:8px;}
@media (hover:hover){
  .profile-follow-btn.is-following:hover{background:var(--red); border-color:var(--red); color:#fff;}
  .profile-follow-btn.is-following:hover .fb-on{display:none;}
  .profile-follow-btn.is-following:hover .fb-off{display:inline-flex;}
}
.profile-follow-btn:focus-visible, .pfs-half:focus-visible, .follow-row-btn:focus-visible, .follow-tab:focus-visible, .follow-close:focus-visible{outline:2px solid var(--gold); outline-offset:2px;}

.profile-follows-you{
  display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px;
  font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:var(--muted); background:rgba(0,0,0,.34); border:1px solid var(--line);
}
.profile-follows-you .ic{width:12px; height:12px; color:var(--pitch);}

/* ---------------- Followers / Following strip under the hero stats ---------------- */
.profile-follow-stat{
  grid-column:1 / -1; display:grid; grid-template-columns:1fr auto 1fr; align-items:stretch;
  border-radius:12px; overflow:hidden; min-width:0;
  background:rgba(0,0,0,.34); border:1px solid color-mix(in srgb, var(--line) 75%, var(--accent, var(--gold)));
  backdrop-filter:blur(6px);
}
.profile-follow-stat:empty{display:none;}
.pfs-half{
  position:relative; display:flex; align-items:baseline; gap:8px; padding:10px 14px; margin:0; min-width:0;
  background:none; border:0; color:var(--text); cursor:pointer; font-family:inherit; text-align:left;
  transition:background .16s ease;
}
.pfs-half:hover{background:color-mix(in srgb, var(--accent, var(--gold)) 14%, transparent);}
.pfs-half .ic{align-self:center; width:15px; height:15px; color:var(--accent, var(--gold)); opacity:.9;}
.pfs-half b{font-family:'Teko',sans-serif; font-size:26px; line-height:1; font-weight:600; letter-spacing:.01em; display:inline-block; transition:color .2s ease;}
.pfs-half small{font-size:10px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--muted);}
.pfs-half:hover small{color:var(--text);}
.pfs-sep{width:1px; margin:9px 0; background:var(--line);}
.profile-follow-stat.is-loading b{opacity:.5;}
.pfs-half b.is-bump{animation:followBump .5s cubic-bezier(.3,1.5,.5,1); color:var(--gold);}

/* ---------------- Modal ---------------- */
html.follow-lock{overflow:hidden;}
.follow-overlay{
  position:fixed; inset:0; z-index:1200; display:none; align-items:center; justify-content:center; padding:20px;
  background:rgba(4,7,5,.72); backdrop-filter:blur(7px);
}
.follow-overlay.open{display:flex; animation:followFade .18s ease;}
.follow-modal{
  width:100%; max-width:460px; max-height:min(640px, 86vh); display:flex; flex-direction:column; overflow:hidden;
  border-radius:18px; background:var(--panel); color:var(--text);
  border:1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  box-shadow:0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  animation:followRise .26s cubic-bezier(.2,.9,.3,1.1);
}
.follow-head{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 16px 12px 18px;}
.follow-title{display:flex; align-items:center; gap:10px; min-width:0; font-family:'Teko',sans-serif; font-size:24px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;}
.follow-title #followTitleText{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.follow-title-ic{display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:9px; background:color-mix(in srgb, var(--gold) 14%, transparent); border:1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); color:var(--gold);}
.follow-title-ic .ic{width:16px; height:16px;}
.follow-close{
  display:grid; place-items:center; flex:none; width:32px; height:32px; padding:0; border-radius:50%; cursor:pointer;
  background:rgba(0,0,0,.4); border:1px solid var(--line); color:var(--text); transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.follow-close .ic{width:14px; height:14px;}
.follow-close:hover{background:var(--red); border-color:var(--red); color:#fff;}

.follow-tabs{display:grid; grid-template-columns:1fr 1fr; padding:0 12px; border-bottom:1px solid var(--line);}
.follow-tab{
  position:relative; padding:11px 8px 12px; margin:0; background:none; border:0; cursor:pointer; font-family:inherit;
  font-size:12px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); transition:color .15s ease;
}
.follow-tab em{font-style:normal; margin-left:6px; padding:1px 7px; border-radius:999px; font-size:11px; background:rgba(255,255,255,.06); color:var(--text);}
.follow-tab:hover{color:var(--text);}
.follow-tab.active{color:var(--gold);}
.follow-tab.active em{background:color-mix(in srgb, var(--gold) 18%, transparent); color:var(--gold);}
.follow-tab.active::after{content:""; position:absolute; left:18%; right:18%; bottom:-1px; height:2px; border-radius:2px 2px 0 0; background:var(--gold); box-shadow:0 0 12px var(--gold);}

.follow-search{padding:12px 14px 6px;}
.follow-search input{
  width:100%; box-sizing:border-box; padding:10px 14px; border-radius:10px; font:inherit; font-size:13.5px;
  background:rgba(0,0,0,.34); border:1px solid var(--line); color:var(--text); outline:none; transition:border-color .15s ease;
}
.follow-search input:focus{border-color:var(--gold);}
.follow-search input::placeholder{color:var(--muted);}

.follow-list{flex:1 1 auto; min-height:180px; overflow-y:auto; padding:6px 8px 12px; overscroll-behavior:contain; scrollbar-width:thin;}
.follow-row{
  display:flex; align-items:center; gap:12px; padding:9px 10px; border-radius:12px; cursor:pointer; outline:none;
  transition:background .14s ease;
}
.follow-row:hover, .follow-row:focus-visible{background:color-mix(in srgb, var(--gold) 8%, transparent);}
.follow-avatar{
  --accent:var(--gold); display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:14px; overflow:hidden;
  font-family:'Teko',sans-serif; font-size:19px; font-weight:600; color:var(--text);
  background:color-mix(in srgb, var(--accent) 22%, var(--panel-2)); border:2px solid color-mix(in srgb, var(--accent) 70%, var(--line));
}
.follow-avatar img{width:100%; height:100%; object-fit:cover; display:block;}
.follow-who{flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px;}
.follow-who b{font-size:14.5px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.follow-who > span{font-size:11.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.follow-you{font-style:normal; margin-left:6px; padding:1px 7px; border-radius:999px; font-size:9.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--on-gold,#0a0e0b); background:var(--gold);}
.follow-tag{font-style:normal; font-weight:700; letter-spacing:.04em; color:var(--pitch);}

.follow-row-btn{
  flex:none; min-width:92px; padding:7px 14px; border-radius:9px; cursor:pointer; font:inherit; font-size:12px; font-weight:800; letter-spacing:.03em;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.follow-row-btn:disabled{opacity:.5; cursor:default;}
.follow-row-btn.is-none{color:var(--on-gold,#0a0e0b); background:var(--gold); border:1px solid var(--gold);}
.follow-row-btn.is-none:hover{background:var(--gold-hover,var(--gold)); transform:translateY(-1px);}
.follow-row-btn.is-following{color:var(--text); background:rgba(0,0,0,.34); border:1px solid color-mix(in srgb, var(--line) 60%, var(--text));}
.follow-row-btn .fb-off{display:none;}
@media (hover:hover){
  .follow-row-btn.is-following:hover{background:var(--red); border-color:var(--red); color:#fff;}
  .follow-row-btn.is-following:hover .fb-on{display:none;}
  .follow-row-btn.is-following:hover .fb-off{display:inline;}
}

.follow-empty{display:flex; flex-direction:column; align-items:center; gap:12px; padding:46px 24px; text-align:center; color:var(--muted);}
.follow-empty .ic{width:34px; height:34px; opacity:.5; color:var(--gold);}
.follow-empty p{margin:0; font-size:13.5px; line-height:1.55; max-width:280px;}
.follow-skel{height:62px; margin:6px 4px; border-radius:12px; background:linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size:200% 100%; animation:followShimmer 1.2s linear infinite;}

@keyframes followPop{0%{transform:scale(.4) rotate(-20deg);}100%{transform:scale(1) rotate(0);}}
@keyframes followBump{0%{transform:scale(1);}40%{transform:scale(1.35);}100%{transform:scale(1);}}
@keyframes followFade{from{opacity:0;}to{opacity:1;}}
@keyframes followRise{from{opacity:0; transform:translateY(16px) scale(.97);}to{opacity:1; transform:none;}}
@keyframes followShimmer{from{background-position:200% 0;}to{background-position:-200% 0;}}

@media (max-width:560px){
  .profile-follow-stat{width:100%;}
  .pfs-half{padding:9px 10px; gap:6px; justify-content:center;}
  .pfs-half b{font-size:24px;}
  .follow-overlay{padding:0; align-items:flex-end;}
  .follow-modal{max-width:none; max-height:88vh; border-radius:18px 18px 0 0; border-bottom:0;}
}
@media (prefers-reduced-motion:reduce){
  .follow-overlay.open, .follow-modal, .profile-follow-btn .ic, .pfs-half b.is-bump, .follow-skel{animation:none !important;}
}
