/* ------------------------------------------------------------
   📱 Bo-DONG — screens.css
   Styles pour les écrans supplémentaires (history, favorites, settings)
------------------------------------------------------------- */

/* Écran Intro */
#screen-intro {
  background: var(--cream);
}

.screen--intro {
  background: var(--cream);
}

.intro-content {
  text-align: center;
  width: 100%;
  max-width: 90%;
}

.intro-text {
  font-size: 24px;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: 400;
}

.intro-btn {
  padding: 16px 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-btn:active {
  transform: scale(0.98);
}

/* Écrans History, Favorites, Settings */
#screen-history,
#screen-favorites,
#screen-settings {
  background: var(--cream);
  padding-top: 80px;
}

.screen-content {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
}

.screen-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  text-align: center;
}

.screen-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-bottom: 20px;
}

.screen-item {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Item favori avec support swipe */
.favorite-item {
  touch-action: pan-y;
  cursor: grab;
}

.favorite-item:active {
  cursor: grabbing;
}

.screen-item-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 8px;
}

.screen-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-soft);
  gap: 8px;
}

/* Bouton de suppression */
.favorite-remove-btn {
  background: rgba(206, 108, 84, 0.1);
  border: 1px solid rgba(206, 108, 84, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--terracotta);
}

.favorite-remove-btn:hover {
  background: rgba(206, 108, 84, 0.2);
  transform: scale(1.05);
}

.favorite-remove-btn:active {
  transform: scale(0.95);
}

.screen-item-favorite {
  color: var(--terracotta);
  font-size: 14px;
}

.screen-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
  font-size: 15px;
}

/* Settings */
.settings-group {
  margin-bottom: 32px;
}

.settings-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.settings-toggle-group {
  display: flex;
  gap: 10px;
}

.settings-toggle-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-toggle-btn.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.settings-toggle-btn:active {
  transform: scale(0.98);
}

/* Dark mode pour les écrans */
body.theme-dark #screen-history,
body.theme-dark #screen-favorites,
body.theme-dark #screen-settings {
  background: transparent;
}

body.theme-dark .screen-title {
  color: #f5f3ec;
}

body.theme-dark .screen-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .screen-item-text {
  color: #f5f3ec;
}

body.theme-dark .screen-item-meta {
  color: rgba(245, 243, 236, 0.6);
}

body.theme-dark .favorite-remove-btn {
  background: rgba(206, 108, 84, 0.15);
  border-color: rgba(206, 108, 84, 0.3);
  color: #f5f3ec;
}

body.theme-dark .favorite-remove-btn:hover {
  background: rgba(206, 108, 84, 0.25);
}

body.theme-dark .screen-empty {
  color: rgba(245, 243, 236, 0.6);
}

body.theme-dark .settings-label {
  color: #f5f3ec;
}

body.theme-dark .settings-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f3ec;
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .settings-toggle-btn.active {
  background: rgba(206, 108, 84, 0.4);
  color: #f5f3ec;
  border-color: rgba(206, 108, 84, 0.6);
}

