/* Profile specific styles */

.profile-header {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.profile-avatar {
  position: relative;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--border);
  object-fit: cover;
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest-600);
  border: 3px solid var(--surface-1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.avatar-edit:hover {
  background: var(--forest-700);
  transform: scale(1.1);
}

.avatar-edit svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.profile-stats-quick {
  display: flex;
  gap: 32px;
}

.stat-quick {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-quick-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-quick-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--forest-600);
}

/* Section */
.section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Balance Grid */
.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.balance-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.balance-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  stroke-width: 1.5;
}

.balance-card.time .balance-icon {
  color: #6366F1;
}

.balance-card.point .balance-icon {
  color: #F59E0B;
}

.balance-card.gems .balance-icon {
  color: #10B981;
}

.balance-info {
  flex: 1;
}

.balance-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.balance-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.balance-note {
  font-size: 12px;
  color: var(--text-secondary);
}

.balance-link {
  color: var(--forest-600);
  text-decoration: none;
  font-weight: 500;
}

.balance-link:hover {
  text-decoration: underline;
}

/* Card */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card.danger {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

/* Account Rows */
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.account-row:last-child {
  border-bottom: none;
}

.account-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.account-icon.discord {
  color: #5865F2;
}

.account-icon.steam {
  color: #1B2838;
}

.account-icon.game {
  color: var(--forest-600);
  stroke-width: 2;
}

.account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.account-id {
  font-size: 13px;
  color: var(--text-secondary);
}

.account-id.mono {
  font-family: 'Courier New', monospace;
}

.account-status {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.account-status.connected {
  background: var(--forest-100);
  color: var(--forest-700);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--forest-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: var(--forest-600);
  stroke-width: 1.5;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Settings */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
}

.setting-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.setting-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #CBD5E1;
  border-radius: 28px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
  background: var(--forest-600);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Danger Zone */
.danger-text {
  font-size: 14px;
  color: #991B1B;
  margin-bottom: 16px;
  padding: 0 24px;
  padding-top: 20px;
}

.danger-actions {
  display: flex;
  gap: 12px;
  padding: 0 24px 20px;
  flex-wrap: wrap;
}

.danger-btn {
  color: #DC2626;
  border-color: #FCA5A5;
}

.danger-btn:hover {
  background: #FEE2E2;
  border-color: #DC2626;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-stats-quick {
    justify-content: center;
  }

  .balance-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .danger-actions {
    flex-direction: column;
  }

  .danger-actions .btn {
    width: 100%;
  }
}
