/* GolfBelek.com — Cookie Consent Banner styles
 * Direktif: COOKIE_BANNER_DIRECTIVE.docx · Ferit Turgut · 2 Mayıs 2026
 * Brand green: #93cf49 / #7bb83a
 */

/* ── Banner ─────────────────────────────────────────────────── */
#gb-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.12);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transform: translateY(100%);
  transition: transform .3s ease;
}
#gb-cookie-banner.gb-cb--visible { transform: translateY(0); }

.gb-cb-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; gap: 1.5rem;
  align-items: center; flex-wrap: wrap;
}
.gb-cb-content { flex: 1; min-width: 280px; }
.gb-cb-content h2 {
  margin: 0 0 .35rem; font-size: 1rem;
  color: #0f172a; font-weight: 600;
}
.gb-cb-content p {
  margin: 0; color: #475569; font-size: .88rem; line-height: 1.5;
}
.gb-cb-content a { color: #7bb83a; text-decoration: underline; }

.gb-cb-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.gb-cb-btn {
  font-family: inherit; font-size: .88rem; font-weight: 600;
  border-radius: 8px; padding: .55rem 1.1rem;
  cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gb-cb-btn--primary { background: #93cf49; color: #fff; }
.gb-cb-btn--primary:hover { background: #7bb83a; }
.gb-cb-btn--ghost { background: transparent; color: #334155; border-color: #cbd5e1; }
.gb-cb-btn--ghost:hover { border-color: #93cf49; color: #7bb83a; }

/* ── Modal ──────────────────────────────────────────────────── */
#gb-cookie-modal {
  position: fixed; inset: 0; z-index: 10000;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
#gb-cookie-modal[hidden] { display: none; }

.gb-cm-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
}
.gb-cm-panel {
  position: relative;
  max-width: 480px; margin: 5vh auto 0;
  background: #fff; border-radius: 16px;
  padding: 1.75rem; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.gb-cm-panel h2 {
  margin: 0 0 1rem; font-size: 1.15rem; color: #0f172a;
}
.gb-cm-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.gb-cm-row strong { color: #0f172a; font-size: .92rem; }
.gb-cm-row p { margin: .15rem 0 0; color: #64748b; font-size: .82rem; }

.gb-cm-toggle {
  position: relative; display: inline-block;
  width: 42px; height: 24px; flex-shrink: 0;
}
.gb-cm-toggle input { opacity: 0; width: 0; height: 0; }
.gb-cm-toggle span {
  position: absolute; cursor: pointer;
  inset: 0; background: #cbd5e1; border-radius: 24px;
  transition: .2s;
}
.gb-cm-toggle span::before {
  content: ""; position: absolute;
  height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: .2s;
}
.gb-cm-toggle input:checked + span { background: #93cf49; }
.gb-cm-toggle input:checked + span::before { transform: translateX(18px); }
.gb-cm-toggle--locked span { background: #93cf49; opacity: .55; cursor: not-allowed; }
.gb-cm-toggle--locked span::before { transform: translateX(18px); }

.gb-cm-actions {
  display: flex; gap: .5rem; justify-content: flex-end;
  margin-top: 1.25rem;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .gb-cb-inner { flex-direction: column; align-items: stretch; }
  .gb-cb-actions { justify-content: stretch; }
  .gb-cb-actions .gb-cb-btn { flex: 1; }
  .gb-cm-panel { margin: 1rem; padding: 1.25rem; }
}
