/* ===========================
   HEXCOACH - Profile Page
   =========================== */

/* NAVBAR SEARCH */
.navbar-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: visible;
  padding: 4px 4px 4px 0;
  position: relative;
}

.ns-region {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 50px 0 0 50px;
  position: relative;
  transition: background 0.2s;
}

.ns-region:hover { background: rgba(59,130,246,0.08); }

.ns-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 200;
}

.ns-dropdown.open { display: block; }

.ns-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 6px 10px;
  width: 200px;
}

.ns-input::placeholder { color: var(--text-muted); }

.ns-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.2s;
}

.ns-btn:hover { transform: scale(1.1); }

/* PROFILE HEADER BG */
.profile-header-bg {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
}

.profile-header-orb {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
}

/* PROFILE HEADER (full-width above the grid) */
.profile-header-section {
  padding: 2.5rem 0 1.5rem;
  position: relative;
}

/* PROFILE LAYOUT (left sidebar + right main) */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  padding-bottom: 4rem;
  position: relative;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.profile-main {
  min-width: 0;
}

/* PAST SEASONS */
.past-seasons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.ps-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.ps-items {
  display: flex;
  gap: 12px;
}

.ps-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 3px 10px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  cursor: default;
  position: relative;
}

.ps-item strong { color: var(--text-primary); }

/* PLAYER IDENTITY */
.player-identity {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0;
}

.player-identity-left {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.other-accounts-horizontal {
  flex: 1;
  min-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
}

.player-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.player-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e3a6e, #2d5be3);
  border: 3px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 30px rgba(59,130,246,0.4);
}

.player-level {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1.5px solid var(--accent-blue);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.player-info {
  padding-top: 4px;
}

.player-name {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.player-tag {
  color: var(--text-muted);
  font-size: 1.4rem;
  font-weight: 400;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px;
}

.player-region-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.update-info {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* RANK CARDS (stacked vertically in sidebar) */
.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: all 0.2s;
}

.rank-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.rank-mode-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.rank-display {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.rank-emblem {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.rank-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.rank-lp {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rank-wr-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.rank-wl {
  font-size: 0.85rem;
  display: flex;
  gap: 4px;
  font-weight: 600;
}

.rank-winrate {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* DEEP DIVE */
.deepdive-title {
  margin-bottom: 1.5rem;
}

.deepdive-title h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.match-filters {
  margin-bottom: 1rem;
}

/* MATCH ROW */
.match-row {
  margin-bottom: 6px;
}

.match-band {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
}

.match-band:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.band-win { border-left: 3px solid var(--accent-green); }
.band-loss { border-left: 3px solid var(--accent-red); }

.match-champion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  min-width: 70px;
}

.match-champ-icon {
  font-size: 2rem;
  line-height: 1;
}

.match-champ-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.match-type-badge {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 16px;
  min-width: 110px;
}

.match-mode {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.match-kda {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 16px;
  min-width: 90px;
}

.kda-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.kda-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.match-cs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 16px;
  min-width: 60px;
}

.cs-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cs-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.match-duration {
  padding: 0 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 70px;
}

.match-ai-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  min-width: 80px;
}

.ai-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.ai-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-rank-badge {
  margin-left: auto;
  padding: 0 20px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.rank-pos {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.rank-pos-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* INSIGHT RIBBON */
.insight-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  cursor: pointer;
  transition: opacity 0.15s;
  border: 1px solid transparent;
  border-top: none;
}

.insight-ribbon:hover { opacity: 0.85; }

.ribbon-good {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.ribbon-bad {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.insight-icon { font-size: 0.85rem; flex-shrink: 0; }

.insight-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
  font-style: italic;
}

.insight-cta {
  font-size: 0.78rem;
  color: var(--accent-blue-bright);
  font-weight: 600;
  white-space: nowrap;
}

/* SIDEBAR */
.sidebar-section {
  margin-bottom: 1.5rem;
}

.other-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.other-account:hover { background: rgba(59,130,246,0.06); }

.oa-icon { font-size: 1.6rem; }

.oa-info { flex: 1; }

.oa-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.oa-tag {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.oa-rank {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 2px;
}

.oa-arrow {
  color: var(--text-muted);
}

/* CHAMPION LIST */
.champ-list, .duo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.champ-row, .duo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.champ-icon {
  font-size: 1.8rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.champ-info, .duo-info {
  flex: 1;
  min-width: 0;
}

.champ-name, .duo-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.champ-sub, .duo-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.champ-wr {
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}

.champ-wr-pct {
  font-size: 0.85rem;
  font-weight: 700;
}

.champ-kda {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 55px;
  text-align: right;
}

.duo-icon { font-size: 1.5rem; flex-shrink: 0; }

.duo-wr {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
