/* ============================================
   Profile Page Styles
   ============================================ */

/* ---- Profile Card ---- */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

/* Decorative gradient background */
.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  opacity: 0.15;
}

.profile-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: var(--text-2xl);
  color: #fff;
  margin: 0 auto var(--space-4);
  position: relative;
  z-index: 1;
  border: 4px solid var(--bg-card);
}

.profile-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.profile-card__edit-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
}

.profile-card__edit-btn:hover {
  color: var(--color-primary-light);
  background: rgba(var(--color-primary-rgb), 0.1);
}

.profile-card__edit-btn .icon {
  width: 14px;
  height: 14px;
}

.profile-card__joined {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* ---- Wallet Display ---- */
.profile-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: rgba(var(--color-gold-rgb), 0.08);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  border-radius: var(--radius-full);
  margin: 0 auto;
  width: fit-content;
}

.profile-wallet .icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
}

.profile-wallet__amount {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-gold);
}

/* ---- Stats Grid ---- */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .profile-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}

.profile-stat__value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.profile-stat__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Recent Games ---- */
.profile-recent {
  margin-bottom: var(--space-6);
}

.profile-recent__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

/* ---- Diamond History ---- */
.diamond-history {
  margin-bottom: var(--space-6);
}

.diamond-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.diamond-row__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diamond-row__icon--earn {
  background: rgba(var(--color-green-rgb), 0.1);
  color: var(--color-green);
}

.diamond-row__icon--spend {
  background: rgba(var(--color-red-rgb), 0.1);
  color: var(--color-red);
}

.diamond-row__icon .icon {
  width: 16px;
  height: 16px;
}

.diamond-row__info {
  flex: 1;
  min-width: 0;
}

.diamond-row__desc {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.diamond-row__date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.diamond-row__amount {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.diamond-row__amount--positive {
  color: var(--color-green);
}

.diamond-row__amount--negative {
  color: var(--color-red);
}

/* ---- Settings Section ---- */
.profile-settings {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-color);
}

.profile-settings__row:last-child {
  border-bottom: none;
}

.profile-settings__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.profile-settings__label .icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.profile-settings__label-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.profile-settings__label-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
