/* Draconis Infrastructure — cookie consent UI
   Uses the tokens defined in assets/css/style.css (:root) with hard fallbacks
   so the banner still looks correct if style.css fails to load. */

.dc-cm.dc-cm,
.dc-cm.dc-cm * {
  box-sizing: border-box;
}

.dc-cm.dc-cm {
  --cm-navy: var(--navy, #0d1b2a);
  --cm-navy-2: var(--navy-2, #102a43);
  --cm-navy-3: var(--navy-3, #16314d);
  --cm-teal: var(--teal, #68c7b0);
  --cm-teal-d: var(--teal-d, #3da589);
  --cm-ink: var(--ink, #1f2d3d);
  --cm-body: var(--body, #475569);
  --cm-line: var(--line, #e6edf2);
  --cm-white: var(--white, #fff);
  --cm-rad: var(--rad, 16px);
  --cm-rad-sm: var(--rad-sm, 10px);
  --cm-sans: var(--sans, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-family: var(--cm-sans);
  line-height: 1.6;
}

/* ---------------------------------------------------------------- banner */

.dc-cm-banner.dc-cm-banner {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--cm-navy);
  color: #e8eef4;
  border: 1px solid rgba(104, 199, 176, .28);
  border-radius: var(--cm-rad);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.dc-cm-banner.dc-cm-banner[hidden],
.dc-cm-modal.dc-cm-modal[hidden],
.dc-cm-fab.dc-cm-fab[hidden] {
  display: none !important;
}

.dc-cm-banner-text.dc-cm-banner-text {
  flex: 1 1 420px;
  min-width: 260px;
  font-size: 14.5px;
  color: #cfdae4;
}

.dc-cm-banner-text.dc-cm-banner-text strong {
  display: block;
  color: var(--cm-white);
  font-size: 16px;
  margin-bottom: 6px;
  font-family: var(--head, var(--cm-sans));
}

.dc-cm-banner-text.dc-cm-banner-text a,
.dc-cm-modal.dc-cm-modal a {
  color: var(--cm-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dc-cm-actions.dc-cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---------------------------------------------------------------- buttons */

.dc-cm-btn.dc-cm-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.dc-cm-btn.dc-cm-btn:focus-visible {
  outline: 2px solid var(--cm-teal);
  outline-offset: 2px;
}

.dc-cm-btn--primary.dc-cm-btn--primary {
  background: var(--cm-teal);
  color: #06231c;
}

.dc-cm-btn--primary.dc-cm-btn--primary:hover {
  background: var(--cm-teal-d);
}

.dc-cm-btn--ghost.dc-cm-btn--ghost {
  background: transparent;
  color: #e8eef4;
  border-color: rgba(232, 238, 244, .38);
}

.dc-cm-btn--ghost.dc-cm-btn--ghost:hover {
  border-color: var(--cm-teal);
  color: var(--cm-teal);
}

.dc-cm-btn--link.dc-cm-btn--link {
  background: none;
  border: none;
  color: #cfdae4;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px 6px;
}

.dc-cm-btn--link.dc-cm-btn--link:hover {
  color: var(--cm-teal);
}

/* --------------------------------------------------- persistent FAB button */

/* Sag altta: 46px daire. Sol alt ve daha buyuk bir dugme sayfa baglantilarini
   kapatiyordu (bkz. check_fab_overlap.mjs). Etiket yalnizca hover/odakta acilir. */
.dc-cm-fab.dc-cm-fab {
  position: fixed;
  z-index: 2147482000;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cm-white);
  background: var(--cm-navy);
  border: 1px solid rgba(104, 199, 176, .35);
  border-radius: 999px;
  box-shadow: 0 12px 30px -14px rgba(13, 27, 42, .6);
  cursor: pointer;
  opacity: .9;
  overflow: hidden;
  transition: opacity .18s ease, width .18s ease, padding .18s ease;
}

.dc-cm-fab.dc-cm-fab .dc-cm-fab-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width .18s ease, opacity .18s ease, margin-left .18s ease;
}

.dc-cm-fab.dc-cm-fab:hover,
.dc-cm-fab.dc-cm-fab:focus-visible {
  opacity: 1;
  width: auto;
  padding: 0 16px 0 13px;
}

.dc-cm-fab.dc-cm-fab:hover .dc-cm-fab-label,
.dc-cm-fab.dc-cm-fab:focus-visible .dc-cm-fab-label {
  max-width: 170px;
  opacity: 1;
  margin-left: 8px;
}

.dc-cm-fab.dc-cm-fab:focus-visible {
  outline: 2px solid var(--cm-teal);
  outline-offset: 2px;
}

.dc-cm-fab.dc-cm-fab svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--cm-teal);
}

/* ---------------------------------------------------------------- modal */

.dc-cm-modal.dc-cm-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 15, 25, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dc-cm-dialog.dc-cm-dialog {
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--cm-white);
  color: var(--cm-body);
  border-radius: var(--cm-rad);
  box-shadow: 0 40px 90px -30px rgba(13, 27, 42, .6);
  overflow: hidden;
}

.dc-cm-head.dc-cm-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--cm-line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dc-cm-head.dc-cm-head h2 {
  font-family: var(--head, var(--cm-sans));
  font-size: 20px;
  color: var(--cm-ink);
  margin: 0 0 4px;
  line-height: 1.3;
}

.dc-cm-head.dc-cm-head p {
  margin: 0;
  font-size: 14px;
}

.dc-cm-close.dc-cm-close {
  margin-left: auto;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cm-line);
  background: var(--cm-white);
  color: var(--cm-body);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dc-cm-close.dc-cm-close:hover {
  background: var(--mint, #f1f9f7);
  color: var(--cm-ink);
}

.dc-cm-body.dc-cm-body {
  padding: 8px 24px 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dc-cm-cat.dc-cm-cat {
  padding: 16px 0;
  border-bottom: 1px solid var(--cm-line);
}

.dc-cm-cat.dc-cm-cat:last-child {
  border-bottom: none;
}

.dc-cm-cat-top.dc-cm-cat-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dc-cm-cat-top.dc-cm-cat-top h3 {
  font-family: var(--head, var(--cm-sans));
  font-size: 15.5px;
  color: var(--cm-ink);
  margin: 0;
  flex: 1;
}

.dc-cm-cat.dc-cm-cat p {
  margin: 8px 0 0;
  font-size: 13.5px;
}

.dc-cm-always.dc-cm-always {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cm-teal-d);
  background: var(--mint-2, #eafaf5);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* switch */

.dc-cm-switch.dc-cm-switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
}

.dc-cm-switch.dc-cm-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.dc-cm-switch.dc-cm-switch span {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .18s ease;
  pointer-events: none;
}

.dc-cm-switch.dc-cm-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(13, 27, 42, .3);
  transition: transform .18s ease;
}

.dc-cm-switch.dc-cm-switch input:checked + span {
  background: var(--cm-teal-d);
}

.dc-cm-switch.dc-cm-switch input:checked + span::after {
  transform: translateX(20px);
}

.dc-cm-switch.dc-cm-switch input:focus-visible + span {
  outline: 2px solid var(--cm-teal);
  outline-offset: 2px;
}

.dc-cm-foot.dc-cm-foot {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--cm-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--mint, #f1f9f7);
}

.dc-cm-foot.dc-cm-foot .dc-cm-btn--ghost.dc-cm-btn--ghost {
  color: var(--cm-ink);
  border-color: #c9d6e2;
}

.dc-cm-foot.dc-cm-foot .dc-cm-btn--ghost.dc-cm-btn--ghost:hover {
  border-color: var(--cm-teal-d);
  color: var(--cm-teal-dd, #2c7d68);
}

.dc-cm-foot-note.dc-cm-foot-note {
  flex: 1 1 100%;
  font-size: 12.5px;
  color: var(--muted, #7b8a9a);
  margin: 0;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 720px) {
  .dc-cm-banner.dc-cm-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px;
  }

  .dc-cm-actions.dc-cm-actions {
    width: 100%;
  }

  .dc-cm-actions.dc-cm-actions .dc-cm-btn.dc-cm-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .dc-cm-fab.dc-cm-fab {
    right: 14px;
    bottom: 18px;
    font-size: 12.5px;
    width: 44px;
    height: 44px;
  }

  .dc-cm-head.dc-cm-head,
  .dc-cm-body.dc-cm-body,
  .dc-cm-foot.dc-cm-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-cm-btn.dc-cm-btn,
  .dc-cm-fab.dc-cm-fab,
  .dc-cm-switch.dc-cm-switch span,
  .dc-cm-switch.dc-cm-switch span::after {
    transition: none;
  }
}

/* ------------------------------------------------------------------------- */
/* Tema cakismasi: hello-elementor `[type=button]:focus,[type=button]:hover  */
/* {color:#fff;background-color:#c36}` kurali (0,2,0) ozgullugundedir ve     */
/* consent.css'ten SONRA yuklenir. Asagidaki kurallar 2 sinif + 1 sozde-sinif */
/* = (0,3,0) oldugu icin hem :hover hem :focus durumunda bizim renkler gecer. */
/* ------------------------------------------------------------------------- */

.dc-cm-btn--primary.dc-cm-btn--primary:hover,
.dc-cm-btn--primary.dc-cm-btn--primary:focus {
  background: var(--cm-teal-d);
  color: #06231c;
}

.dc-cm-btn--ghost.dc-cm-btn--ghost:hover,
.dc-cm-btn--ghost.dc-cm-btn--ghost:focus {
  background: transparent;
  color: var(--cm-teal);
  border-color: var(--cm-teal);
}

.dc-cm-btn--link.dc-cm-btn--link:hover,
.dc-cm-btn--link.dc-cm-btn--link:focus {
  background: none;
  color: var(--cm-teal);
}

.dc-cm-close.dc-cm-close:hover,
.dc-cm-close.dc-cm-close:focus {
  background: var(--mint, #f1f9f7);
  color: var(--cm-ink);
  border-color: var(--cm-line);
}

.dc-cm-fab.dc-cm-fab:hover,
.dc-cm-fab.dc-cm-fab:focus {
  background: var(--cm-navy-2);
  color: var(--cm-white);
  border-color: var(--cm-teal);
}

/* Footer ekrandayken kalici dugme cekilir (footer'da kendi baglantisi var). */
.dc-cm-fab.dc-cm-fab.dc-cm-fab--tucked {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
