/*
 * RizeDijital v0.58.5 — Ortak koyu tema iyileştirmeleri
 * Bu dosya site_header partial'ından bütün public sayfalarda modül CSS'lerinden sonra yüklenir.
 */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0a1410;
  --card:#132019;
  --text:#edf5f0;
  --text2:#bfd0c6;
  --text3:#8fa59a;
  --border:#294137;
  --gpale:#143321;
  --glight:#101f18;
  --rd-dark-surface:#132019;
  --rd-dark-surface-2:#18271f;
  --rd-dark-surface-3:#0e1a14;
  --rd-dark-border:#294137;
  --rd-dark-text:#edf5f0;
  --rd-dark-muted:#9bb0a5;
}
html[data-theme="dark"] body{
  background:#0a1410!important;
  color:var(--rd-dark-text)!important;
}
html[data-theme="dark"] body::selection{background:#2db870;color:#07120d}
html[data-theme="dark"] :where(a){text-decoration-color:rgba(126,239,192,.55)}
html[data-theme="dark"] :where(hr){border-color:var(--rd-dark-border)!important}

/* Form ve tablo temeli */
html[data-theme="dark"] :where(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]){
  background:#101d17!important;
  border-color:#304a3d!important;
  color:#eef5f1!important;
  caret-color:#7eefc0;
}
html[data-theme="dark"] :where(input,textarea)::placeholder{color:#789087!important;opacity:1}
html[data-theme="dark"] :where(input,select,textarea):focus{
  border-color:#35b675!important;
  box-shadow:0 0 0 3px rgba(53,182,117,.14)!important;
}
html[data-theme="dark"] :where(option){background:#132019;color:#edf5f0}
html[data-theme="dark"] :where(table){color:#e7f0eb}
html[data-theme="dark"] :where(th){color:#d6e5dc;border-color:#2a4337!important}
html[data-theme="dark"] :where(td){color:#b9cdc2;border-color:#233a30!important}
html[data-theme="dark"] :where(tbody tr:hover){background:rgba(61,217,138,.055)}

/* Header, arama, konum ve mobil navigasyon */
html[data-theme="dark"] header,
html[data-theme="dark"] .mob-hdr,
html[data-theme="dark"] .nav-bar{
  background:rgba(10,20,16,.97)!important;
  border-color:#23392f!important;
}
html[data-theme="dark"] :where(.search-wrap input,.mob-search-bar input,.mob-drawer-search-box,.mob-drawer-search-box input){
  background:#101d17!important;
  color:#edf5f0!important;
  border-color:#2d463a!important;
}
html[data-theme="dark"] :where(.icon-btn,.dm-toggle,.mob-dm-toggle,.mob-menu-btn){
  background:#132019!important;
  color:#c8d8cf!important;
  border-color:#2d463a!important;
}
html[data-theme="dark"] :where(.icon-btn,.dm-toggle,.mob-dm-toggle,.mob-menu-btn):hover{
  background:#193026!important;
  color:#7eefc0!important;
  border-color:#35b675!important;
}
html[data-theme="dark"] :where(.loc-modal,.nav-dropdown,#nav-mega-portal,.mob-drawer){
  background:#111e17!important;
  color:#e9f2ed!important;
  border-color:#2a4337!important;
}
html[data-theme="dark"] :where(.loc-opt,.mob-app-group,.mob-app-primary a,.mob-app-service-grid a,.mob-app-list>a,.mob-app-actions a){
  border-color:rgba(255,255,255,.08)!important;
}
html[data-theme="dark"] .loc-opt-name,
html[data-theme="dark"] .mob-app-group>header span,
html[data-theme="dark"] .mob-app-list strong{color:#eaf3ee!important}
html[data-theme="dark"] .loc-opt-sub,
html[data-theme="dark"] .mob-app-group>header small,
html[data-theme="dark"] .mob-app-list small{color:#91a69b!important}

/* Ortak kartlar ve popuplar */
html[data-theme="dark"] :where(
  .card,.stat-c,.ig-item,.nc,.widget,.panel,.content-card,.form-card,
  .modal-content,.popup-content,.dropdown-menu,.more-services-grid,
  .rd-home-service-card,.info-strip,.icard
){
  background-color:var(--rd-dark-surface)!important;
  border-color:var(--rd-dark-border)!important;
  color:var(--rd-dark-text)!important;
}
html[data-theme="dark"] :where(.card,.stat-c,.ig-item,.nc,.rd-home-service-card){
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] :where(.card-title,.st,.ig-lbl,.nc-title,.ic-val,.stat-val){color:#edf5f0!important}
html[data-theme="dark"] :where(.ic-lbl,.ic-sub,.nc-meta,.stat-lbl,.rd-home-service-copy small){color:#91a69b!important}
html[data-theme="dark"] .more-services-toggle{box-shadow:0 10px 24px rgba(0,0,0,.24)}
html[data-theme="dark"] .toast{background:#183024;color:#eef7f2;border:1px solid #355443}

/* Ana sayfa ve Asistan widget */
html[data-theme="dark"] .rd-home-page .wrap{background:transparent!important}
html[data-theme="dark"] .rd-home-page .ai-card{
  background:linear-gradient(135deg,#04150d 0%,#083b23 43%,#0e6740 76%,#07565a 100%)!important;
  border-color:rgba(126,239,192,.18)!important;
}
html[data-theme="dark"] .rd-home-page .ai-chip{background:rgba(255,255,255,.085)!important;color:#fff!important}
html[data-theme="dark"] .rd-home-page .ai-row{background:rgba(0,0,0,.24)!important}
html[data-theme="dark"] .rd-home-page .ai-inp{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
}
html[data-theme="dark"] :where(.ic-bl){background:#10273b!important;color:#79baf0!important}
html[data-theme="dark"] :where(.ic-rd){background:#32191c!important;color:#ff9da8!important}
html[data-theme="dark"] :where(.ic-pp){background:#281c37!important;color:#d8a7ef!important}
html[data-theme="dark"] :where(.ic-am){background:#34250f!important;color:#ffc45e!important}
html[data-theme="dark"] :where(.ic-tl){background:#102d30!important;color:#74d9df!important}
html[data-theme="dark"] :where(.ic-pk){background:#341b28!important;color:#f49ac0!important}
html[data-theme="dark"] :where(.ic-in){background:#20243b!important;color:#9faaf0!important}

/* Public AI Asistan sayfası */
html[data-theme="dark"] .rai-page{
  --rai-ink:#edf5f0;
  --rai-muted:#98ada2;
  --rai-border:#2a4337;
  --rai-bg:#0a1410;
  background:#0a1410!important;
}
html[data-theme="dark"] :where(.rai-capabilities>div,.rai-chat-card,.rai-side-card,.rai-chat-head,.rai-quick,.rai-quick-shell,.rai-composer,.rai-source,.rai-reset,.rai-history-link,.rai-quick-nav){
  background:#132019!important;
  border-color:#2a4337!important;
  color:#eaf3ee!important;
}
html[data-theme="dark"] .rai-thread{background:linear-gradient(180deg,#0e1914,#101d17)!important}
html[data-theme="dark"] .rai-message.assistant .rai-bubble{background:#18271f!important;border-color:#304a3d!important;color:#edf5f0!important}
html[data-theme="dark"] .rai-answer-action{background:#10251a!important;border-color:#2d5b42!important;color:#7eefc0!important}
html[data-theme="dark"] .rai-login-gate{background:linear-gradient(135deg,#14261c,#18231e 58%,#211c2c)!important;border-color:#30473b!important}
html[data-theme="dark"] .rai-login-gate-icon{background:#17271f!important;border-color:#30473b!important}
html[data-theme="dark"] .rai-quick button{background:#17271f!important;border-color:#30473b!important;color:#c7d8cf!important}
html[data-theme="dark"] .rai-input-wrap textarea{background:#101d17!important}
html[data-theme="dark"] .rai-privacy{background:linear-gradient(135deg,#201b30,#132019)!important}

/* RizeDijital Market */
html[data-theme="dark"] .rdm-page{
  --rdm-ink:#eef3ef;
  --rdm-muted:#a29178;
  --rdm-line:#443a29;
  --rdm-soft:#2a2418;
  background:#0d120f!important;
  color:#eef3ef!important;
}
html[data-theme="dark"] :where(
  .rdm-category-strip,.rdm-product-card,.rdm-section-head,.rdm-wallet-card,
  .rdm-detail,.rdm-description-card,.rdm-order-card,.rdmo-order,.rdm-login-call
){
  background:#181a16!important;
  border-color:#443a29!important;
  color:#f3eee3!important;
}
html[data-theme="dark"] :where(.rdm-product-body h3 a,.rdm-detail-info h1,.rdmo-copy h2,.rdm-login-call h3){color:#f3eee3!important}
html[data-theme="dark"] :where(.rdm-product-body>p,.rdm-detail-info>p,.rdmo-copy>small,.rdm-login-call p){color:#ab9d87!important}
html[data-theme="dark"] .rdm-detail-hero:before{background:radial-gradient(circle at 75% 15%,rgba(239,186,62,.12),transparent 31%),linear-gradient(135deg,#171914,#242016)!important}
html[data-theme="dark"] .rdm-detail-media{background:linear-gradient(145deg,#252116,#171713)!important;border-color:#4b3e28!important}
html[data-theme="dark"] :where(.rdm-price-box,.rdm-order-total){background:linear-gradient(110deg,#211e17,#2c2617)!important;border-color:#4b3e28!important}
html[data-theme="dark"] .rdm-mobile-balance{background:#211e17!important;border-color:#4b3e28!important;color:#f2eadb!important}
html[data-theme="dark"] .rdm-option-group label{background:#171914!important;border-color:#443a29!important;color:#efe9dc!important}
html[data-theme="dark"] .rdm-option-group label.selected{background:#2a2418!important;border-color:#b9882d!important}
html[data-theme="dark"] :where(.rdm-field input,.rdm-field select,.rdm-field textarea){background:#121511!important;border-color:#443a29!important;color:#f3eee3!important}
html[data-theme="dark"] .rdm-order-warning{background:#2c2517!important;color:#e6c782!important}
html[data-theme="dark"] :where(.rdmo-options span,.rdmo-note){background:#20251f!important;color:#aebbb4!important}

/* RizeCoin cüzdan, tanıtım ve görevler */
html[data-theme="dark"] .rc-page{
  --rc-ink:#edf5f0;
  --rc-muted:#9bb0a5;
  --rc-line:#2b4438;
  --rc-soft:#142a1f;
}
html[data-theme="dark"] :where(.rc-stats article,.rc-card,.rc-future,.rc-quick button){
  background:#132019!important;
  border-color:#2b4438!important;
  color:#edf5f0!important;
}
html[data-theme="dark"] :where(.rc-stats strong,.rc-card-head h2,.rc-form label>span,.rc-history-copy strong,.rc-empty h3,.rc-future h2){color:#edf5f0!important}
html[data-theme="dark"] :where(.rc-input-wrap,.rc-form textarea){background:#101d17!important;border-color:#304a3d!important}
html[data-theme="dark"] .rc-history-row{border-color:#233a30!important}
html[data-theme="dark"] .rct-page{background:#0d120f!important;color:#f1eee6!important}
html[data-theme="dark"] :where(.rct-intro,.rct-section,.rct-flow,.rct-market,.rct-game-access){background:#181a16!important;border-color:#443a29!important;color:#f1eee6!important}
html[data-theme="dark"] .rcg-page{background:#0a1410!important;color:#edf5f0!important}
html[data-theme="dark"] :where(.rcg-streak,.rcg-task,.rcg-panel,.rcg-head>span,.quiz fieldset,.quiz label){background:#132019!important;border-color:#2b4438!important;color:#edf5f0!important}
html[data-theme="dark"] :where(.rcg-task p,.rcg-panel header p,.code small,.invite>p){color:#9bb0a5!important}
html[data-theme="dark"] .rcg-task.done{background:#12291d!important;border-color:#2f6748!important}
html[data-theme="dark"] .rcg-task.wait{background:#282316!important;border-color:#574a2a!important}
html[data-theme="dark"] .code{background:#282316!important;border-color:#8c6a25!important}

/* Sistem tercihleri ve azaltılmış hareket */
@media(prefers-reduced-motion:reduce){
  html[data-theme="dark"] *,html[data-theme="dark"] *::before,html[data-theme="dark"] *::after{transition:none!important}
}
