/* ========================================
   IMANTURK ENGINE - MODERN UI
   ======================================== */

/* ========================================
   GLOBAL PAGE LOADER
   ======================================== */
.it-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

html.it-theme-dark .it-page-loader,
.it-theme-dark .it-page-loader {
  background: rgba(15, 23, 42, 0.9);
}

.it-page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.it-page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.it-page-loader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  animation: itLoaderPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(13, 148, 136, 0.3));
}

.it-page-loader-logo-fallback {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: itLoaderPulse 2s ease-in-out infinite;
}

@keyframes itLoaderPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.it-page-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--it-border, #e2e8f0);
  border-top-color: var(--it-primary, #0d9488);
  border-radius: 50%;
  animation: itLoaderSpin 0.8s linear infinite;
}

html.it-theme-dark .it-page-loader-spinner,
.it-theme-dark .it-page-loader-spinner {
  border-color: #334155;
  border-top-color: #14b8a6;
}

@keyframes itLoaderSpin {
  to { transform: rotate(360deg); }
}

.it-page-loader-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--it-muted, #64748b);
  text-align: center;
}

html.it-theme-dark .it-page-loader-text,
.it-theme-dark .it-page-loader-text {
  color: #94a3b8;
}

/* Mobile */
@media (max-width: 480px) {
  .it-page-loader-logo,
  .it-page-loader-logo-fallback {
    width: 64px;
    height: 64px;
    font-size: 2.5rem;
  }
  
  .it-page-loader-spinner {
    width: 32px;
    height: 32px;
  }
  
  .it-page-loader-text {
    font-size: 0.8rem;
  }
}

/* PWA standalone mode */
@media (display-mode: standalone) {
  .it-page-loader {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

:root {
  --it-bg: #f8fafc;
  --it-card: #ffffff;
  --it-text: #1e293b;
  --it-muted: #64748b;
  --it-primary: #0d9488;
  --it-primary-dark: #0f766e;
  --it-accent: #f59e0b;
  --it-border: #e2e8f0;
  --it-radius: 16px;
  --it-radius-sm: 10px;
  --it-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --it-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --it-transition: 0.2s ease;
  --it-font-ar: 'Amiri', 'Traditional Arabic', serif;
}

html.it-theme-dark,
.imanturk-root.it-theme-dark {
  --it-bg: #0f172a;
  --it-card: #1e293b;
  --it-text: #f1f5f9;
  --it-muted: #94a3b8;
  --it-border: #334155;
  --it-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --it-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ========================================
   BASE
   ======================================== */
.imanturk-root {
  background: var(--it-bg);
  color: var(--it-text);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  padding: 1rem;
  box-sizing: border-box;
}

.imanturk-root * {
  box-sizing: inherit;
}

/* ========================================
   HEADER
   ======================================== */
.it-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--it-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.it-header-left {
  flex: 1;
  min-width: 0;
}

.it-header-right {
  flex-shrink: 0;
}

.it-surah-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.it-surah-title-a {
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  font-weight: 700;
  font-family: var(--it-font-ar);
  color: var(--it-primary);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.it-surah-title-b {
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--it-muted);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.it-surah-title-c {
  font-size: clamp(0.7rem, 2vw, 0.875rem);
  color: var(--it-muted);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.it-theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--it-border);
  background: var(--it-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--it-transition);
}

.it-theme-toggle:hover {
  border-color: var(--it-primary);
  transform: scale(1.05);
}

/* ========================================
   TOOLBAR
   ======================================== */
.it-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.it-surah-switch {
  flex: 1;
  min-width: 200px;
}

.it-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--it-border);
  border-radius: var(--it-radius-sm);
  background: var(--it-card);
  color: var(--it-text);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-select:focus {
  outline: none;
  border-color: var(--it-primary);
}

.it-toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

.it-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--it-radius-sm);
  border: 2px solid var(--it-border);
  background: var(--it-card);
  color: var(--it-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--it-transition);
}

.it-icon-btn:hover {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: white;
}

.it-icon-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ========================================
   RESUME CARD
   ======================================== */
.it-resume-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(245, 158, 11, 0.1));
  border-radius: var(--it-radius);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-resume-card:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(245, 158, 11, 0.15));
  transform: translateY(-2px);
  box-shadow: var(--it-shadow);
}

.it-resume-icon {
  font-size: 1.5rem;
}

.it-resume-content {
  flex: 1;
}

.it-resume-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--it-muted);
  margin-bottom: 0.25rem;
}

.it-resume-body {
  font-size: 0.9rem;
  color: var(--it-text);
}

/* ========================================
   AYAH LIST
   ======================================== */
.it-main {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 180px;
}

.it-ayah-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.it-ayah-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--it-card);
  border-radius: var(--it-radius);
  box-shadow: var(--it-shadow);
  cursor: pointer;
  transition: var(--it-transition);
  position: relative;
}

.it-ayah-card:hover {
  box-shadow: var(--it-shadow-lg);
  transform: translateY(-2px);
}

.it-ayah-card.active-ayah {
  border: 2px solid var(--it-primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.it-ayah-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--it-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.it-ayah-content {
  flex: 1;
  min-width: 0;
}

.it-ayah-ar {
  font-family: var(--it-font-ar);
  font-size: 1.5rem;
  line-height: 2;
  text-align: right;
  direction: rtl;
  margin-bottom: 0.5rem;
  color: var(--it-text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.it-ayah-translit {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--it-primary);
  font-style: italic;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--it-border);
  border-bottom: 1px dashed var(--it-border);
}

.it-ayah-translation {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--it-muted);
}

.it-ayah-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--it-radius-sm);
  border-left: 3px solid var(--it-accent);
}

.it-ayah-note-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.it-ayah-note-body {
  font-size: 0.85rem;
  color: var(--it-text);
}

.it-ayah-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.it-ayah-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--it-border);
  background: var(--it-card);
  color: var(--it-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--it-transition);
}

.it-ayah-action-btn:hover {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: white;
  transform: scale(1.1);
}

.it-ayah-action-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ========================================
   PLAYER FOOTER
   ======================================== */
.it-player-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--it-card);
  border-top: 1px solid var(--it-border);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.it-player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--it-muted);
}

.it-player-current {
  font-weight: 500;
}

.it-player-points {
  color: var(--it-accent);
  font-weight: 600;
}

.it-player-controls {
  margin-bottom: 0.5rem;
}

.it-player-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.it-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--it-border);
  background: var(--it-card);
  color: var(--it-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--it-transition);
}

.it-nav-btn:hover {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: white;
}

.it-nav-btn-play {
  width: 52px;
  height: 52px;
  background: var(--it-primary);
  border-color: var(--it-primary);
  color: white;
}

.it-nav-btn-play:hover {
  background: var(--it-primary-dark);
  border-color: var(--it-primary-dark);
}

.it-nav-btn-play.is-active {
  background: var(--it-accent);
  border-color: var(--it-accent);
  color: white;
}

.it-nav-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.it-audio {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  outline: none;
}

.it-modal .it-audio {
  margin-top: 1rem;
}

/* ========================================
   MODALS
   ======================================== */
.it-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

/* Studio modal daha üstte olmalı */
.it-modal-backdrop[data-it-modal="studio"] {
  z-index: 1100;
}

.it-modal {
  background: var(--it-card);
  border-radius: var(--it-radius);
  box-shadow: var(--it-shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.it-modal-studio {
  max-width: 450px;
  width: 95%;
}

.it-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--it-border);
}

.it-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--it-text);
}

.it-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--it-border);
  background: var(--it-card);
  color: var(--it-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--it-transition);
}

.it-modal-close-btn:hover {
  border-color: #ef4444;
  background: #ef4444;
  color: white;
}

.it-modal-close-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.it-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}

/* ========================================
   STUDIO MODAL
   ======================================== */
.it-studio-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.it-studio-preview-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.it-studio-preview {
  width: 270px;
  height: 480px;
  border-radius: 16px;
  background: #1e293b;
  background-image: var(--studio-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

.it-studio-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.it-studio-ayah-ar {
  font-family: var(--it-font-ar);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  padding: 0 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  max-height: 50%;
  flex-shrink: 1;
}

.it-studio-ayah-translation {
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  padding: 0 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  max-height: 35%;
  flex-shrink: 1;
  margin-bottom: 50px; /* Logo için alan bırak */
}

.it-studio-logo {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: auto;
  opacity: 0.85;
  z-index: 2;
}

.it-studio-logo img {
  width: 100%;
  height: auto;
  max-height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.it-studio-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
  padding: 0.5rem;
  background: var(--it-bg-elevated);
  border-radius: 12px;
}

.it-studio-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.it-studio-section label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--it-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.it-studio-backgrounds,
.it-studio-colors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Arka plan küçük yuvarlak butonlar */
.it-studio-bg-thumb {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--it-border);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: block;
  position: relative;
}

.it-studio-bg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.it-studio-bg-thumb.is-active {
  border-color: var(--it-primary);
  box-shadow: 0 0 0 3px var(--it-primary-light, rgba(0,96,100,0.3));
  transform: scale(1.15);
}

.it-studio-bg-thumb:hover {
  transform: scale(1.15);
  border-color: var(--it-primary);
}

/* Renk küçük yuvarlak butonlar */
.it-studio-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--it-border);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.3);
}

.it-studio-color-swatch.is-active {
  border-color: var(--it-primary);
  box-shadow: 0 0 0 3px var(--it-primary-light, rgba(0,96,100,0.3));
  transform: scale(1.15);
}

.it-studio-color-swatch:hover {
  transform: scale(1.15);
  border-color: var(--it-primary);
}

.it-btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--it-primary);
  color: white;
  border: none;
  border-radius: var(--it-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-btn-download:hover {
  background: var(--it-primary-dark);
}

.it-btn-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   MOOD SECTION
   ======================================== */
.imanturk-moods {
  padding: 1.5rem;
  background: var(--it-card);
  border-radius: var(--it-radius);
  box-shadow: var(--it-shadow);
}

.imanturk-moods h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--it-text);
  font-weight: 600;
}

.imanturk-moods p {
  color: var(--it-muted);
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.it-mood-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.it-btn-mood {
  padding: 0.625rem 1rem;
  border: 2px solid var(--it-border);
  border-radius: 999px;
  background: var(--it-card);
  color: var(--it-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-btn-mood:hover {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: white;
}

.it-mood-ayah-card {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.it-mood-ayah-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--it-primary), var(--it-primary-dark, #004d40));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 0 auto 1rem auto;
}

.it-mood-ayah-content {
  text-align: center;
  width: 100%;
}

.it-mood-ayah-card .it-ayah-ar {
  font-family: var(--it-font-ar);
  font-size: 1.75rem;
  line-height: 2.4;
  margin-bottom: 1.25rem;
  text-align: center;
  direction: rtl;
  color: var(--it-text);
  padding: 0.5rem;
  background: rgba(0,96,100,0.03);
  border-radius: 8px;
}

.it-mood-ayah-card .it-ayah-translation {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--it-text);
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.it-mood-ref {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--it-primary), var(--it-primary-dark, #004d40));
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.it-mood-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.it-mood-another,
.it-mood-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--it-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--it-transition);
  border: 2px solid var(--it-border);
}

.it-mood-another {
  background: var(--it-card);
  color: var(--it-text);
}

.it-mood-another:hover {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: white;
}

.it-mood-studio {
  background: var(--it-primary);
  color: white;
  border-color: var(--it-primary);
}

.it-mood-studio:hover {
  background: var(--it-primary-dark);
  border-color: var(--it-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.it-mood-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--it-muted);
}

.it-mood-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--it-muted);
}

.it-mood-error span {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.it-mood-error p {
  margin: 0;
}

.it-mood-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Mood butonları yukarıda tanımlı, burada tekrar tanımlanmış - yukarıdaki kullanılıyor */

.it-mood-error {
  text-align: center;
  color: var(--it-muted);
  padding: 2rem;
}

/* ========================================
   FOREST - MANEVI ORMAN
   ======================================== */
.it-forest-desc {
  color: var(--it-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.it-forest-guest {
  color: var(--it-muted);
  font-style: italic;
  text-align: center;
}

/* Ana orman container */
.it-forest-container {
  width: 100%;
  overflow: hidden;
  padding: 1.5rem;
  background: transparent;
  border-radius: var(--it-radius);
  margin: 1rem 0;
  position: relative;
}

/* Orman grid */
.it-forest-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 2px;
  aspect-ratio: 1;
  width: 100%;
  max-width: 420px;
  max-height: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  border-radius: var(--it-radius);
  background: 
    linear-gradient(180deg, 
      rgba(135, 206, 235, 0.25) 0%, 
      rgba(176, 226, 172, 0.35) 30%,
      rgba(144, 238, 144, 0.4) 60%,
      rgba(76, 175, 80, 0.45) 100%);
  box-shadow: 
    inset 0 -40px 60px rgba(46, 125, 50, 0.2),
    inset 0 40px 60px rgba(135, 206, 235, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Güneş efekti */
.it-forest-grid::before {
  content: '';
  position: absolute;
  top: 8%;
  right: 12%;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 236, 179, 0.9) 0%, rgba(255, 193, 7, 0.4) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

/* Dark mode için orman */
.it-theme-dark .it-forest-grid {
  background: 
    linear-gradient(180deg, 
      rgba(25, 35, 60, 0.9) 0%, 
      rgba(20, 50, 45, 0.85) 40%,
      rgba(15, 45, 35, 0.9) 100%);
  box-shadow: 
    inset 0 -40px 60px rgba(0, 40, 30, 0.4),
    inset 0 40px 60px rgba(30, 40, 60, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Dark mode ay efekti */
.it-theme-dark .it-forest-grid::before {
  background: radial-gradient(circle, rgba(220, 220, 255, 0.8) 0%, rgba(180, 180, 220, 0.3) 40%, transparent 70%);
  width: 30px;
  height: 30px;
}

/* Her hücre */
.it-forest-cell {
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: 4px;
}

/* Ağaç ve fidan emojileri */
.it-tree-emoji,
.it-sapling-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

.it-tree-emoji {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
  animation: treeGrow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Farklı ağaç türleri için renk varyasyonları */
.it-forest-cell.it-tree:nth-child(3n) .it-tree-emoji {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) hue-rotate(10deg);
}

.it-forest-cell.it-tree:nth-child(5n) .it-tree-emoji {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) hue-rotate(-10deg) brightness(1.1);
}

.it-forest-cell.it-tree:nth-child(7n) .it-tree-emoji {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) saturate(1.2);
}

.it-sapling-emoji {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  transform: scale(var(--sapling-scale, 0.6));
  opacity: calc(0.5 + var(--sapling-scale, 0.3) * 0.5);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: saplingPulse 2s ease-in-out infinite;
}

/* Susuz/kuruyan ağaç */
.it-forest-cell.it-tree-dying .it-tree-emoji {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) grayscale(0.5) brightness(0.8);
  animation: treeDying 3s ease-in-out infinite;
}

.it-forest-cell.it-tree-dead .it-tree-emoji {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) grayscale(1) brightness(0.6);
  opacity: 0.5;
}

@keyframes treeGrow {
  0% {
    transform: scale(0) translateY(10px);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) translateY(-2px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes saplingPulse {
  0%, 100% {
    transform: scale(var(--sapling-scale, 0.6));
  }
  50% {
    transform: scale(calc(var(--sapling-scale, 0.6) * 1.1));
  }
}

@keyframes treeDying {
  0%, 100% {
    transform: rotate(0deg);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) grayscale(0.5) brightness(0.8);
  }
  25% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(2deg);
  }
}

/* Hover efektleri */
.it-forest-cell.it-tree:hover .it-tree-emoji {
  transform: scale(1.2) translateY(-3px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)) brightness(1.1);
}

.it-forest-cell.it-sapling:hover .it-sapling-emoji {
  transform: scale(calc(var(--sapling-scale, 0.6) * 1.3));
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

/* İstatistikler */
.it-forest-stats {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--it-card);
  border-radius: var(--it-radius);
  text-align: center;
  box-shadow: var(--it-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.it-forest-stats p {
  margin: 0;
  color: var(--it-text);
  font-size: 0.95rem;
}

.it-forest-stats strong {
  color: var(--it-primary);
}

/* Su durumu göstergesi */
.it-forest-water-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--it-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.it-forest-water-status.healthy {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.1));
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.it-forest-water-status.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.1));
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  animation: warningPulse 2s ease-in-out infinite;
}

.it-forest-water-status.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: dangerPulse 1s ease-in-out infinite;
}

.it-theme-dark .it-forest-water-status.healthy {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
  color: #4ade80;
}

.it-theme-dark .it-forest-water-status.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.15));
  color: #fbbf24;
}

.it-theme-dark .it-forest-water-status.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.15));
  color: #f87171;
}

@keyframes warningPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes dangerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.01); }
}

.it-forest-water-icon {
  font-size: 1.25rem;
}

.it-forest-water-bar {
  flex: 1;
  max-width: 150px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.it-theme-dark .it-forest-water-bar {
  background: rgba(255, 255, 255, 0.1);
}

.it-forest-water-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease, background 0.3s ease;
}

.it-forest-water-status.healthy .it-forest-water-fill {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.it-forest-water-status.warning .it-forest-water-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.it-forest-water-status.danger .it-forest-water-fill {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.it-forest-water-text {
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

/* Motivasyon mesajı */
.it-forest-motivation {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.05));
  border-radius: var(--it-radius-sm);
  border-left: 3px solid var(--it-primary);
  font-size: 0.85rem;
  color: var(--it-text);
  text-align: left;
}

.it-forest-motivation-icon {
  margin-right: 0.5rem;
}

/* Aksiyon butonları */
.it-forest-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.it-forest-actions .it-btn-primary {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}

.it-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--it-primary);
  color: white;
  border: none;
  border-radius: var(--it-radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-btn-primary:hover {
  background: var(--it-primary-dark);
}

/* ========================================
   NOTES SYSTEM
   ======================================== */
.it-notes-system {
  position: fixed;
  z-index: 900;
}

.it-notes-fab {
  position: fixed;
  bottom: 200px;
  right: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--it-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--it-shadow-lg);
  transition: var(--it-transition);
  z-index: 901;
}

.it-notes-fab:hover {
  transform: scale(1.1);
  background: var(--it-primary-dark);
}

.it-notes-fab-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.it-notes-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ef4444;
  color: white;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notes Panel */
.it-notes-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: var(--it-card);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 902;
  overflow: hidden;
}

.it-notes-panel.is-open {
  right: 0;
}

.it-notes-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--it-border);
}

.it-notes-panel-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--it-text);
  font-weight: 600;
}

.it-notes-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--it-border);
  background: var(--it-card);
  color: var(--it-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--it-transition);
}

.it-notes-panel-close:hover {
  border-color: #ef4444;
  background: #ef4444;
  color: white;
}

.it-notes-panel-close span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.it-notes-warning {
  padding: 0.75rem 1rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
}

.it-notes-panel-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.it-notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.it-notes-panel-footer {
  padding: 1rem;
  border-top: 1px solid var(--it-border);
}

.it-notes-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px dashed var(--it-border);
  border-radius: var(--it-radius-sm);
  background: transparent;
  color: var(--it-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-notes-add-btn:hover {
  border-color: var(--it-primary);
  border-style: solid;
  background: var(--it-primary);
  color: white;
}

.it-notes-add-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panel Note Item */
.it-panel-note {
  background: var(--it-bg);
  border-radius: var(--it-radius-sm);
  overflow: hidden;
}

.it-panel-note-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--it-border);
}

.it-panel-note-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.it-panel-note-date {
  flex: 1;
  font-size: 0.7rem;
  color: var(--it-muted);
}

.it-panel-note-actions {
  display: flex;
  gap: 0.25rem;
}

.it-panel-note-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--it-border);
  background: var(--it-card);
  color: var(--it-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--it-transition);
}

.it-panel-note-btn:hover {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: white;
}

.it-panel-note-delete:hover {
  border-color: #ef4444;
  background: #ef4444;
  color: white;
}

.it-panel-note-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.it-panel-note-preview {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--it-text);
  max-height: 60px;
  overflow: hidden;
}

.it-panel-note-edit-area {
  padding: 0.75rem;
  border-top: 1px solid var(--it-border);
}

.it-panel-note-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.5rem;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius-sm);
  background: var(--it-bg);
  color: var(--it-text);
  font-size: 16px; /* iOS zoom önleme */
  font-family: inherit;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

.it-panel-note-textarea:focus {
  outline: none;
  border-color: var(--it-primary);
}

.it-panel-note-save-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.625rem;
  background: var(--it-primary);
  color: white;
  border: 2px solid var(--it-primary);
  border-radius: var(--it-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-panel-note-save-btn:hover {
  background: var(--it-primary-dark);
  border-color: var(--it-primary-dark);
}

/* Floating Note */
.it-notes-floating {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 899;
}

.it-note {
  position: absolute;
  width: 260px;
  min-height: 180px;
  max-height: 80vh;
  border-radius: var(--it-radius-sm);
  box-shadow: var(--it-shadow);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
  touch-action: none;
}

.it-note.note-color-yellow { background: #fef9c3; }
.it-note.note-color-blue { background: #dbeafe; }
.it-note.note-color-green { background: #dcfce7; }
.it-note.note-color-pink { background: #fce7f3; }

.it-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  cursor: move;
}

.it-note-colors {
  display: flex;
  gap: 0.25rem;
}

.it-note-color-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-note-color-btn:hover,
.it-note-color-btn.active {
  border-color: rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.it-note-actions {
  display: flex;
  gap: 0.25rem;
}

.it-note-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--it-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--it-transition);
}

.it-note-action-btn:hover {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: white;
}

.it-note-delete-btn:hover {
  border-color: #ef4444;
  background: #ef4444;
  color: white;
}

.it-note-action-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.it-note-body {
  flex: 1;
  padding: 0 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.it-note-textarea {
  width: 100%;
  height: 100%;
  min-height: 100px;
  border: none;
  background: transparent;
  resize: none;
  font-size: 16px; /* iOS zoom önleme için minimum 16px */
  line-height: 1.5;
  color: #1f2937;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.it-note-textarea:focus {
  outline: none;
}

.it-note-footer {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.4);
}

/* ========================================
   PUSH & PRAYER WIDGETS
   ======================================== */
.it-push-widget,
.it-prayer-widget {
  background: var(--it-card);
  border-radius: var(--it-radius);
  padding: 1.25rem;
  box-shadow: var(--it-shadow);
}

.it-push-header,
.it-prayer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.it-push-header h4,
.it-prayer-title h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--it-text);
  font-weight: 600;
}

.it-push-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--it-bg);
  color: var(--it-muted);
}

.it-push-status.active {
  background: #dcfce7;
  color: #166534;
}

.it-push-content p {
  font-size: 0.9rem;
  color: var(--it-muted);
  margin-bottom: 1rem;
}

.it-push-city,
.it-prayer-location {
  margin-bottom: 1rem;
}

.it-push-city label {
  display: block;
  font-size: 0.8rem;
  color: var(--it-muted);
  margin-bottom: 0.25rem;
}

.it-push-city select,
.it-prayer-city-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius-sm);
  background: var(--it-card);
  color: var(--it-text);
  font-size: 0.9rem;
}

.it-push-actions {
  display: flex;
  gap: 0.5rem;
}

.it-push-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: var(--it-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--it-transition);
}

.it-push-subscribe {
  background: var(--it-primary);
  color: white;
}

.it-push-subscribe:hover {
  background: var(--it-primary-dark);
}

.it-push-unsubscribe {
  background: var(--it-card);
  color: var(--it-text);
  border: 2px solid var(--it-border);
}

.it-push-unsubscribe:hover {
  border-color: var(--it-primary);
  background: var(--it-primary);
  color: white;
}

/* PWA Install Button */
.it-pwa-install {
  margin-top: 1rem;
}

.it-pwa-divider {
  height: 1px;
  background: var(--it-border);
  margin-bottom: 1rem;
}

.it-pwa-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 2px dashed var(--it-primary);
  border-radius: var(--it-radius-sm);
  background: linear-gradient(135deg, rgba(0,96,100,0.05), rgba(0,96,100,0.1));
  cursor: pointer;
  transition: all 0.2s ease;
}

.it-pwa-btn:hover {
  background: linear-gradient(135deg, rgba(0,96,100,0.1), rgba(0,96,100,0.15));
  border-style: solid;
  transform: translateY(-1px);
}

.it-pwa-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.it-pwa-text {
  text-align: left;
  flex: 1;
}

.it-pwa-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--it-text);
  margin-bottom: 2px;
}

.it-pwa-text small {
  font-size: 0.75rem;
  color: var(--it-muted);
}

/* iOS Install Instructions */
.it-push-ios-install {
  background: linear-gradient(135deg, rgba(0,96,100,0.05), rgba(0,96,100,0.1));
  border-radius: var(--it-radius-sm);
  padding: 1rem;
}

.it-push-ios-install ol {
  margin: 0;
}

.it-push-ios-install li {
  margin-bottom: 0.5rem;
}

.it-push-ios-install li:last-child {
  margin-bottom: 0;
}

/* Prayer Times */
.it-prayer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.it-prayer-icon {
  font-size: 1.25rem;
}

.it-prayer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--it-muted);
}

.it-prayer-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--it-border);
  border-top-color: var(--it-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.it-prayer-next {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(245, 158, 11, 0.1));
  border-radius: var(--it-radius-sm);
  margin-bottom: 1rem;
}

.it-prayer-next-label {
  font-size: 0.75rem;
  color: var(--it-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.it-prayer-next-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--it-primary);
  margin: 0.25rem 0;
}

.it-prayer-countdown {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.it-countdown-item {
  text-align: center;
}

.it-countdown-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--it-text);
}

.it-countdown-label {
  font-size: 0.65rem;
  color: var(--it-muted);
  text-transform: uppercase;
}

.it-countdown-separator {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--it-muted);
  padding-bottom: 0.75rem;
}

.it-prayer-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.it-prayer-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--it-radius-sm);
  background: var(--it-bg);
}

.it-prayer-time.active {
  background: rgba(13, 148, 136, 0.15);
}

.it-prayer-time-icon {
  font-size: 1rem;
}

.it-prayer-time-name {
  font-size: 0.7rem;
  color: var(--it-muted);
}

.it-prayer-time-value {
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--it-text);
}

.it-prayer-date {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--it-muted);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .imanturk-root {
    padding: 0.75rem;
  }
  
  .it-header {
    padding: 0.5rem 0;
  }
  
  .it-surah-title-a {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  }
  
  .it-surah-title-b {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
  }
  
  .it-surah-title-c {
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  }
  
  .it-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .it-surah-switch {
    min-width: 100%;
  }
  
  .it-toolbar-actions {
    justify-content: center;
  }
  
  .it-ayah-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .it-ayah-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .it-ayah-ar {
    font-size: 1.3rem;
  }
  
  .it-ayah-translation {
    font-size: 0.9rem;
  }
  
  .it-ayah-action-btn {
    width: 36px;
    height: 36px;
  }
  
  .it-main {
    padding-bottom: 200px;
  }
  
  .it-player-footer {
    padding: 0.5rem 0.75rem;
  }
  
  .it-player-nav {
    gap: 0.35rem;
  }
  
  .it-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .it-nav-btn-play {
    width: 48px;
    height: 48px;
  }
  
  .it-modal {
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  .it-studio-preview {
    width: 220px;
    height: 390px;
  }
  
  .it-notes-fab {
    bottom: 220px;
    right: 0.75rem;
    width: 48px;
    height: 48px;
  }
  
  .it-notes-fab-icon {
    font-size: 1.25rem;
  }
  
  .it-notes-panel {
    width: calc(100vw - 2rem);
    max-width: 320px;
    right: calc(-100vw);
    height: 100vh;
    height: 100dvh;
  }
  
  .it-notes-panel.is-open {
    right: 0;
  }
  
  .it-notes-panel-content {
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
  }
  
  .it-note {
    width: calc(100vw - 3rem);
    max-width: 300px;
    min-height: 200px;
    max-height: 70vh;
  }
  
  .it-note-header {
    cursor: grab;
    touch-action: none;
  }
  
  .it-note-header:active {
    cursor: grabbing;
  }
  
  .it-prayer-times {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .it-forest-container {
    padding: 0.75rem;
  }
  
  .it-forest-grid {
    max-width: 100%;
    max-height: 350px;
    min-width: 280px;
    padding: 1rem;
  }
  
  .it-tree-emoji {
    font-size: 1.2rem;
  }
  
  .it-sapling-emoji {
    font-size: 0.9rem;
  }
  
  /* Modal içinde forest için ekstra alan */
  .it-modal .it-forest-container {
    max-height: 55vh;
    overflow-y: auto;
    padding: 0.5rem;
  }
  
  .it-modal .it-forest-grid {
    max-width: 300px;
    max-height: 300px;
    padding: 0.75rem;
  }
  
  .it-forest-stats {
    padding: 0.75rem;
  }
  
  .it-forest-water-status {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .it-forest-water-bar {
    max-width: 120px;
  }
  
  .it-forest-actions {
    flex-direction: column;
  }
  
  .it-forest-actions .it-btn-primary {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .it-surah-title-a {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
  
  .it-surah-title-b {
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  }
  
  .it-surah-title-c {
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  }
  
  .it-ayah-ar {
    font-size: 1.2rem;
  }
  
  .it-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .it-nav-btn-play {
    width: 44px;
    height: 44px;
  }
  
  /* Forest mobil optimizasyonu */
  .it-forest-container {
    padding: 0.75rem;
    border-radius: 12px;
  }
  
  .it-forest-grid {
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    max-width: 100%;
    max-height: 300px;
    padding: 1rem;
  }
  
  .it-forest-grid::before {
    width: 30px;
    height: 30px;
    top: 6%;
    right: 8%;
  }
  
  .it-tree-emoji {
    font-size: 1rem;
  }
  
  .it-sapling-emoji {
    font-size: 0.8rem;
  }
  
  .it-forest-stats {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .it-forest-stats p {
    font-size: 0.85rem;
  }
  
  .it-forest-water-status {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .it-forest-water-icon {
    font-size: 1rem;
  }
  
  .it-forest-water-bar {
    max-width: 100px;
    height: 6px;
  }
  
  .it-forest-motivation {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }
}

/* ========================================
   QIBLA FINDER / KIBLE BULUCU
   ======================================== */
.it-qibla-widget {
  background: var(--it-card);
  border-radius: var(--it-radius);
  box-shadow: var(--it-shadow);
  padding: 1.5rem;
  --qibla-accent: #10b981;
}

.it-qibla-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.it-qibla-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.it-qibla-title h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--it-text);
}

.it-qibla-icon {
  font-size: 1.5rem;
}

.it-qibla-city-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius-sm);
  background: var(--it-bg);
  color: var(--it-text);
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 160px;
}

.it-qibla-city-select:focus {
  outline: none;
  border-color: var(--qibla-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading */
.it-qibla-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
  color: var(--it-muted);
}

.it-qibla-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--it-border);
  border-top-color: var(--qibla-accent);
  border-radius: 50%;
  animation: itQiblaSpin 1s linear infinite;
}

@keyframes itQiblaSpin {
  to { transform: rotate(360deg); }
}

/* Content */
.it-qibla-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Compass / Pusula */
.it-qibla-compass {
  position: relative;
  width: 300px;
  height: 300px;
}

.it-qibla-compass-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--it-bg), var(--it-card));
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 2px 10px rgba(255, 255, 255, 0.5),
    inset 0 -2px 10px rgba(0, 0, 0, 0.05);
  border: 5px solid var(--it-border);
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.it-theme-dark .it-qibla-compass-ring {
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 10px rgba(255, 255, 255, 0.05),
    inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.it-qibla-compass-directions {
  position: absolute;
  inset: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--it-muted);
}

.it-qibla-dir {
  position: absolute;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.it-qibla-n { 
  top: 15px; 
  left: 50%; 
  transform: translateX(-50%); 
  color: #ef4444; 
  font-size: 1.3rem; 
}
.it-qibla-e { right: 15px; top: 50%; transform: translateY(-50%); }
.it-qibla-s { bottom: 15px; left: 50%; transform: translateX(-50%); }
.it-qibla-w { left: 15px; top: 50%; transform: translateY(-50%); }

.it-qibla-compass-ticks {
  position: absolute;
  inset: 25px;
  border-radius: 50%;
}

.it-qibla-compass-ticks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(
    from 0deg,
    var(--it-border) 0deg 1deg,
    transparent 1deg 10deg
  );
  border-radius: 50%;
  opacity: 0.6;
}

/* Kıble yönü işareti - pusula halkası üzerinde */
.it-qibla-qibla-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 100%;
  transform-origin: center center;
  z-index: 10;
  pointer-events: none;
}

.it-qibla-marker-arrow {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 24px solid var(--qibla-accent);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.it-qibla-marker-arrow::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 70px;
  background: linear-gradient(to bottom, var(--qibla-accent) 0%, var(--qibla-accent) 60%, transparent 100%);
  border-radius: 2px;
}

/* Sabit merkez - Kabe */
.it-qibla-compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--it-card), var(--it-bg));
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border: 4px solid var(--it-border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hizalama durumuna göre merkez rengi */
.it-qibla-compass-center.aligned {
  border-color: #22c55e;
  box-shadow: 
    0 0 20px rgba(34, 197, 94, 0.5),
    0 0 40px rgba(34, 197, 94, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.it-qibla-compass-center.close {
  border-color: #84cc16;
  box-shadow: 
    0 0 15px rgba(132, 204, 22, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.it-qibla-compass-center.medium {
  border-color: #eab308;
  box-shadow: 
    0 0 10px rgba(234, 179, 8, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.it-qibla-compass-center.far {
  border-color: #f97316;
}

.it-qibla-compass-center.opposite {
  border-color: #ef4444;
}

/* Hizalama halkası (pulse efekti) */
.it-qibla-alignment-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid transparent;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.it-qibla-compass-center.aligned .it-qibla-alignment-ring {
  border-color: #22c55e;
  opacity: 1;
  animation: qiblaAlignedPulse 1.5s ease-in-out infinite;
}

@keyframes qiblaAlignedPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.5;
  }
}

.it-qibla-kaaba {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.it-qibla-compass-center.aligned .it-qibla-kaaba {
  transform: scale(1.1);
}

.it-qibla-center-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--it-muted);
  margin-top: 2px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.it-qibla-compass-center.aligned .it-qibla-center-text {
  color: #22c55e;
  font-size: 0.65rem;
}

.it-qibla-compass-center.close .it-qibla-center-text {
  color: #84cc16;
}

.it-qibla-compass-center.medium .it-qibla-center-text {
  color: #eab308;
}

.it-qibla-compass-center.far .it-qibla-center-text {
  color: #f97316;
}

.it-qibla-compass-center.opposite .it-qibla-center-text {
  color: #ef4444;
}

/* Hizalama göstergesi */
.it-qibla-alignment-indicator {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  background: var(--it-bg);
  color: var(--it-muted);
  border: 2px solid var(--it-border);
  text-align: center;
  min-width: 120px;
}

.it-qibla-alignment-indicator.aligned {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
  animation: qiblaIndicatorBounce 0.5s ease;
}

.it-qibla-alignment-indicator.close {
  background: #84cc16;
  color: white;
  border-color: #84cc16;
}

.it-qibla-alignment-indicator.medium {
  background: #eab308;
  color: white;
  border-color: #eab308;
}

.it-qibla-alignment-indicator.far {
  background: #f97316;
  color: white;
  border-color: #f97316;
}

.it-qibla-alignment-indicator.opposite {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

@keyframes qiblaIndicatorBounce {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.1); }
}

/* Info */
.it-qibla-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  width: 100%;
}

.it-qibla-direction,
.it-qibla-distance,
.it-qibla-coordinates {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 100px;
}

.it-qibla-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--it-muted);
  font-weight: 500;
}

.it-qibla-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--it-text);
}

.it-qibla-direction .it-qibla-value {
  color: var(--qibla-accent);
}

.it-qibla-cardinal {
  font-size: 0.875rem;
  color: var(--it-muted);
  font-weight: 500;
}

.it-qibla-coords {
  font-size: 0.875rem !important;
  font-family: monospace;
}

/* Compass Status */
.it-qibla-compass-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--it-bg);
  border-radius: var(--it-radius-sm);
  font-size: 0.8rem;
  color: var(--it-muted);
}

.it-qibla-compass-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--qibla-accent);
}

.it-qibla-compass-status.inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Error */
.it-qibla-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 1rem;
  text-align: center;
}

.it-qibla-error-icon {
  font-size: 2.5rem;
}

.it-qibla-error-text {
  margin: 0;
  color: var(--it-muted);
  font-size: 0.9rem;
}

.it-qibla-retry {
  padding: 0.6rem 1.25rem;
  background: var(--qibla-accent);
  color: white;
  border: none;
  border-radius: var(--it-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--it-transition);
}

.it-qibla-retry:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Permission */
.it-qibla-permission {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.it-qibla-permission p {
  margin: 0;
  color: var(--it-muted);
  font-size: 0.9rem;
}

.it-qibla-permission-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--qibla-accent), #059669);
  color: white;
  border: none;
  border-radius: var(--it-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--it-transition);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.it-qibla-permission-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Style Variants */
/* Classic Style */
.it-qibla-classic .it-qibla-compass-ring {
  background: linear-gradient(145deg, #f5f0e6, #e8e0d0);
  border-color: #c9b896;
}

.it-qibla-classic .it-qibla-compass-center {
  background: linear-gradient(145deg, #fffef9, #f5f0e6);
  border-color: #c9b896;
}

.it-qibla-classic .it-qibla-marker-arrow {
  border-bottom-color: #b91c1c;
}

.it-qibla-classic .it-qibla-marker-arrow::after {
  background: linear-gradient(to bottom, #b91c1c, transparent);
}

.it-qibla-classic .it-qibla-dir {
  font-family: Georgia, serif;
}

.it-qibla-classic .it-qibla-center-text {
  color: #b91c1c;
}

/* Minimal Style */
.it-qibla-minimal .it-qibla-compass-ring {
  background: var(--it-bg);
  border: 2px solid var(--it-border);
  box-shadow: none;
}

.it-qibla-minimal .it-qibla-compass-ticks::before {
  display: none;
}

.it-qibla-minimal .it-qibla-compass-center {
  background: var(--it-card);
  box-shadow: none;
  border: 2px solid var(--it-border);
}

.it-qibla-minimal .it-qibla-marker-arrow::after {
  height: 80px;
}

/* Responsive */
@media (max-width: 480px) {
  .it-qibla-widget {
    padding: 1rem;
  }
  
  .it-qibla-compass {
    width: 260px;
    height: 260px;
  }
  
  .it-qibla-compass-center {
    width: 90px;
    height: 90px;
  }
  
  .it-qibla-kaaba {
    font-size: 2rem;
  }
  
  .it-qibla-marker-arrow::after {
    height: 55px;
  }
  
  .it-qibla-alignment-indicator {
    bottom: -30px;
    font-size: 0.75rem;
    padding: 5px 12px;
    min-width: 100px;
  }
  
  .it-qibla-center-text {
    font-size: 0.6rem;
  }
  
  .it-qibla-alignment-ring {
    inset: -6px;
  }
  
  .it-qibla-info {
    gap: 1rem;
  }
  
  .it-qibla-value {
    font-size: 1.25rem;
  }
  
  .it-qibla-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .it-qibla-city-select {
    width: 100%;
  }
}
