/**
 * My Account Dashboard & Upgrade Page Styles
 *
 * Mobile-first responsive design using existing brand tokens.
 * Extends: level-descriptions.css (Pro gold #d4a853), profile-menu.css
 */

/* Layout Container */

.salish-account-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header Section */

.salish-account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.salish-account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a853 0%, #b8923d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
}

.salish-account-header-content h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.salish-account-membership-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.salish-account-membership-badge.free {
  background: #f0f0f0;
  color: #666;
}

.salish-account-membership-badge.pro {
  background: linear-gradient(135deg, #d4a853 0%, #c69939 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.2);
}

/* Card Component */

.salish-account-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.salish-account-card-header {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.salish-account-card-header::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #d4a853;
  border-radius: 2px;
}

/* Upgrade CTA Card (Free Members) */

.salish-upgrade-cta-card {
  background: linear-gradient(135deg, #fffdf8 0%, #fff9eb 100%);
  border: 2px solid #d4a853;
}

.salish-upgrade-cta-text {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.salish-upgrade-cta-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.salish-upgrade-cta-features li {
  font-size: 14px;
  color: #333;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.salish-upgrade-cta-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #d4a853;
  font-weight: bold;
}

.salish-upgrade-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #d4a853 0%, #b8923d 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.salish-upgrade-cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
  color: white;
  text-decoration: none;
}

/* Pro Status Card (Pro Members) */

.salish-pro-status-card {
  background: linear-gradient(135deg, #f9fdf7 0%, #f5faf1 100%);
  border: 1px solid #d4a853;
}

.salish-pro-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #d4a853;
  color: white;
  border-radius: 50%;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.salish-pro-status-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.salish-pro-status-content strong {
  display: block;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 6px;
}

/* Account Settings Card */

.salish-account-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.salish-account-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.salish-account-info-label {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.salish-account-info-value {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
}

.salish-account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.salish-account-link {
  display: inline-block;
  padding: 10px 0;
  color: #d4a853;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.salish-account-link:hover {
  color: #b8923d;
  text-decoration: none;
}

/* Connected Apps Card */

.salish-connected-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.salish-connected-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.salish-connected-app-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.salish-connected-app-text {
  font-size: 14px;
  color: #333;
}

/* Danger Zone (Delete Account) */

.salish-danger-zone {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #f5f5f5;
}

.salish-delete-link {
  display: inline-block;
  color: #d32f2f;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.salish-delete-link:hover {
  color: #b71c1c;
  text-decoration: none;
}

/* My Learning Card */

.salish-my-learning-card {
  text-align: center;
}

.salish-my-learning-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.salish-my-learning-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}

.salish-my-learning-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f5f5f5;
  color: #1a1a1a;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.salish-my-learning-link:hover {
  background: #e8e8e8;
  color: #1a1a1a;
  text-decoration: none;
}

/* Upgrade Page: Hero Section */

.salish-upgrade-hero {
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
  border-radius: 16px;
  padding: 40px 24px;
  margin-bottom: 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.salish-upgrade-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: radial-gradient(circle at right center, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.salish-upgrade-hero-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.salish-upgrade-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Upgrade Page: Feature List */

.salish-upgrade-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.salish-upgrade-features li {
  font-size: 15px;
  color: #333;
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
}

.salish-upgrade-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #d4a853;
  font-weight: bold;
  font-size: 16px;
}

/* Upgrade Page: Upgrade Paths */

.salish-upgrade-paths {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.salish-upgrade-path {
  padding: 16px 0;
  border-bottom: 1px solid #e8e8e8;
}

.salish-upgrade-path:last-child {
  border-bottom: none;
}

.salish-upgrade-path-title {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.salish-upgrade-path-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

.salish-upgrade-web-btn {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #d4a853 0%, #b8923d 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.salish-upgrade-web-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
  color: white;
  text-decoration: none;
}

.salish-app-badges {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.salish-app-badge {
  display: inline-block;
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  color: #1a1a1a;
  transition: all 0.2s ease;
}

.salish-app-badge:hover {
  background: #e8e8e8;
  color: #1a1a1a;
  text-decoration: none;
}

/* Upgrade Page: Already Pro Login Prompt */

.salish-already-pro {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #f9fdf7 0%, #f5faf1 100%);
  border: 1px solid #d4a853;
  border-radius: 16px;
  margin-top: 32px;
}

.salish-already-pro-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 16px;
}

.salish-already-pro-link {
  display: inline-block;
  padding: 10px 20px;
  background: #f0f0f0;
  color: #1a1a1a;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.salish-already-pro-link:hover {
  background: #e8e8e8;
  color: #1a1a1a;
  text-decoration: none;
}

/* Upgrade Page: Already Pro Message (shown to Pro members) */

.salish-already-pro-message {
  background: linear-gradient(135deg, #f9fdf7 0%, #f5faf1 100%);
  border: 2px solid #d4a853;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
}

.salish-already-pro-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.salish-already-pro-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.salish-already-pro-desc {
  font-size: 15px;
  color: #666;
  margin: 0 0 24px;
}

.salish-back-to-account-link {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d4a853 0%, #b8923d 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.salish-back-to-account-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
  color: white;
  text-decoration: none;
}

/* Responsive: Tablet & Desktop */

@media (min-width: 768px) {
  .salish-account-container {
    padding: 40px 32px;
  }

  .salish-account-card {
    padding: 32px;
  }

  .salish-upgrade-hero {
    padding: 60px 40px;
  }

  .salish-upgrade-hero-title {
    font-size: 32px;
  }

  .salish-app-badges {
    justify-content: center;
  }
}
