/* ==========================================================
   kosunucu.com - Ortak arayüz parçaları (form, modal, seçim çipleri)
   Hem ana sayfa hem yönetim panelinde kullanılır.
   ========================================================== */

.form-group { margin-bottom: 1.1rem; }
.form-group > label { display: block; margin-bottom: .45rem; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.textarea { resize: vertical; min-height: 84px; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(4, 5, 10, .72); backdrop-filter: blur(6px); animation: fade .2s; overflow-y: auto; }
html[data-theme="light"] .modal-overlay { background: rgba(40, 28, 8, .45); }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; border-radius: 22px; background: var(--card-solid); border: 1px solid var(--border-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); animation: pop .3s var(--ease); overflow: hidden; }
.modal-sm { width: min(420px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.modal form { display: flex; flex-direction: column; min-height: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { display: flex; align-items: center; gap: .65rem; font-size: 1.1rem; font-weight: 700; }
.modal-head h3 .i { color: var(--gold); font-size: 1.3rem; }
.modal-head h3 [data-ico] { display: inline-flex; }
.modal-close { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); }
.modal-close:hover { background: var(--card-2); color: var(--text); }
.modal-body { padding: 1.3rem 1.4rem .4rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem 1.2rem; border-top: 1px solid var(--border); }
.modal-foot.center { justify-content: center; border-top: 0; padding-top: .2rem; }
.confirm { text-align: center; padding-top: 1.8rem; padding-bottom: 1rem; }
.confirm-ico { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: var(--red); background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); }
.confirm h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.confirm p { color: var(--text-2); font-size: .9rem; }
.confirm strong { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 11px; font-size: .84rem; font-weight: 500; color: var(--text-2); background: var(--card); border: 1px solid var(--border); transition: all .2s; }
.chip .i { color: var(--c); }
.chip:hover span { border-color: rgb(var(--c-rgb) / .55); }
.chip input:checked + span { color: var(--text); background: rgb(var(--c-rgb) / .16); border-color: var(--c); box-shadow: 0 0 0 3px rgb(var(--c-rgb) / .15); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }


/* ---------- Çerez (Cookie) Bildirim Çubuğu ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 2rem));
  z-index: 99;
  background: rgba(14, 18, 30, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 1rem 1.3rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(232, 194, 106, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  animation: slideUpCookie 0.4s var(--ease);
}
@keyframes slideUpCookie {
  from { opacity: 0; transform: translate(-50%, 25px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-content {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--text-2);
}
.cookie-content .i {
  color: var(--gold);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cookie-content a {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-actions {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    gap: .8rem;
    padding: 1rem;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}
