/* Fanalytics V2 — experience layer (identity unchanged) */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&family=Inter:wght@400;600;700&display=swap');
@import url('discussion.css');

/* Core color tokens — required for pages that load app-v2.css without styles.css */
:root {
  --navy:  #0A1628;
  --teal:  #00C2CB;
  --white: #FFFFFF;
  --body:  rgba(255,255,255,0.88);
  --muted: rgba(255,255,255,0.70);
  --dim:   rgba(255,255,255,0.52);
}

/* ---- Skeleton loaders ---- */
@keyframes sk-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.sk {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
}

.sk-card {
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-line { height: 12px; }
.sk-line--lg { height: 22px; width: 70%; }
.sk-line--md { width: 55%; }
.sk-line--sm { width: 40%; }

/* ---- Nav V2 (notifications) ---- */

.notif-wrap { position: relative; display: flex; align-items: center; }

.notif-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted, rgba(255, 255, 255, 0.70));
  cursor: pointer;
  transition: color 140ms ease;
}

.notif-btn:hover,
.notif-btn:focus-visible { color: var(--teal, #00C2CB); }

.notif-btn svg { width: 20px; height: 20px; }

.notif-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--teal, #00C2CB);
  color: var(--navy, #0A1628);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notif-drop {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  width: 280px;
  max-width: calc(100vw - 24px);
  z-index: 120;
  background: var(--navy, #0A1628);
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.notif-drop.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notif-drop-hd {
  padding: 12px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white, #fff);
  border-bottom: 1px solid var(--div, rgba(255, 255, 255, 0.10));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-mark-all {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal, #00C2CB);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.notif-mark-all:hover,
.notif-mark-all:focus-visible {
  color: #00C2CB;
  opacity: 0.88;
}

.notif-drop-body {
  max-height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 203, 0.42) rgba(255, 255, 255, 0.06);
}

.notif-drop-body::-webkit-scrollbar {
  width: 8px;
}

.notif-drop-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.notif-drop-body::-webkit-scrollbar-thumb {
  background: rgba(0, 194, 203, 0.38);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.notif-drop-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 194, 203, 0.58);
  background-clip: padding-box;
}

.notif-drop-body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.notif-empty {
  padding: 20px 14px;
  font-size: 13px;
  color: var(--muted, rgba(255, 255, 255, 0.70));
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-item-link {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--div, rgba(255, 255, 255, 0.08));
}

.notif-item-link:hover {
  background: rgba(0, 194, 203, 0.06);
}

.notif-item.is-unread .notif-item-link {
  background: rgba(0, 194, 203, 0.04);
}

.notif-item-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--white, #fff);
  margin-bottom: 4px;
}

.notif-item-preview {
  display: block;
  font-size: 12px;
  color: var(--muted, rgba(255, 255, 255, 0.70));
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item-when {
  display: block;
  font-size: 11px;
  color: var(--dim, rgba(255, 255, 255, 0.45));
}

.notif-drop-body {
  padding: 0;
  font-size: 13px;
  color: var(--muted, rgba(255, 255, 255, 0.70));
  text-align: left;
  line-height: 1.5;
}

/* ---- Team hero badge ---- */
.hero-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 194, 203, 0.35);
  background: rgba(0, 194, 203, 0.08);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal, #00C2CB);
}

.hero-team-badge.is-mine { cursor: pointer; }

.hero-team-badge.is-mine:hover,
.hero-team-badge.is-mine:focus-visible {
  background: rgba(0, 194, 203, 0.12);
  outline: none;
}

.hero-team-badge--btn {
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.hero-team-badge--btn:hover,
.hero-team-badge--btn:focus-visible {
  background: rgba(0, 194, 203, 0.12);
  outline: none;
}

.hero-team-badge--btn:hover,
.hero-team-badge--btn:focus-visible {
  background: rgba(0, 194, 203, 0.12);
  outline: none;
}

/* ---- Personalized home: Your Team ---- */
.sec-your-team { padding-top: 14px; padding-bottom: 4px; }

.yt-match-title { margin-bottom: 12px; }

.yt-match-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.yt-match-card {
  border: 1px solid rgba(0, 194, 203, 0.35);
  background: rgba(0, 194, 203, 0.06);
  transition: border-color 140ms ease, background 140ms ease;
}

.yt-match-link:hover .yt-match-card {
  border-color: rgba(0, 194, 203, 0.55);
  background: rgba(0, 194, 203, 0.10);
}

.yt-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

.yt-match-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 14px 12px;
  text-align: left;
}

.yt-match-side--away {
  text-align: right;
  align-items: flex-end;
}

.yt-match-flag {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.10);
  object-fit: cover;
}

.yt-match-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.05;
  color: var(--white, #fff);
}

.yt-match-link:hover .yt-match-name { color: var(--teal, #00C2CB); }

.yt-match-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  min-width: 72px;
}

.yt-match-when {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim, rgba(255, 255, 255, 0.52));
  text-align: center;
  line-height: 1.3;
  margin-bottom: 4px;
}

.yt-match-when--live { color: var(--teal, #00C2CB); }

.yt-match-vs {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--dim, rgba(255, 255, 255, 0.52));
}

.yt-match-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--teal, #00C2CB);
  line-height: 1;
}

.yt-greeting {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white, #fff);
  margin-bottom: 4px;
}

.yt-sub {
  font-size: 13px;
  color: var(--muted, rgba(255, 255, 255, 0.70));
  margin-bottom: 12px;
}

.yt-body { margin-bottom: 12px; }

.yt-card {
  display: block;
  border: 1px solid rgba(0, 194, 203, 0.35);
  background: rgba(0, 194, 203, 0.06);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, background 140ms ease;
}

.yt-card-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.yt-flag {
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.yt-flag-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }

.yt-card-main { flex: 1; min-width: 0; }

.yt-card--static { cursor: default; }

.yt-card:hover {
  border-color: rgba(0, 194, 203, 0.55);
  background: rgba(0, 194, 203, 0.10);
}

.yt-state {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim, rgba(255, 255, 255, 0.52));
  margin-bottom: 8px;
}

.yt-state--live { color: var(--teal, #00C2CB); }

.yt-matchline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white, #fff);
  line-height: 1.2;
  margin-bottom: 6px;
}

.yt-meta {
  font-size: 13px;
  color: var(--muted, rgba(255, 255, 255, 0.70));
}

.yt-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal, #00C2CB);
}

.yt-empty {
  font-size: 14px;
  color: var(--muted, rgba(255, 255, 255, 0.70));
  line-height: 1.55;
  padding: 14px;
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
}

.yt-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.yt-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: filter 140ms ease, border-color 140ms ease, background 140ms ease;
}

.yt-btn--primary {
  background: var(--teal, #00C2CB);
  color: var(--navy, #0A1628);
  border: 1px solid var(--teal, #00C2CB);
}

.yt-btn--primary:hover { filter: brightness(1.06); }

.yt-btn--secondary {
  background: transparent;
  color: var(--white, #fff);
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
}

.yt-btn--secondary:hover { border-color: rgba(0, 194, 203, 0.35); }

.yt-activity-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white, #fff);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--div, rgba(255, 255, 255, 0.10));
}

.activity-list { display: flex; flex-direction: column; gap: 8px; }

.activity-item {
  display: block;
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, background 140ms ease;
}

.activity-item:hover {
  border-color: rgba(0, 194, 203, 0.30);
  background: rgba(0, 194, 203, 0.04);
}

.activity-item-type {
  font-size: 11px;
  color: var(--dim, rgba(255, 255, 255, 0.52));
  margin-bottom: 6px;
}

.activity-item-body {
  font-size: 13px;
  color: var(--body, rgba(255, 255, 255, 0.88));
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Discussion V2 ---- */
.disc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.disc-participants {
  font-size: 13px;
  color: var(--muted, rgba(255, 255, 255, 0.70));
}

.disc-tabs {
  display: flex;
  gap: 6px;
}

.disc-tab {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
  background: transparent;
  color: var(--dim, rgba(255, 255, 255, 0.52));
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.disc-tab:hover { color: var(--white, #fff); }

.disc-tab.is-on {
  color: var(--teal, #00C2CB);
  border-color: rgba(0, 194, 203, 0.35);
  background: rgba(0, 194, 203, 0.08);
}

.disc-author-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.disc-author-link:hover {
  color: var(--teal, #00C2CB);
  border-bottom-color: rgba(0, 194, 203, 0.4);
}

.disc-skeleton { display: flex; flex-direction: column; gap: 10px; }

/* Public profile — avatar thumbnail (always loaded; page CSS may load later) */
.up-avatar-btn,
.up-avatar-btn .up-avatar--img,
img.up-avatar.up-avatar--img {
  width: 88px;
  height: 88px;
  max-width: 88px;
  max-height: 88px;
  object-fit: cover;
  border-radius: 50%;
}

.up-avatar-btn {
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
}

/* Post media preview — always capped before page CSS loads */
.sf-post-media,
.sf-post-media--images,
.sf-post-media-item {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.sf-post-media-img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

.sf-post-media--count-1 .sf-post-media-img {
  max-height: 320px;
}

/* ---- Public profile ---- */
.profile-page { padding: 16px 0 80px; }

.profile-hero {
  text-align: center;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--div, rgba(255, 255, 255, 0.10));
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white, #fff);
  background: rgba(0, 194, 203, 0.15);
  border: 1px solid rgba(0, 194, 203, 0.35);
}

.profile-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--white, #fff);
  margin-bottom: 8px;
}

.profile-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 194, 203, 0.35);
  background: rgba(0, 194, 203, 0.08);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal, #00C2CB);
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}

.profile-team-badge:hover {
  background: rgba(0, 194, 203, 0.12);
  border-color: rgba(0, 194, 203, 0.55);
}

.profile-team-badge--static {
  cursor: default;
  text-decoration: none;
}

.profile-team-flag {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: cover;
}

.profile-post-link {
  color: var(--teal, #00C2CB);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
  text-decoration: none;
}

.profile-post-link:hover,
.profile-post-link:focus-visible {
  color: #00C2CB;
  opacity: 0.88;
}

.profile-joined {
  font-size: 12px;
  color: var(--dim, rgba(255, 255, 255, 0.52));
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.profile-stat {
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
  padding: 12px 8px;
  text-align: center;
}

.profile-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white, #fff);
}

.profile-stat-lab {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim, rgba(255, 255, 255, 0.52));
  margin-top: 2px;
}

.profile-activity { padding-top: 16px; }

.profile-activity h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white, #fff);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--div, rgba(255, 255, 255, 0.10));
}

.profile-post {
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
  padding: 12px 14px;
  margin-bottom: 8px;
}

.profile-post-meta {
  font-size: 11px;
  color: var(--dim, rgba(255, 255, 255, 0.52));
  margin-bottom: 6px;
}

.profile-post-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body, rgba(255, 255, 255, 0.88));
}

.intent-empty {
  font-size: 14px;
  color: var(--muted, rgba(255, 255, 255, 0.70));
  line-height: 1.55;
  padding: 14px;
  border: 1px solid var(--div, rgba(255, 255, 255, 0.10));
  background: rgba(255, 255, 255, 0.02);
}

@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
  .yt-card:hover { transform: none; }
}
