/* Profil — tüm sekmeler (site marka paleti) */

.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background:
    linear-gradient(165deg, rgba(22, 119, 255, 0.07) 0%, transparent 42%),
    var(--site-surface-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 50px -24px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}

.profile-hero__mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.profile-hero__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 92% 8%, rgba(22, 119, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 45% 55% at 8% 92%, rgba(129, 140, 248, 0.12), transparent 52%);
}

.profile-hero__content {
  position: relative;
  padding: 1.35rem 1.35rem 1.15rem;
}

@media (min-width: 640px) {
  .profile-hero__content {
    padding: 1.65rem 1.85rem 1.35rem;
  }
}

.profile-hero__top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .profile-hero__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.profile-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(22, 119, 255, 0.14);
  padding: 0.2rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--site-accent-bright, #91caff);
}

.profile-hero__eyebrow-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85);
}

.profile-hero__identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.85rem;
}

.profile-hero__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
}

.profile-hero__avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 1.15rem;
  background: conic-gradient(
    from 220deg,
    rgba(56, 189, 248, 0.95),
    rgba(22, 119, 255, 0.9) 35%,
    rgba(129, 140, 248, 0.85) 65%,
    rgba(56, 189, 248, 0.35) 85%,
    rgba(30, 41, 59, 0.2) 100%
  );
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.profile-hero--ready .profile-hero__avatar-ring {
  opacity: 1;
}

.profile-hero__avatar {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 2px solid rgba(15, 23, 42, 0.65);
  background: linear-gradient(145deg, #003eb3 0%, #181f2e 55%, #0f172a 100%);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f9ff;
  text-shadow: 0 1px 12px rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-hero__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.profile-hero__name {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--site-text, #f8fafc);
}

@media (min-width: 640px) {
  .profile-hero__name {
    font-size: 1.85rem;
  }
}

.profile-hero__rank-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: linear-gradient(90deg, rgba(22, 119, 255, 0.2), rgba(129, 140, 248, 0.12));
  padding: 0.15rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #bae6fd;
}

.profile-hero__meta {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--site-text-muted, #94a3b8);
}

.profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

@media (min-width: 640px) {
  .profile-hero__stats {
    width: auto;
    min-width: 13.5rem;
  }
}

.profile-hero__stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(22, 119, 255, 0.2);
  background: linear-gradient(165deg, rgba(22, 119, 255, 0.12) 0%, rgba(18, 24, 36, 0.92) 100%);
  padding: 0.65rem 0.8rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px -14px rgba(0, 0, 0, 0.45);
}

.profile-hero__stat--coins {
  border-color: rgba(251, 191, 36, 0.22);
  background: linear-gradient(165deg, rgba(251, 191, 36, 0.1) 0%, rgba(18, 24, 36, 0.92) 100%);
}

.profile-hero__stat-icon {
  display: flex;
  height: 2.1rem;
  width: 2.1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(15, 23, 42, 0.55);
  color: #7dd3fc;
}

.profile-hero__stat--coins .profile-hero__stat-icon {
  border-color: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

.profile-hero__stat-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.profile-hero__stat-body {
  min-width: 0;
}

.profile-hero__stat-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.profile-hero__stat-value {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

.profile-hero__stat--coins .profile-hero__stat-value {
  color: #fde68a;
}

.profile-hero__xp-panel {
  margin-top: 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(22, 119, 255, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(18, 24, 36, 0.75) 100%);
  padding: 0.9rem 1rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-hero__xp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.profile-hero__xp-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.profile-hero__xp-sub {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.85);
}

.profile-hero__xp-target {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
  text-align: right;
}

.profile-hero__xp-track-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-hero__xp-track {
  position: relative;
  flex: 1 1 auto;
  height: 0.65rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(22, 119, 255, 0.15);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.profile-hero__xp-fill {
  position: relative;
  height: 100%;
  min-width: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0ea5e9 0%, #1677ff 48%, #818cf8 100%);
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-hero__xp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: profile-hero-xp-shine 2.8s ease-in-out infinite;
}

@keyframes profile-hero-xp-shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(220%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-hero__xp-fill::after {
    animation: none;
  }

  .profile-hero__xp-fill {
    transition: none;
  }
}

.profile-hero__xp-pct {
  flex-shrink: 0;
  min-width: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #7dd3fc;
}

.profile-hero--guest .profile-hero__stats,
.profile-hero--guest .profile-hero__xp-panel {
  display: none;
}

.profile-hero:not(.profile-hero--ready) .profile-hero__identity {
  opacity: 0.6;
}

.profile-panel {
  border-radius: 1rem;
  border: 1px solid var(--site-border-soft);
  background: var(--site-surface-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 32px -16px rgba(0, 0, 0, 0.4);
}

.profile-card,
.profile-tg-card {
  border-radius: 0.75rem;
  border: 1px solid var(--site-border);
  background: var(--site-surface-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 32px -16px rgba(0, 0, 0, 0.45);
}

.profile-panel-inner,
.profile-tg-panel {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.14);
  background: var(--site-raised-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-field {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.14);
  background: var(--site-raised-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-row {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.12);
  background: var(--site-raised-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.profile-row:hover {
  border-color: rgba(22, 119, 255, 0.26);
  background: var(--site-elevated-gradient);
}

.profile-dl-cell {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.14);
  background: linear-gradient(
    165deg,
    rgba(22, 119, 255, 0.1) 0%,
    rgba(32, 42, 58, 0.88) 50%,
    rgba(18, 24, 36, 0.92) 100%
  );
  box-shadow: inset 0 1px 0 rgba(96, 165, 250, 0.06);
}

.profile-stat,
.profile-tg-stat {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.2);
  background: linear-gradient(
    165deg,
    rgba(22, 119, 255, 0.14) 0%,
    rgba(32, 42, 58, 0.92) 48%,
    rgba(18, 24, 36, 0.95) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.08),
    0 8px 20px -12px rgba(0, 0, 0, 0.4);
}

.profile-stat__value,
.profile-tg-stat__value {
  color: var(--site-text);
}

.profile-stat__value--accent,
.profile-tg-stat__value--accent {
  color: var(--site-accent-bright);
}

.profile-list-item,
.profile-tg-leaderboard__item {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.12);
  background: var(--site-raised-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-list-item:hover,
.profile-tg-leaderboard__item:hover {
  border-color: rgba(22, 119, 255, 0.28);
  background: var(--site-elevated-gradient);
}

.profile-rank,
.profile-tg-rank {
  border-radius: 0.5rem;
  background: rgba(22, 119, 255, 0.18);
  color: var(--site-accent-bright);
  box-shadow: inset 0 1px 0 rgba(96, 165, 250, 0.12);
}

.profile-alert,
.profile-tg-alert {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.35);
  background: linear-gradient(
    165deg,
    rgba(22, 119, 255, 0.16) 0%,
    rgba(22, 119, 255, 0.12) 100%
  );
  color: #c7dcf5;
}

.profile-muted,
.profile-tg-text {
  color: var(--site-text-muted);
}

.profile-label,
.profile-tg-label {
  color: var(--site-text-soft);
}

.profile-text-strong,
.profile-tg-text-strong {
  color: var(--site-text);
}

.profile-tab-idle {
  border-color: rgba(22, 119, 255, 0.14) !important;
  background: var(--site-raised-gradient) !important;
  color: var(--site-text-muted) !important;
}

.profile-tab-idle:hover {
  border-color: rgba(22, 119, 255, 0.28) !important;
  background: var(--site-elevated-gradient) !important;
  color: var(--site-text) !important;
}

.profile-pager-btn {
  border-color: rgba(22, 119, 255, 0.2) !important;
  background: var(--site-raised-gradient) !important;
  color: var(--site-text-muted) !important;
}

.profile-pager-btn:hover:not(:disabled) {
  border-color: rgba(22, 119, 255, 0.4) !important;
  background: var(--site-elevated-gradient) !important;
  color: var(--site-text) !important;
}

.profile-choice {
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 119, 255, 0.14);
  background: var(--site-raised-gradient);
  color: var(--site-text-muted);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.profile-choice:has(input:checked) {
  border-color: rgba(22, 119, 255, 0.4);
  background: linear-gradient(
    165deg,
    rgba(22, 119, 255, 0.14) 0%,
    rgba(32, 42, 58, 0.95) 100%
  );
  color: var(--site-text);
}

/* Açık tema */
[data-theme="light"] .profile-panel,
[data-theme="light"] .profile-card,
[data-theme="light"] .profile-tg-card {
  border-color: rgba(22, 119, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px -12px rgba(22, 119, 255, 0.12);
}

[data-theme="light"] .profile-panel-inner,
[data-theme="light"] .profile-field,
[data-theme="light"] .profile-row,
[data-theme="light"] .profile-list-item,
[data-theme="light"] .profile-tg-panel {
  border-color: rgba(22, 119, 255, 0.12);
}

[data-theme="light"] .profile-dl-cell,
[data-theme="light"] .profile-stat,
[data-theme="light"] .profile-tg-stat {
  border-color: rgba(22, 119, 255, 0.2);
  background: linear-gradient(
    165deg,
    rgba(22, 119, 255, 0.08) 0%,
    rgba(241, 245, 249, 0.98) 55%,
    rgba(255, 255, 255, 0.98) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .profile-tab-idle {
  background: var(--site-raised) !important;
}

[data-theme="light"] .profile-pager-btn {
  background: var(--site-raised) !important;
}

[data-theme="light"] .profile-alert,
[data-theme="light"] .profile-tg-alert {
  border-color: rgba(22, 119, 255, 0.28);
  background: linear-gradient(165deg, rgba(22, 119, 255, 0.12) 0%, rgba(224, 242, 254, 0.85) 100%);
  color: #003eb3;
}

[data-theme="light"] .profile-rank,
[data-theme="light"] .profile-tg-rank {
  background: rgba(22, 119, 255, 0.14);
  color: #1677ff;
}

[data-theme="light"] .profile-choice {
  background: var(--site-raised);
}

[data-theme="light"] .profile-choice:has(input:checked) {
  background: linear-gradient(165deg, rgba(22, 119, 255, 0.1) 0%, rgba(224, 242, 254, 0.9) 100%);
}

[data-theme="light"] .profile-hero {
  border-color: rgba(22, 119, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 40px -20px rgba(22, 119, 255, 0.16);
}

[data-theme="light"] .profile-hero__mesh {
  opacity: 0.2;
}

[data-theme="light"] .profile-hero__avatar {
  color: #003eb3;
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, #dbeafe 0%, #f8fafc 100%);
}

[data-theme="light"] .profile-hero__stat {
  background: linear-gradient(165deg, rgba(22, 119, 255, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
}

[data-theme="light"] .profile-hero__stat-value {
  color: #0f172a;
}

[data-theme="light"] .profile-hero__stat--coins .profile-hero__stat-value {
  color: #b45309;
}

[data-theme="light"] .profile-hero__xp-panel {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

[data-theme="light"] .profile-hero__xp-track {
  background: rgba(226, 232, 240, 0.95);
}

[data-theme="light"] .profile-hero__rank-pill {
  color: #0958d8;
}
