/* Hesabımtam Çerez Banner — ana stiller */
:root {
  --hesabimtam-bg:       #0f172a;
  --hesabimtam-surface:  #1e293b;
  --hesabimtam-border:   #334155;
  --hesabimtam-text:     #f1f5f9;
  --hesabimtam-muted:    #94a3b8;
  --hesabimtam-accent:   #3b82f6;
  --hesabimtam-green:    #22c55e;
  --hesabimtam-radius:   12px;
  --hesabimtam-shadow:   0 -4px 32px rgba(0,0,0,.45);
  --hesabimtam-z:        999999;
}

#hesabimtam-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: calc(var(--hesabimtam-z) - 1);
  backdrop-filter: blur(2px);
}

#hesabimtam-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: var(--hesabimtam-z);
  background: var(--hesabimtam-bg);
  border-top: 1px solid var(--hesabimtam-border);
  box-shadow: var(--hesabimtam-shadow);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hesabimtam-text);
  animation: hesabimtamSlide .35s cubic-bezier(.16,1,.3,1) both;
}

#hesabimtam-banner.hesabimtam-top    { top: 0; border-top: none; border-bottom: 1px solid var(--hesabimtam-border); box-shadow: 0 4px 32px rgba(0,0,0,.45); }
#hesabimtam-banner.hesabimtam-bottom { bottom: 0; }

@keyframes hesabimtamSlide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#hesabimtam-banner.hesabimtam-top { animation-name: hesabimtamSlideDown; }
@keyframes hesabimtamSlideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.hesabimtam-inner { max-width: 960px; margin: 0 auto; padding: 20px 24px; }

.hesabimtam-simple { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.hesabimtam-simple-text { flex: 1; min-width: 220px; }
.hesabimtam-simple-text p { margin: 4px 0 0; color: var(--hesabimtam-muted); font-size: 13px; }
.hesabimtam-simple-text h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.hesabimtam-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hesabimtam-links a { color: var(--hesabimtam-accent); text-decoration: none; font-size: 12px; }
.hesabimtam-links a:hover { text-decoration: underline; }
.hesabimtam-simple-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }

.hesabimtam-detail { display: none; }
.hesabimtam-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hesabimtam-detail-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.hesabimtam-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.hesabimtam-cat {
  background: var(--hesabimtam-surface);
  border: 1px solid var(--hesabimtam-border);
  border-radius: var(--hesabimtam-radius);
  padding: 14px;
  position: relative;
  transition: border-color .2s;
}
.hesabimtam-cat:hover { border-color: var(--hesabimtam-accent); }
.hesabimtam-cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hesabimtam-cat-title { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.hesabimtam-cat-desc { color: var(--hesabimtam-muted); font-size: 12px; line-height: 1.5; }
.hesabimtam-always { font-size: 11px; color: var(--hesabimtam-green); font-weight: 500; }

.hesabimtam-toggle { position: relative; display: inline-flex; align-items: center; }
.hesabimtam-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.hesabimtam-toggle-track {
  width: 40px; height: 22px;
  background: var(--hesabimtam-border);
  border-radius: 11px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.hesabimtam-toggle input:checked + .hesabimtam-toggle-track { background: var(--hesabimtam-accent); }
.hesabimtam-toggle input:disabled + .hesabimtam-toggle-track { background: var(--hesabimtam-green); cursor: not-allowed; opacity: .7; }
.hesabimtam-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.hesabimtam-toggle input:checked ~ .hesabimtam-toggle-track::after { transform: translateX(18px); }

.hesabimtam-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, opacity .18s;
  white-space: nowrap;
}
.hesabimtam-btn:hover { opacity: .88; }
.hesabimtam-btn-primary   { background: var(--hesabimtam-accent); color: #fff; }
.hesabimtam-btn-secondary { background: var(--hesabimtam-surface); color: var(--hesabimtam-text); border: 1px solid var(--hesabimtam-border); }
.hesabimtam-btn-ghost     { background: transparent; color: var(--hesabimtam-muted); padding: 9px 10px; }
.hesabimtam-btn-ghost:hover { color: var(--hesabimtam-text); }
.hesabimtam-btn-reject    { background: transparent; color: var(--hesabimtam-muted); border: 1px solid var(--hesabimtam-border); }

.hesabimtam-detail-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

#hesabimtam-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: calc(var(--hesabimtam-z) - 2);
  background: var(--hesabimtam-surface);
  border: 1px solid var(--hesabimtam-border);
  color: var(--hesabimtam-muted);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  display: none;
  transition: color .2s, border-color .2s;
}
#hesabimtam-reopen:hover { color: var(--hesabimtam-text); border-color: var(--hesabimtam-accent); }

.hesabimtam-toggle input:focus-visible + .hesabimtam-toggle-track { outline: 2px solid var(--hesabimtam-accent); outline-offset: 2px; }
.hesabimtam-btn:focus-visible { outline: 2px solid var(--hesabimtam-accent); outline-offset: 2px; }

@media (max-width: 600px) {
  .hesabimtam-inner { padding: 16px; }
  .hesabimtam-simple { flex-direction: column; gap: 14px; }
  .hesabimtam-simple-actions { width: 100%; }
  .hesabimtam-btn { flex: 1; text-align: center; }
  .hesabimtam-categories { grid-template-columns: 1fr; }
  .hesabimtam-detail-actions { flex-direction: column-reverse; }
  .hesabimtam-detail-actions .hesabimtam-btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  #hesabimtam-banner { animation: none; }
}
