/* -------------------------------------------------------------------------
 * AcilYanDal Appearance Theme v50
 * Amaç:
 * 1) Tema kapalıyken siteye hiçbir şey uygulamaz; bu dosya sadece admin ayarı/önizleme ile yüklenir.
 * 2) Soft/Balanced açık temalarda ana sayfa HERO ışık akışını koyu premium tona yaklaştırır.
 * 3) Dark seçildiğinde koyu tema site genelinde tutarlı çalışır; panelim dahil ters kontrast kalmaz.
 * ---------------------------------------------------------------------- */

html.ayd-theme-v46{
  --ayd-v50-navy:#050627;
  --ayd-v50-ink:#0f172a;
  --ayd-v50-muted:#64748b;
  --ayd-v50-dark-bg:#05062d;
  --ayd-v50-dark-bg-2:#070735;
  --ayd-v50-dark-card:rgba(16,18,55,.94);
  --ayd-v50-dark-card-2:rgba(27,22,68,.92);
  --ayd-v50-dark-line:rgba(255,255,255,.13);
  --ayd-v50-dark-text:#f8fafc;
  --ayd-v50-dark-soft:#cbd5e1;
  --ayd-v50-dark-muted:#98a2b8;
  --ayd-v50-red:#ef3340;
  --ayd-v50-orange:#ff5a0a;
  --ayd-v50-amber:#ff9a3d;
  --ayd-v50-purple:#9a67ff;
  --ayd-v50-cyan:#27d4ef;
  --ayd-v50-green:#64d889;
  --ayd-v50-cta:linear-gradient(135deg,#ef3340 0%,#ff5a0a 58%,#ff8a00 100%);
}

/* =========================================================
   AÇIK / DENGELİ TEMA: ana sayfa hero için premium ışık akışı
   ========================================================= */
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-hero,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-hero,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-v18-hero,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-v18-hero{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:
    radial-gradient(ellipse at 11% 18%,rgba(255,90,10,.27),transparent 26rem),
    radial-gradient(ellipse at 78% 8%,rgba(154,103,255,.36),transparent 32rem),
    radial-gradient(ellipse at 56% 86%,rgba(39,212,239,.17),transparent 30rem),
    linear-gradient(135deg,#070735 0%,#151259 44%,#2b185f 72%,#0d0e31 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 24px 76px rgba(7,7,53,.20)!important;
}
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-hero:before,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-hero:before,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-v18-hero:before,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-v18-hero:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-2!important;
  opacity:.27!important;
  pointer-events:none!important;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px)!important;
  background-size:52px 52px!important;
  transform:none!important;
  animation:none!important;
}
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-hero:after,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-hero:after,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-v18-hero:after,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-v18-hero:after{
  content:""!important;
  position:absolute!important;
  right:-8rem!important;
  top:7rem!important;
  left:auto!important;
  bottom:auto!important;
  width:56rem!important;
  height:18rem!important;
  border-radius:999px!important;
  z-index:-1!important;
  pointer-events:none!important;
  opacity:.34!important;
  filter:blur(26px)!important;
  transform:rotate(-4deg)!important;
  background:linear-gradient(90deg,transparent,rgba(239,51,64,.48),rgba(154,103,255,.35),transparent)!important;
}
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-hero :is(h1,h2,h3,.lead,p),
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-hero :is(h1,h2,h3,.lead,p),
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-v18-hero :is(h1,h2,h3,.ayd-v18-lead,p),
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-v18-hero :is(h1,h2,h3,.ayd-v18-lead,p){
  color:#fff!important;
  text-shadow:0 12px 34px rgba(0,0,0,.26)!important;
}
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-hero .lead,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-hero .lead,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .ayd-v18-lead,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .ayd-v18-lead{
  color:rgba(255,255,255,.78)!important;
}
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .hero-stat,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .hero-stat,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-soft .home-yandal-visual,
html.ayd-theme-v46.ayd-v46-page-home.ayd-v46-balanced .home-yandal-visual{
  background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.065))!important;
  border-color:rgba(255,255,255,.15)!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 18px 52px rgba(0,0,0,.18)!important;
}

/* Açık/Dengeli seçiliyken Panelim eski açık yapıda kalır; sadece hero premiumlaşır. */
html.ayd-theme-v46.ayd-v46-page-home:not(.ayd-v46-dark) .home-user-section .home-command-card{
  background:rgba(255,255,255,.98)!important;
  color:#0f172a!important;
}

/* =========================================================
   DARK: site genelinde koyu tema kontratları
   ========================================================= */
html.ayd-theme-v46.ayd-v46-dark{
  color-scheme:dark;
  --bs-body-bg:#05062d;
  --bs-body-color:#f8fafc;
  --bs-emphasis-color:#ffffff;
  --bs-secondary-color:#aeb7cc;
  --bs-tertiary-color:#8f99af;
  --bs-border-color:rgba(255,255,255,.14);
  --bs-card-bg:rgba(16,18,55,.94);
  --bs-card-color:#f8fafc;
  --bs-link-color:#ffb078;
  --bs-link-hover-color:#ffffff;
}
html.ayd-theme-v46.ayd-v46-dark,
html.ayd-theme-v46.ayd-v46-dark body{
  background:
    radial-gradient(circle at 14% 7%,rgba(239,51,64,.18),transparent 30rem),
    radial-gradient(circle at 86% 9%,rgba(154,103,255,.24),transparent 34rem),
    radial-gradient(circle at 58% 85%,rgba(39,212,239,.10),transparent 34rem),
    linear-gradient(145deg,#010227 0%,#05062d 48%,#0b0630 100%)!important;
  color:#f8fafc!important;
}
html.ayd-theme-v46.ayd-v46-dark body:before{
  background:
    radial-gradient(circle at 15% 12%,rgba(239,51,64,.20),transparent 26%),
    radial-gradient(circle at 84% 16%,rgba(154,103,255,.22),transparent 30%),
    radial-gradient(circle at 60% 78%,rgba(39,212,239,.10),transparent 30%),
    linear-gradient(145deg,#010227 0%,#05062d 48%,#0b0630 100%)!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(main,.main-content,.content-wrapper,.page-wrapper,.home-content-band,section.bg-white,section.bg-light,.bg-white,.bg-light){
  background:transparent!important;
  color:#f8fafc!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(.container,.container-fluid){
  color:inherit;
}

/* Dark hero */
html.ayd-theme-v46.ayd-v46-dark.ayd-v46-page-home .ayd-hero,
html.ayd-theme-v46.ayd-v46-dark.ayd-v46-page-home .ayd-v18-hero,
html.ayd-theme-v46.ayd-v46-dark .hero,
html.ayd-theme-v46.ayd-v46-dark .page-hero,
html.ayd-theme-v46.ayd-v46-dark .ydus-hero,
html.ayd-theme-v46.ayd-v46-dark .preference-hero{
  background:
    radial-gradient(ellipse at 10% 14%,rgba(255,90,10,.24),transparent 28rem),
    radial-gradient(ellipse at 80% 8%,rgba(154,103,255,.30),transparent 34rem),
    radial-gradient(ellipse at 55% 92%,rgba(39,212,239,.12),transparent 34rem),
    linear-gradient(135deg,#05052d 0%,#10104a 45%,#21124f 76%,#05062d 100%)!important;
  color:#fff!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 28px 84px rgba(0,0,0,.34)!important;
}
html.ayd-theme-v46.ayd-v46-dark .ayd-hero :is(h1,h2,h3,h4,h5,h6,.lead,p),
html.ayd-theme-v46.ayd-v46-dark .hero :is(h1,h2,h3,h4,h5,h6,.lead,p),
html.ayd-theme-v46.ayd-v46-dark .page-hero :is(h1,h2,h3,h4,h5,h6,.lead,p){
  color:#fff!important;
}
html.ayd-theme-v46.ayd-v46-dark .ayd-hero .lead,
html.ayd-theme-v46.ayd-v46-dark .hero .lead,
html.ayd-theme-v46.ayd-v46-dark .page-hero p{
  color:rgba(255,255,255,.78)!important;
}

/* Dark cards / surfaces */
html.ayd-theme-v46.ayd-v46-dark :is(
  .card,.modal-content,.dropdown-menu,.list-group-item,
  .section-card,.dashboard-card,.pricing-card,.plan-card,.course-card,.exam-card,.question-card,
  .lesson-card,.video-card,.spot-card,.ayd-pref-card,.preference-card,.preference-table-card,
  .home-command-card,.home-smart-card,.home-roadmap-card,.home-icon-topic,.home-simple-card,
  .home-latest-column,.home-latest-item,.home-mini-panel,.home-yandal-visual,.home-yandal-item,
  .home-live-strip,.home-survey-compact,.home-survey-card,.stat-card,.home-kpi-card,
  .ayd-v18-card,.ayd-v18-row,.ayd-v18-progressbox,.ayd-v18-chat-list,.ayd-v18-course,.ayd-v18-module,
  .ayd-v18-band > div
){
  background:linear-gradient(180deg,rgba(23,21,67,.94),rgba(12,13,47,.94))!important;
  color:#f8fafc!important;
  border-color:rgba(255,255,255,.13)!important;
  box-shadow:0 22px 64px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(.home-smart-card.smart-primary,.home-command-side-card){
  background:
    radial-gradient(circle at 84% 0%,rgba(39,212,239,.18),transparent 16rem),
    linear-gradient(135deg,rgba(16,23,58,.96) 0%,rgba(18,18,73,.96) 55%,rgba(47,18,66,.95) 100%)!important;
}

/* v49 panel restore açık temada korunur; dark seçildiyse panel de koyu olur. */
html.ayd-theme-v46.ayd-v46-dark .home-user-section,
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-command-card{
  background:transparent!important;
  color:#f8fafc!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-command-card{
  background:
    radial-gradient(circle at 7% 0%,rgba(255,90,10,.16),transparent 20rem),
    radial-gradient(circle at 94% 10%,rgba(154,103,255,.20),transparent 24rem),
    linear-gradient(135deg,rgba(13,13,54,.98),rgba(24,17,68,.96))!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 28px 86px rgba(0,0,0,.34),0 0 34px rgba(255,90,10,.08)!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-command-card .command-hero{
  background:transparent!important;
  color:#f8fafc!important;
  border:0!important;
  box-shadow:none!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-command-card .command-hero :is(h1,h2,h3,h4,h5,h6,strong,b,.fw-bold,.fw-black){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:0 12px 30px rgba(0,0,0,.24)!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-command-card .command-hero :is(p,.text-muted,small,.small,.soft){
  color:#cbd5e1!important;
  -webkit-text-fill-color:#cbd5e1!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-pill{
  background:rgba(255,255,255,.10)!important;
  color:#f8fafc!important;
  border-color:rgba(255,255,255,.13)!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-pill i{color:#79e6ff!important;-webkit-text-fill-color:#79e6ff!important;}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-command-card .home-kpi-card{
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055))!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.13)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 16px 38px rgba(0,0,0,.22)!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-command-card .home-kpi-card .kpi-number{
  color:#ff9a3d!important;
  -webkit-text-fill-color:#ff9a3d!important;
  text-shadow:0 0 18px rgba(255,90,10,.22)!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-command-card .home-kpi-card .kpi-label{
  color:#d6d9e8!important;
  -webkit-text-fill-color:#d6d9e8!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-smart-card{
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055))!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.13)!important;
}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-smart-card :is(h1,h2,h3,h4,h5,h6,strong,b){color:#fff!important;-webkit-text-fill-color:#fff!important;}
html.ayd-theme-v46.ayd-v46-dark .home-user-section .home-smart-card :is(p,.text-muted,small,.small){color:#cbd5e1!important;-webkit-text-fill-color:#cbd5e1!important;}

/* Dark typography */
html.ayd-theme-v46.ayd-v46-dark :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,.home-section-title,.section-title,.fw-bold,.fw-black,strong,b){
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(p,.text-muted,.soft,small,.small,.lead,.card-text,.form-text,.ayd-v18-muted){
  color:#b8bfd2!important;
  -webkit-text-fill-color:#b8bfd2!important;
}
html.ayd-theme-v46.ayd-v46-dark a:not(.btn){color:#ffb078!important;}
html.ayd-theme-v46.ayd-v46-dark a:not(.btn):hover{color:#fff!important;}
html.ayd-theme-v46.ayd-v46-dark .text-primary{color:#79e6ff!important;-webkit-text-fill-color:#79e6ff!important;}
html.ayd-theme-v46.ayd-v46-dark .text-success{color:#86efac!important;-webkit-text-fill-color:#86efac!important;}
html.ayd-theme-v46.ayd-v46-dark .text-danger{color:#ff7a83!important;-webkit-text-fill-color:#ff7a83!important;}

/* Tables */
html.ayd-theme-v46.ayd-v46-dark table,
html.ayd-theme-v46.ayd-v46-dark .table{
  --bs-table-bg:transparent;
  --bs-table-color:#eef2ff;
  --bs-table-border-color:rgba(255,255,255,.12);
  --bs-table-striped-bg:rgba(255,255,255,.045);
  --bs-table-striped-color:#f8fafc;
  --bs-table-hover-bg:rgba(255,255,255,.075);
  --bs-table-hover-color:#fff;
  color:#eef2ff!important;
  border-color:rgba(255,255,255,.12)!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(thead,thead th,.table thead th){
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.14)!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(td,th){border-color:rgba(255,255,255,.10)!important;}

/* Forms / dropdowns / modals */
html.ayd-theme-v46.ayd-v46-dark :is(.form-control,.form-select,input,textarea,select){
  background:rgba(255,255,255,.075)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.16)!important;
  box-shadow:none!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(.form-control,.form-select,input,textarea,select)::placeholder{color:rgba(255,255,255,.48)!important;}
html.ayd-theme-v46.ayd-v46-dark :is(.form-control,.form-select,input,textarea,select):focus{
  border-color:rgba(39,212,239,.55)!important;
  box-shadow:0 0 0 .22rem rgba(39,212,239,.14)!important;
}
html.ayd-theme-v46.ayd-v46-dark .dropdown-item{color:#f8fafc!important;}
html.ayd-theme-v46.ayd-v46-dark .dropdown-item:hover,
html.ayd-theme-v46.ayd-v46-dark .dropdown-item:focus{background:rgba(255,255,255,.10)!important;color:#fff!important;}
html.ayd-theme-v46.ayd-v46-dark .modal-header,
html.ayd-theme-v46.ayd-v46-dark .modal-footer,
html.ayd-theme-v46.ayd-v46-dark .list-group-item{border-color:rgba(255,255,255,.12)!important;}

/* Buttons / badges */
html.ayd-theme-v46.ayd-v46-dark :is(.btn-primary,.btn-danger,.btn-ayd,.home-cta-primary,.ayd-ann-action){
  background:linear-gradient(135deg,#ef3340 0%,#ff5a0a 58%,#ff8a00 100%)!important;
  border-color:transparent!important;
  color:#fff!important;
  box-shadow:0 0 30px rgba(255,90,10,.28),0 16px 42px rgba(239,51,64,.15)!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(.btn-outline-primary,.btn-outline-secondary,.btn-outline-light,.btn-light){
  background:rgba(255,255,255,.06)!important;
  border-color:rgba(255,255,255,.17)!important;
  color:#f8fafc!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(.btn-outline-primary,.btn-outline-secondary,.btn-outline-light,.btn-light):hover{
  background:rgba(255,255,255,.13)!important;
  color:#fff!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(.badge,.home-pill,.section-badge,.home-live-pill,.home-survey-pill,.home-yandal-tags span){
  border-color:rgba(255,255,255,.13)!important;
}

/* Alerts: koyu temada okunabilir kalsın */
html.ayd-theme-v46.ayd-v46-dark .alert{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.13)!important;
}
html.ayd-theme-v46.ayd-v46-dark .alert-warning{background:rgba(255,193,7,.12)!important;color:#fff2c7!important;}
html.ayd-theme-v46.ayd-v46-dark .alert-success{background:rgba(34,197,94,.12)!important;color:#c7ffd8!important;}
html.ayd-theme-v46.ayd-v46-dark .alert-danger{background:rgba(239,68,68,.14)!important;color:#ffd0d0!important;}
html.ayd-theme-v46.ayd-v46-dark .alert-info{background:rgba(14,165,233,.13)!important;color:#d2f4ff!important;}

/* Pagination / tabs / nav-pills */
html.ayd-theme-v46.ayd-v46-dark :is(.page-link,.nav-tabs .nav-link,.nav-pills .nav-link){
  background:rgba(255,255,255,.06)!important;
  border-color:rgba(255,255,255,.12)!important;
  color:#e5e7eb!important;
}
html.ayd-theme-v46.ayd-v46-dark :is(.page-item.active .page-link,.nav-tabs .nav-link.active,.nav-pills .nav-link.active){
  background:linear-gradient(135deg,#ef3340,#ff5a0a)!important;
  color:#fff!important;
  border-color:transparent!important;
}

/* Admin/pro UI if front theme leaks into admin header preview */
html.ayd-theme-v46.ayd-v46-dark .ayd-pro-ui :is(.section-card,.card){
  background:linear-gradient(180deg,rgba(23,21,67,.96),rgba(12,13,47,.96))!important;
  color:#f8fafc!important;
}

@media(max-width:991.98px){
  html.ayd-theme-v46.ayd-v46-page-home:not(.ayd-v46-dark) .ayd-hero,
  html.ayd-theme-v46.ayd-v46-dark.ayd-v46-page-home .ayd-hero{
    padding-top:4.2rem!important;
  }
}
