/* === FULLSCREEN ONBOARDING (HODEUS DESIGN) === */
/* ================================================= */

.onboarding-fullscreen-container {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background-color: #000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.onboarding-fullscreen-container.active {
  display: flex;
  animation: fadeIn_v10 0.5s ease;
}

.onboarding-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, #1e1b4b 0%, #000000 60%);
  z-index: 0;
}

.onboarding-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* Header */
.onboarding-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-bottom: 20px;
}

.ob-logo {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

.ob-progress-track {
  width: 100px;
  height: 6px;
  background: #27272a;
  border-radius: 10px;
  overflow: hidden;
}

.ob-progress-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Steps */
.ob-step-container {
  display: none;
  animation: slideInFromRight_v10 0.4s ease;
  flex: 1;
}

.ob-step-container.active {
  display: flex;
  flex-direction: column;
}

.ob-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.1;
}

.ob-subtitle {
  font-size: 1rem;
  color: #a1a1aa;
  margin-bottom: 30px;
}

/* Avatar Upload */
.ob-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.ob-avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #18181b;
  transition: transform 0.2s;
}

.ob-avatar-circle:active {
  transform: scale(0.95);
}

.ob-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ob-avatar-edit-icon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.2rem;
  padding: 5px;
  text-align: center;
}

.ob-hint {
  font-size: 0.8rem;
  color: #71717a;
  margin-top: 10px;
}

/* Inputs & Grids */
.ob-input-group {
  margin-bottom: 25px;
}

.ob-input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 10px;
}

.ob-text-input {
  width: 100%;
  padding: 16px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  color: #fff;
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}

.ob-text-input:focus {
  border-color: var(--accent-primary);
}

.ob-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ob-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.ob-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
}

.ob-option-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 15px 5px;
  color: #a1a1aa;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}

.ob-option-card.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 5px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.ob-option-card i {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

/* Footer */
.ob-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
}

.ob-btn {
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.ob-btn.primary {
  background: #fff;
  color: #000;
  width: 100%;
  max-width: 180px;
}

.ob-btn.secondary {
  background: transparent;
  color: #a1a1aa;
}


/* KÃ¼Ã§Ã¼k ekranlar iÃ§in responsive ayarlar */
@media (max-width: 480px) {
  .modal-overlay-container#onboardingModalContainer .onboarding-dialog {
    border-radius: var(--radius-lg);
    /* Mobil cihazlarda daha az yuvarlak kÃ¶ÅŸe */
  }

  .onboarding-header {
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 3);
  }

  .onboarding-header .modal-header {
    font-size: var(--font-size-lg);
  }

  .onboarding-step-title {
    font-size: var(--font-size-base);
  }

  .onboarding-content {
    padding: 0 calc(var(--spacing-unit) * 4);
  }

  .onboarding-choice-grid {
    grid-template-columns: 1fr;
    /* KÃ¼Ã§Ã¼k ekranlarda tek sÃ¼tun */
    gap: calc(var(--spacing-unit) * 2);
  }

  .onboarding-choice-button i {
    font-size: 1.8em;
    margin-bottom: calc(var(--spacing-unit) * 1);
  }

  .onboarding-navigation {
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 4);
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
    justify-content: center;
  }

  .onboarding-navigation .button {
    flex-grow: 1;
  }
}

/* ============================================================= */
/* === YENÄ° SOHBET AYARLARI MODALI (V3 - GÃ–RSELDEKÄ° GÄ°BÄ°) === */
/* ============================================================= */
#chatSpecificSettingsModal {
  z-index: 8500;
  /* DÃœZELTME: Hizalama kaldÄ±rÄ±ldÄ±, bÃ¶ylece iÃ§erik tÃ¼m alanÄ± kaplayabilir. */
  padding: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#chatSpecificSettingsModal .modal-dialog-content {
  width: 100% !important;
  max-width: 100% !important;
  /* Mobilde tam geniÅŸlik */
  background-color: var(--bg-main);
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  padding: 0;
  margin: 0 !important;
  border: none !important;
  animation: slideInFromBottom_v10 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: none !important;
  overflow: hidden;
}

@media (min-width: 769px) {
  #chatSpecificSettingsModal .modal-dialog-content {
    max-width: 480px !important;
    height: 85vh !important;
    max-height: 85vh !important;
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  }
}

@media (min-width: 600px) {
  #chatSpecificSettingsModal .modal-dialog-content {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-height: 80vh;
    height: auto;
    /* DÃœZELTME: YÃ¼ksekliÄŸi iÃ§eriÄŸe gÃ¶re ayarla. */
    animation: popIn_v10 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }
}

/* Ãœst Karakter Bilgisi AlanÄ± */
.cs-header-profile-wrapper-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* DÃœZELTME: Ãœstteki aÅŸÄ±rÄ± boÅŸluk kaldÄ±rÄ±ldÄ±, telefonun durum Ã§ubuÄŸu iÃ§in gÃ¼venli alan bÄ±rakÄ±ldÄ±. */
  padding: calc(var(--spacing-unit) * 4 + env(safe-area-inset-top)) calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 4);
  border-bottom: 1px solid var(--border-color);
}

.cs-profile-avatar-v2 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg-main), 0 4px 12px var(--shadow-medium);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.cs-profile-name-v2 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.cs-close-button-v2 {
  position: absolute;
  /* DÃœZELTME: Kapatma butonunu durum Ã§ubuÄŸunu hesaba katarak konumlandÄ±r. */
  top: calc(var(--spacing-unit) * 3 + env(safe-area-inset-top));
  right: calc(var(--spacing-unit) * 3);
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.cs-close-button-v2:hover {
  background-color: var(--bg-hover);
}

/* Ayar GruplarÄ± */
#chatSpecificSettingsModal .modal-scrollable-content {
  padding: calc(var(--spacing-unit) * 3);
}

.cs-settings-group {
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-input);
  overflow: hidden;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.cs-settings-group:last-child {
  margin-bottom: 0;
}

.cs-settings-item {
  display: flex;
  align-items: center;
  padding: calc(var(--spacing-unit) * 4);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}

.cs-settings-group .cs-settings-item:last-child {
  border-bottom: none;
}

.cs-settings-item:hover {
  background-color: var(--bg-hover);
}

.cs-item-left {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 4);
  flex-grow: 1;
}

.cs-settings-item .cs-item-icon {
  font-size: 1.1em;
  color: var(--text-secondary);
  width: 20px;
  text-align: center;
}

.cs-settings-item .cs-item-label {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.cs-settings-item .cs-item-value,
.cs-settings-item .cs-item-chevron {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.cs-settings-item .cs-item-value {
  font-size: var(--font-size-sm);
  margin-right: calc(var(--spacing-unit) * 2);
}

.cs-settings-item .cs-item-chevron {
  font-size: 0.9em;
}

/* Bildirim NoktasÄ± */
.cs-settings-item .cs-item-notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green-dark);
  margin-right: calc(var(--spacing-unit) * 2.5);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-green-dark);
}

/* Toggle Switch'ler */
.cs-settings-item .switch {
  transform: scale(0.9);
}

.switch .slider-track {
  background-color: var(--bg-content);
}

/* Ã–zel Renkli Ä°konlar */
.cs-settings-item .success-icon {
  color: var(--accent-green);
}

.cs-settings-item .danger-icon {
  color: var(--accent-red);
}


/* =================================================================== */
/* === YENÄ° SOHBET Ã–ZELLEÅžTÄ°RME MODALI (GÃ–RÃœNÃœM) STÄ°LLERÄ° V4 === */
/* =================================================================== */
#csCustomizationModal .modal-dialog-content {
  width: 100%;
  height: 100%;
  max-height: 100svh;
  border-radius: 0;
  padding: 0;
  background-color: var(--bg-main);
  animation: slideInFromRight_v10 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.cs-customization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  padding-top: calc(var(--spacing-unit) * 2 + env(safe-area-inset-top));
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-elevated-transparent);
  backdrop-filter: blur(var(--blur-intensity-current));
  -webkit-backdrop-filter: blur(var(--blur-intensity-current));
  flex-shrink: 0;
  position: sticky;
  /* DÃœZELTME: Header'Ä± yukarÄ±ya sabitle */
  top: 0;
  z-index: 10;
}

.cs-customization-header h3 {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 600;
}

#csCustomizationModal .modal-scrollable-content {
  padding: calc(var(--spacing-unit) * 4);
  overflow-y: auto;
  flex-grow: 1;
}

#csCustomizationModal .cs-setting-section {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.cs-setting-section:last-child {
  margin-bottom: 0;
}

.cs-setting-section h4 {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 3);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 calc(var(--spacing-unit) * 4) 0;
}

.cs-setting-section h4 i {
  color: var(--text-secondary);
  font-size: 1.1em;
}

/* Ã–nizleme AlanÄ± */
.cs-preview-wrapper {
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* DÃœZELTME: Ä°Ã§eriÄŸin taÅŸmasÄ±nÄ± engelle */
}

.cs-preview-chat-screen {
  width: 100%;
  height: 350px;
  background-color: var(--preview-bgMain, var(--bg-main));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-input);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.cs-preview-chat-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
  border-radius: var(--radius-lg);
}

.cs-preview-header,
.cs-preview-messages {
  position: relative;
  z-index: 1;
}

.cs-preview-header {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 2);
  flex-shrink: 0;
}

.cs-preview-header img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.cs-preview-header span {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cs-preview-messages {
  flex-grow: 1;
  padding: calc(var(--spacing-unit) * 2);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
  overflow: hidden;
}

.cs-preview-msg {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
  max-width: 75%;
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  line-height: 1.4;
  transition: all var(--transition-base);
  word-wrap: break-word;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cs-preview-msg.assistant {
  background-color: var(--preview-bgMessageAssistant, var(--bg-message-assistant));
  color: var(--preview-textPrimary, var(--text-primary));
  align-self: flex-start;
}

.cs-preview-msg.user {
  background-color: var(--preview-bgMessageUser, var(--bg-message-user));
  color: var(--preview-textOnAccent, var(--text-on-accent));
  align-self: flex-end;
}

/* YÃ¼kleme ButonlarÄ± */
.cs-upload-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 4);
  align-items: start;
  /* DÃœZELTME: Hizalama */
}

.cs-upload-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2.5);
}

.cs-upload-item label {
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-align: center;
  color: var(--text-secondary);
}

.cs-upload-item .button-group {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  width: 100%;
}

.cs-upload-item .button-group .button.small {
  flex-grow: 1;
  padding: calc(var(--spacing-unit) * 2.5);
  /* DÃœZELTME: ButonlarÄ± bÃ¼yÃ¼t */
  font-size: 1.1rem;
  background-color: var(--bg-content);
  /* DÃœZELTME: Arka plan rengi */
}

.cs-upload-item .button-group .button.small span {
  display: none;
  /* DÃœZELTME: Metinler her zaman gizli */
}

.cs-upload-item .button.small i.fa-magic-sparkles {
  color: var(--accent-secondary);
  /* AI ikonunu renklendir */
}

/* Renk SeÃ§ici */
.cs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
  justify-items: center;
  margin-top: calc(var(--spacing-unit) * 4);
}

.cs-color-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--border-input);
  transition: all var(--transition-fast);
}

.cs-color-swatch:hover {
  transform: scale(1.1);
}

.cs-color-swatch.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.color-picker-btn-full {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-input);
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-picker-btn-full:hover {
  transform: scale(1.1);
}

.pcr-app {
  z-index: 9990 !important;
  /* DÃœZELTME: z-index'i diÄŸer modallardan yÃ¼ksek yap */
}

@keyframes slideInFromRight_v10 {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.color-picker-btn-full {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-input);
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-picker-btn-full:hover {
  transform: scale(1.1);
}

.pcr-app {
  z-index: 9000 !important;
  /* Renk seÃ§ici aracÄ±nÄ±n modalÄ±n Ã¼stÃ¼nde kalmasÄ±nÄ± saÄŸlar */
}

@keyframes slideInFromRight_v10 {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================================= */
/* === NEURAL VAULT V2 (CYBERPUNK GLASS DESIGN) === */
/* ========================================================= */

/* 1. Modal KapsayÄ±cÄ± (Tam Ekran & Derinlik) */
#csMemoryModal .modal-dialog-content {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;

  /* Derin Siyah + Hafif GÃ¼rÃ¼ltÃ¼ Efekti */
  background-color: #050505 !important;
  background-image:
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.03) 0px, transparent 50%);

  display: flex;
  flex-direction: column;
  border: none !important;
}

/* 2. Header (Glassmorphism) */
#csMemoryModal .memory-header {
  padding: calc(15px + env(safe-area-inset-top)) 20px 15px 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
}

.mem-header-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mem-header-title i {
  -webkit-text-fill-color: initial;
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.mem-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mem-close-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.1);
}

/* 3. Ekleme AlanÄ± (Data Entry Terminal) */
.mem-add-section {
  padding: 20px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.5) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mem-input-group {
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mem-row {
  display: flex;
  gap: 5px;
}

.mem-input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  padding: 12px 15px !important;
  font-size: 0.95rem !important;
  outline: none !important;
  margin: 0 !important;
}

.mem-input::placeholder {
  color: #555;
}

.mem-select {
  background: #18181b !important;
  border: none !important;
  color: var(--accent-primary) !important;
  font-weight: 600;
  border-radius: 10px !important;
  padding: 0 15px !important;
  width: 110px;
  font-size: 0.85rem !important;
}

.mem-textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 10px !important;
  min-height: 70px;
  resize: none;
  border: 1px solid transparent !important;
  transition: all 0.2s;
}

.mem-textarea:focus {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--accent-primary) !important;
}

.mem-save-btn {
  background: var(--accent-primary);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px;
  margin: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.2s;
}

.mem-save-btn:active {
  filter: brightness(0.8);
}

/* 4. Liste AlanÄ± (Scroll) */
.mem-list-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Arama Ã‡ubuÄŸu */
.mem-search-bar {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  margin-bottom: 10px;
}

.mem-search-bar input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}

/* Tekil HafÄ±za KartÄ± (Data Strip) */
.mem-card {
  background: linear-gradient(90deg, #131313 0%, #0a0a0a 100%);
  border: 1px solid #222;
  border-left-width: 4px;
  /* Renk kodu iÃ§in */
  border-radius: 0 12px 12px 0;
  /* Sol taraf dÃ¼z */
  padding: 16px;
  position: relative;
  transition: transform 0.2s;
}

.mem-card:active {
  transform: scale(0.99);
  background: #181818;
}

.mem-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.mem-key {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.mem-tag {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

.mem-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.mem-delete-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #444;
  background: none;
  border: none;
  font-size: 1rem;
  padding: 5px;
}

.mem-delete-btn:active {
  color: #ef4444;
}

/* Renk KodlarÄ± */
.type-core {
  border-left-color: #f43f5e;
}

/* KÄ±rmÄ±zÄ± */
.type-bio {
  border-left-color: #eab308;
}

/* SarÄ± */
.type-world {
  border-left-color: #3b82f6;
}

/* Mavi */
.type-relation {
  border-left-color: #a855f7;
}

/* Mor */
.type-summary {
  border-left-color: #10b981;
}

/* YeÅŸil */

/* 5. Footer (Action Bar) */
.mem-footer {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid #222;
  display: flex;
  gap: 15px;
}

.mem-action-btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #333;
  background: #111;
  color: #ccc;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mem-action-btn.danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.mem-action-btn.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Empty State */
.mem-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #444;
  text-align: center;
  margin-top: 40px;
}

.mem-empty i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* YENÄ°: Tam Ekran GÃ¶rÃ¼ntÃ¼leyici (Pan & Zoom Destekli - DÃœZELTÄ°LMÄ°Åž) */
#fullscreenViewerOverlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  /* Daha koyu ve opak arka plan */
  z-index: 12000;
  /* En Ã¼stte olmasÄ± iÃ§in Ã§ok yÃ¼ksek z-index */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* Padding kaldÄ±rÄ±ldÄ±, tam ekran */
  cursor: default;
  transition: opacity 0.2s ease;
}

#fullscreenViewerOverlay.visible {
  display: flex;
}

#fullscreenViewerContent {
  background-color: transparent;
  border: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#closeFullscreenViewerBtn {
  position: fixed;
  /* Absolute yerine Fixed */
  top: 20px;
  right: 20px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 12005;
  /* Ä°Ã§erikten yÃ¼ksek */
}

#fullscreenImageDisplayContainer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#fullscreenImageDisplayContainer img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: grab;
  will-change: transform;
  border-radius: var(--radius-md);
  touch-action: none;
  /* YENÄ°: Dokunmatik hareketlerin Panzoom tarafÄ±ndan kontrol edilmesini saÄŸlar */
}

#fullscreenImageDisplayContainer img:active {
  cursor: grabbing;
}

#fullscreenImageToolbarActions {
  position: absolute;
  bottom: calc(var(--spacing-unit) * 4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated-transparent);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: var(--radius-full);
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  box-shadow: 0 2.5px 7px var(--shadow-soft);
  z-index: 2;
  border: 1px solid var(--border-color);
}

#fullscreenImageToolbarActions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  padding: calc(var(--spacing-unit) * 1.5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

#fullscreenImageToolbarActions button:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

#closeFullscreenViewerBtn {
  position: absolute;
  top: calc(var(--spacing-unit) * 2.5);
  right: calc(var(--spacing-unit) * 2.5);
  background: var(--bg-elevated-transparent);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
  z-index: 3;
}

#closeFullscreenViewerBtn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.08) rotate(90deg);
}

#fullscreenImageDisplayContainer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#fullscreenImageDisplayContainer img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: grab;
  will-change: transform;
  border-radius: var(--radius-md);
}

#fullscreenImageDisplayContainer img:active {
  cursor: grabbing;
}

#fullscreenImageToolbarActions {
  position: absolute;
  bottom: calc(var(--spacing-unit) * 4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated-transparent);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: var(--radius-full);
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  box-shadow: 0 2.5px 7px var(--shadow-soft);
  z-index: 2;
  border: 1px solid var(--border-color);
}

#fullscreenImageToolbarActions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  padding: calc(var(--spacing-unit) * 1.5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

#fullscreenImageToolbarActions button:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

#closeFullscreenViewerBtn {
  position: absolute;
  top: calc(var(--spacing-unit) * 2.5);
  right: calc(var(--spacing-unit) * 2.5);
  background: var(--bg-elevated-transparent);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
  z-index: 3;
}

#closeFullscreenViewerBtn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.08) rotate(90deg);
}

/* Toast Bildirimi (TEPEYE TAÅžINDI) */
#toastNotificationPopup {
  position: fixed;
  top: 80px;
  /* Header'Ä±n altÄ±nda kalacak ÅŸekilde yukarÄ± sabitledik */
  left: 50%;
  /* Bottom deÄŸerini iptal et */
  bottom: auto !important;

  /* Animasyon baÅŸlangÄ±Ã§ noktasÄ±: Hafif yukarÄ±da */
  transform: translate(-50%, -20px) scale(0.95);

  background-color: #1a1a1a;
  /* Daha net koyu arka plan */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Ä°nce Ã§erÃ§eve */
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 16px;
  /* Modern karemsi yuvarlak */

  z-index: 999999 !important;
  /* HER ÅžEYÄ°N ÃœSTÃœNDE */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  /* GÃ¼Ã§lÃ¼ gÃ¶lge */

  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Yaylanma efekti */
  pointer-events: none;

  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  /* Uzun metinler alt satÄ±ra geÃ§sin */
  max-width: 90%;
  width: max-content;

  /* BulanÄ±klÄ±k efekti */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#toastNotificationPopup.active {
  opacity: 1;
  /* GÃ¶rÃ¼nÃ¼r olduÄŸunda tam ortaya otur */
  transform: translate(-50%, 0) scale(1);
}

/* MasaÃ¼stÃ¼ iÃ§in konum ayarÄ± */
@media (min-width: 768px) {
  #toastNotificationPopup {
    top: 90px;
  }
}



/* ========================================== */
/* === YENÄ° DÄ°L SEÃ‡Ä°CÄ° (MODERN POPOVER) === */
/* ========================================== */
.language-selector-dropdown {
  position: relative;
  z-index: 10000;
}

/* Modern MenÃ¼ Kutusu (GeliÅŸtirilmiÅŸ) */
.language-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 15px);
  /* Butondan biraz daha aÅŸaÄŸÄ±da */
  right: -10px;
  /* SaÄŸa yasla */
  min-width: 160px;
  /* GeniÅŸliÄŸi sabitle */

  background-color: var(--bg-elevated);
  /* Tema rengine uygun arka plan */
  border: 1px solid var(--border-color);
  /* Ä°nce Ã§erÃ§eve */
  border-radius: 16px;
  /* Yuvarlak kÃ¶ÅŸeler */
  padding: 8px;
  /* Ä°Ã§ boÅŸluk */

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  /* Derin gölge */
  z-index: 9999999 !important; /* Maksimum katman */

  /* Animasyon */
  transform-origin: top right;
  animation: popIn_v10 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ãœstteki Ok Ä°ÅŸareti (Triangle) */
.language-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  /* Butonun ortasÄ±na denk gelecek ÅŸekilde ayarla */
  width: 12px;
  height: 12px;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.language-dropdown-menu.active {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* KÃ¼Ã§Ã¼k ÃœÃ§gen (Ok Ä°ÅŸareti) */
.language-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background-color: #18181b;
  border-top: 1px solid #27272a;
  border-left: 1px solid #27272a;
  transform: rotate(45deg);
}

/* Dil ButonlarÄ± (Yenilendi) */
.language-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;

  background: transparent;
  border: none;
  border-radius: 10px;

  color: var(--text-primary);
  /* Tema rengi */
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;

  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  z-index: 2;
}

.language-dropdown-menu button:hover {
  background-color: var(--bg-hover);
  color: var(--accent-primary);
}

/* SeÃ§ili Dil */
.language-dropdown-menu button.selected {
  background-color: color-mix(in srgb, var(--accent-primary) 15%, transparent);
  color: var(--accent-primary);
  font-weight: 700;
}

/* Hover Durumu */
.language-dropdown-menu button:hover {
  background-color: #27272a;
  color: #fff;
  transform: translateX(2px);
}

/* SeÃ§ili Dil (Mavi Tikli) */
.language-dropdown-menu button.selected {
  background-color: rgba(59, 130, 246, 0.1);
  /* Hafif mavi zemin */
  color: #60a5fa;
  /* Mavi yazÄ± */
  font-weight: 700;
}

/* SeÃ§ili Dil Ä°konu (Tik) */
.language-dropdown-menu button.selected::after {
  content: '\f00c';
  /* FontAwesome Check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px;
  font-size: 0.8rem;
}

/* Tema Renkleri Uyumu (Opsiyonel) */
body.hrt-theme .language-dropdown-menu button.selected {
  background-color: rgba(255, 105, 180, 0.1);
  color: #ff69b4;
}

.ai-settings-tab-button {
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 5);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
  text-align: center;
  user-select: none;
}

.ai-settings-tab-button:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.ai-settings-tab-button.active {
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: var(--accent-primary);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--accent-primary) 22%, transparent);
}

body.hrt-theme .ai-settings-tab-button.active {
  background-color: var(--accent-primary-hrt);
  color: var(--text-on-accent-hrt);
  border-color: var(--accent-primary-hrt);
}

body.cutecore-active .ai-settings-tab-button.active {
  background-color: var(--accent-primary-cutecore);
  color: var(--text-on-accent-cutecore);
  border-color: var(--accent-primary-cutecore);
}

/* Responsive: Butonlar yan yana kÃ¼Ã§Ã¼k ekranlarda da taÅŸmasÄ±n */
.ai-settings-tab-button-container {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  flex-wrap: wrap;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

/* YENÄ°: KeÅŸfet Sekmesi C.AI TasarÄ±mÄ± */
.cai-explore-container {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 4);
}

/* --- MODERN HAP MENÃœ TASARIMI (V2) --- */
.explore-pills-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px 5px 15px 5px;
  /* Alt kÄ±sÄ±mdan gÃ¶lge iÃ§in pay */
  -webkit-overflow-scrolling: touch;
  /* iOS akÄ±cÄ±lÄ±ÄŸÄ± */
  scrollbar-width: none;
  /* Firefox gizle */
  margin-bottom: 5px;
  align-items: center;
}

/* Scrollbar'Ä± Webkit'te gizle */
.explore-pills-nav::-webkit-scrollbar {
  display: none;
}

.explore-pill-button {
  flex-shrink: 0;
  padding: 10px 20px;
  /* Daha rahat dokunma alanÄ± */
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 30px;
  /* Tam yuvarlak */

  /* Modern Transparan GÃ¶rÃ¼nÃ¼m */
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* Ã‡ok ince zarif kenarlÄ±k */
  color: var(--text-secondary);

  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Yaylanma efekti */
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

/* Ä°kon AyarÄ± */
.explore-pill-button i {
  font-size: 1rem;
  opacity: 0.8;
}

/* Aktif Durum (C.AI Style - Net Kontrast) */
.explore-pill-button.active {
  background-color: var(--text-primary);
  /* Temaya gÃ¶re tam zÄ±t renk (Beyaz/Siyah) */
  color: var(--bg-app);
  /* Arka plan rengi (Siyah/Beyaz) */
  border-color: transparent;
  font-weight: 800;
  transform: scale(1.0);
  /* BÃ¼yÃ¼me yok, net duruÅŸ */
  box-shadow: none;
  /* Glow yok, flat tasarÄ±m */
}

/* Hover Durumu (Pasifken) */
.explore-pill-button:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* TÄ±klama Efekti */
.explore-pill-button:active {
  transform: scale(0.95);
}

/* --- MODERN KEÅžFET ARAMA Ã‡UBUÄžU (FIX) --- */
.explore-search-and-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  /* Alt Ä±zgara ile mesafe */
  padding: 0 5px;
  /* Yanlardan hafif boÅŸluk */
}

/* Arama Kutusu KapsayÄ±cÄ±sÄ± */
.explore-search-and-filter-bar .search-input-wrapper {
  flex-grow: 1;
  position: relative;
  height: 48px;
  /* Ä°deal dokunma yÃ¼ksekliÄŸi */
  background-color: rgba(255, 255, 255, 0.05);
  /* Hafif transparan zemin */
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* Ä°nce Ã§erÃ§eve */
  border-radius: 16px;
  /* Modern yuvarlak kÃ¶ÅŸeler */
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover Efekti */
.explore-search-and-filter-bar .search-input-wrapper:active {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

/* Arama Ä°konu */
.explore-search-and-filter-bar .search-input-wrapper i {
  position: absolute;
  left: 16px;
  font-size: 1.1rem;
  color: var(--accent-primary);
  /* Tema rengiyle vurgu */
  pointer-events: none;
}

/* Ä°Ã§indeki Metin Divi (Placeholder) */
.explore-search-and-filter-bar .search-input-wrapper div {
  padding-left: 48px;
  /* Ä°konun Ã¼zerine binmemesi iÃ§in boÅŸluk */
  color: var(--text-tertiary);
  /* Silik gri metin */
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Filtre SeÃ§im Kutusu (YanÄ±ndaki Opsiyonel Alan) */
.explore-search-and-filter-bar .select-wrapper {
  margin-bottom: 0;
  display: none;
  /* Mobilde karmaÅŸayÄ± Ã¶nlemek iÃ§in varsayÄ±lan gizli */
}

/* === ELITE KEÅžFET IZGARASI (NETFLIX / EMOCHI STYLE - FIXED) === */
#exploreItemsGrid.cai-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  /* 150px kaldÄ±rÄ±ldÄ±, dinamik hesaplama eklendi */
  padding: 10px 15px calc(var(--bottom-tab-bar-height) + env(safe-area-inset-bottom) + 20px) 15px;
}

@media (min-width: 600px) {
  #exploreItemsGrid.cai-grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }
}

/* EMOCHI STYLE EXPLORE CARDS (V8) */
.explore-item-card {
  position: relative;
  background-color: #1a1a1a;
  border-radius: 24px !important;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4.2;
  /* Emochi dikey formatÄ± */
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.explore-item-card:active {
  transform: scale(0.97);
}

.explore-card-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Alt Karartma (Emochi Style Gradient) */
/* Alt Karartma (Emochi Style Gradient) - Removed duplicated inset: 0 to avoid CSS over-constraint */
.explore-card-gradient-overlay {
  /* This first instance is purposefully left blank or minimalist because it is overridden perfectly below, but preventing inset: 0 from messing it up. */
}

/* Metin YerleÅŸimi */
.explore-card-text-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

/* Mesaj SayÄ±sÄ± (Sol Ãœstte veya Metin ÃœstÃ¼nde) */
.explore-card-stat-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.explore-card-title-modern {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-card-desc-modern {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ekle Butonu (+) - SaÄŸ Ãœstte Åžeffaf Daire */
.explore-add-overlay-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.2s ease;
}

.explore-add-overlay-btn:active {
  background: #ffffff;
  color: #000000;
  transform: scale(0.9);
}

.explore-card-title-modern {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
  /* 2 SatÄ±rla sÄ±nÄ±rla */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-card-stat-badge {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ekle Butonu (+) */
.explore-add-overlay-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 10;
  /* Her zaman gÃ¶rÃ¼nÃ¼r olsun ama silik olsun */
  opacity: 0.8;
}

.explore-add-overlay-btn:active {
  background: var(--accent-primary);
  opacity: 1;
  transform: scale(0.9);
}

/* === GELÄ°ÅžMÄ°Åž ARAMA EKRANI (C.AI / EMOCHI STYLE V3) === */
#advancedSearchOverlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  /* Saf Siyah */
  z-index: 99999 !important;
  display: none;
  flex-direction: column;
}

#advancedSearchOverlay.active {
  display: flex;
  animation: fadeIn_v10 0.2s ease-out;
}

/* 1. Header (Arama Ã‡ubuÄŸu) */
.search-header-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background-color: #000000;
  border-bottom: 1px solid #1f1f1f;
  flex-shrink: 0;
}

.search-input-container {
  flex: 1;
  position: relative;
  background-color: #1c1c1e;
  /* Koyu Gri */
  border-radius: 20px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  transition: background-color 0.2s;
}

.search-input-container:focus-within {
  background-color: #2c2c2e;
}

.search-icon {
  color: #8e8e93;
  font-size: 0.9rem;
  margin-right: 8px;
}

#realTimeSearchInput {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 1rem !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  height: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#realTimeSearchInput::placeholder {
  color: #8e8e93;
}

/* Arama inputu temizleme butonu 'x' default gizle */
#realTimeSearchInput::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.clear-input-btn {
  background: none;
  border: none;
  color: #8e8e93;
  font-size: 1rem;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cancel-search-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  white-space: nowrap;
}

/* 2. Ä°Ã§erik AlanÄ± */
.search-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.search-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* 3. Etiketler (Pills) */
.search-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-pill {
  background-color: #1c1c1e;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-pill:hover {
  background-color: #2c2c2e;
}

.search-pill.history-pill {
  background-color: #1c1c1e;
  color: #e5e5e5;
}

/* 4. Arama SonuÃ§ KartÄ± (Yatay - Resimdeki Gibi) */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Liste gÃ¶rÃ¼nÃ¼mÃ¼ iÃ§in az boÅŸluk */
}

.search-result-card-horizontal {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  background: transparent;
  cursor: pointer;
  border-bottom: 1px solid #1f1f1f;
  /* Alt Ã§izgi */
  transition: background-color 0.2s;
}

.search-result-card-horizontal:active {
  background-color: #1c1c1e;
}

.result-card-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  /* KÃ¶ÅŸeli yuvarlak */
  object-fit: cover;
  flex-shrink: 0;
  background-color: #1c1c1e;
}

.result-card-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-card-meta {
  font-size: 0.85rem;
  color: #8e8e93;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-card-desc {
  font-size: 0.85rem;
  color: #8e8e93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-card-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #8e8e93;
  background-color: #1c1c1e;
  padding: 2px 6px;
  border-radius: 6px;
  width: fit-content;
}

/* Trend Listesi Ã–zel */
.trend-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background-color: #111;
  border-radius: 16px;
  margin-bottom: 10px;
}

.trend-rank-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFD700;
  /* AltÄ±n */
  width: 20px;
  text-align: center;
  font-style: italic;
}

@media (min-width: 600px) {
  #exploreItemsGrid.cai-grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    /* Tablet/MasaÃ¼stÃ¼ iÃ§in esnek */
    gap: 16px;
  }
}

/* Kart TasarÄ±mÄ± (Aesthetic Soft Edges) */
.explore-item-card {
  position: relative;
  background-color: var(--bg-elevated);
  border-radius: 32px !important;
  /* Ã‡ok daha yumuÅŸak kenarlar */
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9 / 14;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.explore-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Kart Resmi */
.explore-card-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Karartma GradyanÄ± (Metin okunurluÄŸu iÃ§in) */
.explore-card-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  /* Sadece alt kÄ±smÄ± karart */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Metin Ä°Ã§eriÄŸi */
.explore-card-text-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.explore-card-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 2px;
}

.explore-card-stat-badge i {
  font-size: 0.7rem;
}

.explore-card-title-modern {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.explore-card-desc-modern {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

/* === ELITE BOTTOM SHEET (DETAY PANKARTI) === */
#exploreItemDetailBanner {
  position: fixed;
  inset: 0;
  z-index: 11000;
  /* En Ã¼stte olsun */
  display: flex;
  align-items: flex-end;
  /* Alta yasla */
  justify-content: center;

  background-color: rgba(0, 0, 0, 0.85);
  /* Koyu karartma */
  backdrop-filter: blur(5px);
  /* Hafif blur */

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

#exploreItemDetailBanner.visible {
  opacity: 1;
  visibility: visible;
}

.explore-banner-content {
  width: 100%;
  max-width: 600px;
  background-color: #141414;
  /* Koyu gri zemin */
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  padding: 30px 24px;
  /* iPhone safe area iÃ§in alt boÅŸluk */
  padding-bottom: calc(30px + env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  max-height: 85vh;
  /* EkranÄ±n %85'i */
  overflow-y: auto;
  position: relative;
}

#exploreItemDetailBanner.visible .explore-banner-content {
  transform: translateY(0);
}

/* Ãœstteki Gri Ã‡izgi (Tutacak) */
.explore-banner-content::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* GÃ¶rsel */
.explore-banner-image {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1f1f1f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

/* BaÅŸlÄ±k */
.explore-banner-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

/* AÃ§Ä±klama Metni (TemizlenmiÅŸ) */
.explore-banner-desc {
  font-size: 0.95rem;
  color: #a1a1aa;
  /* Gri */
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 100%;
  word-wrap: break-word;
}

/* Kapat Butonu (SaÄŸ Ãœst) */
#exploreBannerCloseBtn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

#exploreBannerCloseBtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Ekle Butonu */
.explore-banner-actions {
  width: 100%;
}

#exploreBannerAddBtn {
  background-color: var(--accent-primary);
  color: #fff;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px;
  border: none;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(var(--accent-primary-rgb), 0.4);
}

#exploreItemDetailBanner.visible .explore-banner-content {
  transform: translateY(0);
}

.explore-banner-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  /* Yuvarlak avatar */
  object-fit: cover;
  border: 4px solid var(--bg-content);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-top: -60px;
  /* KartÄ±n dÄ±ÅŸÄ±na taÅŸÄ±r */
  margin-bottom: 16px;
  background-color: var(--bg-content);
}

.explore-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.explore-banner-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 90%;
}

.explore-banner-actions {
  width: 100%;
  display: flex;
  gap: 12px;
}

#exploreBannerCloseBtn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ekle Butonu - DÃœZELTÄ°LDÄ° (Pankartlar ve Kartlar Ä°Ã§in) */
.explore-add-overlay-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  /* Ä°kon rengi her zaman beyaz */
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  /* En Ã¼stte olduÄŸundan emin ol */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 1 !important;
  /* Zorla gÃ¶rÃ¼nÃ¼r yap */
  visibility: visible !important;
}

.explore-add-overlay-btn:hover {
  transform: scale(1.15) rotate(90deg);
  /* Hover efekti */
  background-color: #ffffff;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Pankart (Banner) Ä°Ã§indeki Ekle Butonu */
#exploreBannerAddBtn {
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  border-radius: var(--radius-full);
  font-weight: 600;
  padding: 12px 20px;
  box-shadow: 0 4px 15px var(--shadow-medium);
}

/* Ä°Ã§erik alanÄ±nÄ± buton iÃ§in biraz yukarÄ± it */
.explore-card-text-content {
  padding-bottom: 40px;
}

body.hrt-theme #exploreStatusMessage .spinner-animation {
  border-left-color: var(--accent-primary-hrt);
}

body.cutecore-active #exploreStatusMessage .spinner-animation {
  border-left-color: var(--accent-primary-cutecore);
}

#exploreStatusMessage.loading .spinner-animation {
  display: block;
}

#exploreStatusMessage.loading .status-text-content {
  display: none;
}

#exploreStatusMessage.hidden {
  display: none;
}

/* exploreItemDetailBanner ile iliÅŸkili CSS kurallarÄ± kullanÄ±cÄ± isteÄŸi Ã¼zerine kaldÄ±rÄ±ldÄ±. */

/* ============================================= */
/* === YENÄ° SPLASH EKRANI (BEYAZ & DAHA HIZLI) === */
