/* OWEL User Profile & Settings CSS — Clean Light & Dark Theme Alignment */

body.theme-profile {
  background-color: #050508;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

body.theme-profile.light-mode {
  background-color: #eef2ff !important;
  color: #1e1b4b !important;
}

.profile-shell,
.settings-shell,
.privacy-dashboard-shell {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  padding: 16px 16px 90px 16px;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.profile-top-bar,
.settings-top-bar,
.privacy-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #09090e;
  border: 1px solid #1c1c28;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #ffffff;
  user-select: none;
  transition: all 0.2s ease;
}

body.theme-profile.light-mode .profile-icon-badge {
  background: #ffffff !important;
  border-color: #ddd6fe !important;
  color: #1e1b4b !important;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.08);
}

.settings-header-title,
.privacy-main-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

body.theme-profile.light-mode .settings-header-title,
body.theme-profile.light-mode .privacy-main-title {
  color: #1e1b4b !important;
}

.profile-hero-card,
.privacy-master-hero-card,
.settings-card-group {
  background: #09090e;
  border: 1px solid #1c1c28;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

body.theme-profile.light-mode .profile-hero-card,
body.theme-profile.light-mode .privacy-master-hero-card,
body.theme-profile.light-mode .settings-card-group {
  background: #ffffff !important;
  border-color: #ede9fe !important;
  color: #1e1b4b !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.06) !important;
}

body.theme-profile.light-mode .profile-username,
body.theme-profile.light-mode .profile-user-id,
body.theme-profile.light-mode .profile-bio-text,
body.theme-profile.light-mode .settings-card-title,
body.theme-profile.light-mode .privacy-hero-title {
  color: #1e1b4b !important;
}

body.theme-profile.light-mode .settings-card-sub,
body.theme-profile.light-mode .privacy-hero-sub {
  color: #64748b !important;
}

.profile-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.profile-username {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.profile-user-id {
  font-size: 0.8rem;
  opacity: 0.6;
  font-family: monospace;
}

.profile-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-tag {
  padding: 4px 10px;
  background: #141420;
  border: 1px solid #222232;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
}

body.theme-profile.light-mode .pill-tag {
  background: #f1f0fb !important;
  border-color: #ddd6fe !important;
  color: #5b21b6 !important;
}

.profile-toggles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.toggle-card {
  background: #09090e;
  border: 1px solid #1c1c28;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.theme-profile.light-mode .toggle-card {
  background: #ffffff !important;
  border-color: #ede9fe !important;
  color: #1e1b4b !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.05);
}

.toggle-card-label {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.theme-profile.light-mode .toggle-card-label {
  color: #1e1b4b !important;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-box {
  background: #09090e;
  border: 1px solid #1c1c28;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

body.theme-profile.light-mode .stat-box {
  background: #ffffff !important;
  border-color: #ede9fe !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.05);
}

.settings-footer-version {
  font-size: 0.76rem;
  color: #888899;
  font-weight: 600;
}

/* COMPLETE HIGH-CONTRAST LIGHT MODE OVERRIDES */
body.light-mode,
body.theme-profile.light-mode {
  background-color: #f4f3f9 !important;
  color: #1e1b4b !important;
}

body.light-mode #app,
body.theme-profile.light-mode #app {
  background-color: #f4f3f9 !important;
}

body.light-mode .discover-shell,
body.light-mode .profile-shell,
body.light-mode .settings-shell,
body.light-mode .privacy-dashboard-shell {
  background-color: #f4f3f9 !important;
  color: #1e1b4b !important;
}

body.light-mode div,
body.light-mode span,
body.light-mode p,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode label {
  color: inherit;
}

body.light-mode .settings-option-card,
body.light-mode .dm-perm-option-card,
body.light-mode .settings-card-group,
body.light-mode .toggle-card,
body.light-mode .profile-hero-card,
body.light-mode .privacy-master-hero-card,
body.light-mode .stat-box {
  background: #ffffff !important;
  border-color: #ede9fe !important;
  color: #1e1b4b !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.06) !important;
}

body.light-mode .settings-card-title,
body.light-mode .settings-card-info div,
body.light-mode .settings-card-left div,
body.light-mode .privacy-hero-title,
body.light-mode .privacy-main-title,
body.light-mode .settings-header-title,
body.light-mode .profile-username {
  color: #1e1b4b !important;
}

body.light-mode .settings-card-sub,
body.light-mode .privacy-hero-sub,
body.light-mode .privacy-sub-title {
  color: #64748b !important;
}

body.light-mode .bottom-nav-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #ede9fe !important;
  box-shadow: 0 -4px 20px rgba(124, 58, 237, 0.1) !important;
}

body.light-mode .nav-icon-item {
  color: #64748b !important;
}

body.light-mode .nav-icon-item.active {
  color: #7c3aed !important;
}

.stat-box-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8b5cf6;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-box-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

body.theme-profile.light-mode .stat-box-val {
  color: #1e1b4b !important;
}

.profile-main-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1c1c28;
  padding-bottom: 8px;
}

body.theme-profile.light-mode .profile-main-categories {
  border-bottom-color: #ede9fe !important;
}

.main-cat-tab {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #888899;
  cursor: pointer;
}

body.theme-profile.light-mode .main-cat-tab {
  color: #64748b !important;
}

.main-cat-tab.active {
  color: #ffffff;
  border-bottom: 2px solid #8b5cf6;
}

body.theme-profile.light-mode .main-cat-tab.active {
  color: #7c3aed !important;
  border-bottom-color: #7c3aed !important;
}

.verse-subcategories-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.subcat-pill {
  padding: 6px 12px;
  background: #09090e;
  border: 1px solid #1c1c28;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
}

body.theme-profile.light-mode .subcat-pill {
  background: #ffffff !important;
  border-color: #ede9fe !important;
  color: #64748b !important;
}

.subcat-pill.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #ffffff;
}

body.theme-profile.light-mode .subcat-pill.active {
  background: #ede9fe !important;
  border-color: #7c3aed !important;
  color: #5b21b6 !important;
}

.profile-feed-card-placeholder {
  background: #09090e;
  border: 1px dashed #1c1c28;
  border-radius: 18px;
  padding: 32px 20px;
  text-align: center;
}

body.theme-profile.light-mode .profile-feed-card-placeholder {
  background: #ffffff !important;
  border-color: #c4b5fd !important;
  color: #1e1b4b !important;
}

.profile-footer-end {
  font-size: 0.76rem;
  opacity: 0.5;
  text-align: center;
  margin-top: 24px;
}

/* Premium iOS-Style Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(120, 120, 128, 0.36);
  transition: background-color 0.25s ease;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: transform 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

input:checked + .slider {
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

