/* ============================================================
   EmbedHub — "Ember Violet" Teması
   Palet: mürekkep siyahı zemin + elektrik moru/amber ikili vurgu
   Tipografi: Sora (başlık) + Inter (gövde)
   ============================================================ */

:root {
  --eh-bg: #0a0a12;
  --eh-bg-alt: #141026;
  --eh-turkuaz: #a855f7;
  --eh-turkuaz-koyu: #7c3aed;
  --eh-mercan: #f59e0b;
  --eh-metin: #eaf3f6;
  --eh-metin-ikincil: #8ea1b3;
  --eh-border: rgba(168, 85, 247, 0.14);
  --eh-glass: rgba(255, 255, 255, 0.035);
  --eh-font-baslik: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --eh-font-govde: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(168,85,247,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(245,158,11,0.07), transparent 55%),
    var(--eh-bg);
  color: var(--eh-metin);
  font-family: var(--eh-font-govde);
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6, .eh-brand {
  font-family: var(--eh-font-baslik);
  letter-spacing: -0.02em;
}

a { color: var(--eh-turkuaz); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--eh-turkuaz-koyu); }

/* ---------------- Nav ---------------- */
.eh-navbar {
  background: rgba(8, 14, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--eh-border);
}

.eh-brand { font-weight: 700; font-size: 1.35rem; color: var(--eh-metin); }
.eh-brand__logo {
  background: linear-gradient(120deg, var(--eh-turkuaz), var(--eh-turkuaz-koyu));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Buttons ---------------- */
.eh-btn-primary {
  background: linear-gradient(135deg, var(--eh-turkuaz), var(--eh-turkuaz-koyu));
  color: #04241f;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 20px -6px rgba(168,85,247,0.45);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.eh-btn-primary:hover {
  color: #04241f;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -6px rgba(168,85,247,0.55);
  filter: brightness(1.05);
}
.eh-btn-primary:active { transform: translateY(0); }

.eh-btn-ghost {
  background: var(--eh-glass);
  color: var(--eh-metin);
  border: 1px solid var(--eh-border);
  transition: background .15s ease, border-color .15s ease;
}
.eh-btn-ghost:hover { background: rgba(168,85,247,0.10); border-color: var(--eh-turkuaz); color: var(--eh-metin); }

/* ---------------- Cards ---------------- */
.eh-card {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.eh-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 20px 40px -20px rgba(168,85,247,0.25), 0 0 0 1px rgba(168,85,247,0.08) inset;
}

/* ---------------- Hero — imza öğesi: yumuşak "sinyal" çizgisi ---------------- */
.eh-hero {
  padding: 7rem 0 4.5rem;
  text-align: center;
  position: relative;
}
.eh-hero::before {
  content: '';
  position: absolute;
  top: -20px; left: 50%;
  width: 220px; height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168,85,247,0.24), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}
.eh-hero::after {
  content: '';
  position: absolute;
  top: 40px; left: 62%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,158,11,0.16), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}
.eh-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
}
.eh-hero .eh-highlight {
  background: linear-gradient(120deg, var(--eh-turkuaz), var(--eh-mercan) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eh-hero .lead { font-size: 1.1rem; max-width: 620px; margin-left: auto; margin-right: auto; }

.eh-alert { border-radius: 12px; border: none; }

/* ---------------- Footer ---------------- */
.eh-footer {
  background: var(--eh-bg-alt);
  border-top: 1px solid var(--eh-border);
}
.eh-footer h6 { color: var(--eh-turkuaz); font-family: var(--eh-font-baslik); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.eh-footer a { color: var(--eh-metin-ikincil); }
.eh-footer a:hover { color: var(--eh-turkuaz); }

/* ---------------- Widget icon ---------------- */
.eh-widget-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168,85,247,0.20), rgba(245,158,11,0.08));
  color: var(--eh-turkuaz);
  font-size: 1.5rem;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.12) inset;
  transition: box-shadow .2s ease;
}
.eh-card:hover .eh-widget-icon {
  box-shadow: 0 0 0 1px rgba(168,85,247,0.3) inset, 0 0 24px -4px rgba(168,85,247,0.5);
}

/* ---------------- Embed kod bloğu ---------------- */
/* ---------------- Embed Kod Penceresi — gerçek bir kod editörü hissi ---------------- */
.eh-kod-pencere {
  background: #0a0810;
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.6);
}
.eh-kod-pencere__ust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.eh-kod-pencere__noktalar { display: flex; gap: 6px; }
.eh-kod-pencere__nokta { width: 10px; height: 10px; border-radius: 50%; }
.eh-kod-pencere__nokta--kirmizi { background: #ff5f57; }
.eh-kod-pencere__nokta--sari { background: #febc2e; }
.eh-kod-pencere__nokta--yesil { background: #28c840; }
.eh-kod-pencere__etiketAd {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--eh-metin-ikincil);
  flex: 1;
  text-align: center;
}
.eh-kod-pencere__kopyala {
  background: transparent;
  border: none;
  color: var(--eh-metin-ikincil);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.eh-kod-pencere__kopyala:hover { background: rgba(168,85,247,0.15); color: var(--eh-turkuaz); }
.eh-kod-pencere__kopyala.eh-kopyalandi { color: #22c55e; }

.eh-embed-kod {
  padding: 1.1rem 1.2rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #d4d4e0;
  word-break: break-all;
  white-space: pre-wrap;
  margin: 0;
}
.eh-kod-etiket { color: #e879f9; font-weight: 600; }
.eh-kod-ozellik { color: #a855f7; }
.eh-kod-esit { color: #6b7280; }
.eh-kod-deger { color: #f59e0b; }

.eh-embed-sekmeler { display: flex; gap: 4px; margin-bottom: 10px; }
.eh-embed-sekme {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  color: var(--eh-metin-ikincil);
  border-radius: 8px 8px 0 0;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: none;
}
.eh-embed-sekme.eh-embed-sekme--aktif { color: var(--eh-turkuaz); background: rgba(168,85,247,0.1); }
.eh-embed-panel { display: none; }
.eh-embed-panel.eh-embed-panel--aktif { display: block; }

[data-bs-theme="light"] .eh-embed-kod { color: #d4d4e0; }

/* ---------------- Badge / rozet zarafeti ---------------- */
.badge { font-weight: 600; letter-spacing: 0.02em; }

/* ---------------- Formlar ---------------- */
.form-control, .form-select {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--eh-border);
  color: var(--eh-metin);
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,0.03);
  border-color: var(--eh-turkuaz);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
  color: var(--eh-metin);
}
.form-control::placeholder { color: var(--eh-metin-ikincil); opacity: 0.6; }

/* ---------------- Açık tema ---------------- */
[data-bs-theme="light"] {
  --eh-bg: #f6f9fb;
  --eh-bg-alt: #ffffff;
  --eh-metin: #0f1f29;
  --eh-metin-ikincil: #52697a;
  --eh-border: rgba(124, 58, 237, 0.22);
  --eh-glass: rgba(124, 58, 237, 0.045);
}
[data-bs-theme="light"] body {
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(124,58,237,0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(245,158,11,0.05), transparent 55%),
    var(--eh-bg);
}
[data-bs-theme="light"] .form-control, [data-bs-theme="light"] .form-select { background: #fff; }

/* ---------------- Erişilebilirlik ---------------- */
:focus-visible { outline: 2px solid var(--eh-turkuaz); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Hesabım Paneli — Yan Menü (kullanıcı sidebar'ı)
   ============================================================ */
.eh-hesap-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--eh-metin);
  transition: border-color .2s ease, background .2s ease;
}
.eh-hesap-menu-toggle:hover { border-color: color-mix(in srgb, var(--eh-turkuaz) 40%, transparent); }
.eh-hesap-menu-toggle__sol { display: flex; align-items: center; gap: 12px; text-align: left; }
.eh-hesap-menu-toggle__avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-font-baslik);
  font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--eh-turkuaz), var(--eh-turkuaz-koyu));
  color: #1a0a2e;
}
.eh-hesap-menu-toggle__ad { display: block; font-weight: 700; font-size: 0.88rem; }
.eh-hesap-menu-toggle__alt { display: block; font-size: 0.72rem; color: var(--eh-metin-ikincil); }
.eh-hesap-menu-toggle > i { transition: transform .2s ease; color: var(--eh-metin-ikincil); }
.eh-hesap-menu-toggle.eh-menu-acik > i { transform: rotate(180deg); }

.eh-hesap-sidebar {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 18px;
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}

.eh-hesap-profil {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--eh-border);
}
.eh-hesap-avatar {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-font-baslik);
  font-weight: 700; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--eh-turkuaz), var(--eh-turkuaz-koyu));
  color: #04241f;
  box-shadow: 0 0 20px -4px rgba(168,85,247,0.5);
}
.eh-hesap-profil__ad { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.eh-hesap-profil__rol { font-size: 0.72rem; color: var(--eh-metin-ikincil); margin-top: 2px; }

.eh-hesap-widget-ozet { margin-bottom: 1rem; }
.eh-hesap-progress {
  height: 6px; border-radius: 999px;
  background: rgba(150,150,150,0.18);
  overflow: hidden;
}
.eh-hesap-progress__dolu {
  height: 100%;
  background: linear-gradient(90deg, var(--eh-turkuaz), var(--eh-turkuaz-koyu));
  border-radius: 999px;
  transition: width .3s ease;
}

.eh-hesap-admin-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168,85,247,0.14), rgba(168,85,247,0.03));
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--eh-turkuaz);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background .15s ease;
}
.eh-hesap-admin-link:hover { background: rgba(168,85,247,0.2); color: var(--eh-turkuaz); }

.eh-hesap-nav .nav-link {
  display: flex; align-items: center; gap: 11px;
  color: var(--eh-metin-ikincil);
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.5rem 0.6rem;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.eh-nav-ikon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.92rem;
  background: color-mix(in srgb, var(--eh-nav-renk, var(--eh-turkuaz)) 14%, transparent);
  color: var(--eh-nav-renk, var(--eh-turkuaz));
  transition: background .15s ease, transform .15s ease;
}
.eh-hesap-nav .nav-link:hover .eh-nav-ikon { transform: scale(1.08); }
.eh-hesap-nav .nav-link.active {
  background: linear-gradient(135deg, rgba(168,85,247,0.14), rgba(168,85,247,0.02));
  color: var(--eh-metin);
  box-shadow: inset 3px 0 0 var(--eh-turkuaz);
  transform: translateX(2px);
}
.eh-hesap-nav .nav-link.active .eh-nav-ikon {
  background: var(--eh-nav-renk, var(--eh-turkuaz));
  color: #1a0a2e;
  box-shadow: 0 0 14px -2px var(--eh-nav-renk, var(--eh-turkuaz));
}
.eh-hesap-nav .nav-link:hover:not(.active) { background: rgba(168,85,247,0.06); color: var(--eh-metin); }

.eh-hesap-nav__bolum {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eh-metin-ikincil);
  opacity: 0.55;
  padding: 10px 12px 4px;
}
.eh-hesap-nav__sayi {
  background: rgba(150,150,150,0.15);
  color: var(--eh-metin-ikincil);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}
.eh-hesap-nav .nav-link.active .eh-hesap-nav__sayi { background: rgba(168,85,247,0.22); color: var(--eh-turkuaz); }

.eh-hesap-cikis {
  display: flex; align-items: center; gap: 8px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--eh-border);
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}
.eh-hesap-cikis:hover { color: #dc2626; }

@media (max-width: 991.98px) {
  .eh-hesap-sidebar {
    display: none;
    position: static;
  }
  .eh-hesap-sidebar--acik { display: block; }
}

/* ---------------- İstatistik kartı (admin panelle ortak tasarım dili) ---------------- */
.eh-stat-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.eh-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168,85,247,0.35);
  box-shadow: 0 16px 32px -18px rgba(168,85,247,0.25);
}
.eh-stat-card__ikon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.eh-stat-card__deger { font-family: var(--eh-font-baslik); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.eh-stat-card__etiket { font-size: 0.74rem; color: var(--eh-metin-ikincil); margin-top: 2px; }

.eh-bos-durum { text-align: center; padding: 2.5rem 1rem; color: var(--eh-metin-ikincil); }
.eh-bos-durum i { font-size: 2rem; opacity: 0.35; display: block; margin-bottom: 10px; }

/* ---------------- Görsel JSON Editör (fıkra/söz/yorum listesi vb.) ---------------- */
.eh-json-editor__satir {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.eh-json-editor__satir input { flex: 1; margin-bottom: 0 !important; }
.eh-json-editor__sil {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--eh-border);
  background: rgba(239,68,68,0.08);
  color: #ef4444;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.eh-json-editor__sil:hover { background: rgba(239,68,68,0.16); }

/* ---------------- "Widgetlarım" kartları (kategori renkli) ---------------- */
.eh-uw-karti {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.eh-uw-karti:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--eh-uw-renk, var(--eh-turkuaz)) 45%, transparent);
  box-shadow: 0 16px 32px -20px color-mix(in srgb, var(--eh-uw-renk, var(--eh-turkuaz)) 50%, transparent);
}
.eh-uw-karti__ust {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.1rem 1.1rem 0.9rem;
}
.eh-uw-karti__ikon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--eh-uw-renk) 22%, transparent), color-mix(in srgb, var(--eh-uw-renk) 5%, transparent));
  color: var(--eh-uw-renk);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--eh-uw-renk) 22%, transparent) inset;
}
.eh-uw-karti__baslik { font-weight: 700; font-size: 0.92rem; }
.eh-uw-karti__alt { font-size: 0.74rem; margin-top: 2px; }
.eh-uw-karti__tip {
  color: var(--eh-uw-renk);
  font-weight: 600;
}
.eh-uw-karti__alt-satir {
  display: flex;
  gap: 8px;
  padding: 0.75rem 1.1rem 1.1rem;
  border-top: 1px solid var(--eh-border);
  margin-top: 0.9rem;
  padding-top: 0.75rem;
}

.eh-kategori-cip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  color: var(--eh-metin-ikincil);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.eh-kategori-cip:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--eh-nav-renk, var(--eh-turkuaz)) 40%, transparent); }
.eh-kategori-cip__ikon {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--eh-nav-renk, var(--eh-turkuaz)) 18%, transparent);
  color: var(--eh-nav-renk, var(--eh-turkuaz));
}
.eh-kategori-cip--aktif {
  background: color-mix(in srgb, var(--eh-turkuaz) 14%, transparent);
  border-color: var(--eh-turkuaz);
  color: var(--eh-metin);
}
.eh-kategori-cip--aktif .eh-kategori-cip__ikon { background: var(--eh-nav-renk, var(--eh-turkuaz)); color: #1a0a2e; }

/* ---------------- Premium Sayfası Paket Kartları ---------------- */
.eh-premium-kart {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.eh-premium-kart:hover { transform: translateY(-4px); }
.eh-premium-kart--vurgulu {
  border-color: var(--eh-turkuaz);
  box-shadow: 0 24px 48px -24px rgba(168,85,247,0.4);
  background: linear-gradient(160deg, rgba(168,85,247,0.08), var(--eh-glass));
}
.eh-premium-kart__rozet {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--eh-turkuaz), var(--eh-turkuaz-koyu));
  color: #1a0a2e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.eh-premium-kart__fiyat { margin: 1rem 0; }
.eh-premium-kart__tutar { font-family: var(--eh-font-baslik); font-size: 2.2rem; font-weight: 700; }
.eh-premium-kart__ozellikler {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}
.eh-premium-kart__ozellikler li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.87rem;
  color: var(--eh-metin-ikincil);
  padding: 6px 0;
}
.eh-premium-kart__ozellikler li i.bi-check-circle-fill { color: var(--eh-turkuaz); margin-top: 2px; }
