/* ============================================================
   FORINT — Cookie Banner GDPR Styles
   ============================================================ */

/* ── Banner principale ── */
#forint-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 0 20px 20px;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.06, 0.64, 1);
  pointer-events: none;
}
#forint-cookie-banner.fcb--visible {
  transform: translateY(0);
  pointer-events: auto;
}
.fcb-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #0d1f3c;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 40px rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.fcb-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(200,16,46,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e01c3c;
}
.fcb-icon svg { width: 20px; height: 20px; }
.fcb-body { flex: 1; min-width: 0; }
.fcb-title {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.fcb-text {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}
.fcb-law {
  display: block;
  font-size: .68rem;
  color: rgba(255,255,255,.35);
  margin-top: 4px;
}
.fcb-link {
  color: #c9a84c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fcb-link:hover { color: #d4b96a; }
.fcb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.fcb-btn {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.fcb-btn--manage {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
}
.fcb-btn--manage:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.fcb-btn--reject {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.15);
}
.fcb-btn--reject:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.fcb-btn--accept {
  background: #c8102e;
  color: #fff;
  box-shadow: 0 4px 16px rgba(200,16,46,.4);
}
.fcb-btn--accept:hover {
  background: #e01c3c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,.5);
}

/* ── Pannello preferenze ── */
#forint-cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
#forint-cookie-panel.fcp--visible {
  opacity: 1;
  pointer-events: auto;
}
.fcp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fcp-dialog {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  transform: scale(.95) translateY(16px);
  transition: transform .3s cubic-bezier(.34,1.06,.64,1);
}
#forint-cookie-panel.fcp--visible .fcp-dialog {
  transform: scale(1) translateY(0);
}
.fcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.fcp-header-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1f3c;
}
.fcp-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.fcp-close:hover { background: #e2e8f0; }
.fcp-close svg { width: 16px; height: 16px; }
.fcp-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}
.fcp-desc {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}
.fcp-law {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  color: #94a3b8;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  line-height: 1.5;
}
.fcp-categories { display: flex; flex-direction: column; gap: 12px; }
.fcp-category {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.fcp-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.fcp-cat-info { flex: 1; }
.fcp-cat-name {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}
.fcp-cat-desc {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  color: #64748b;
  line-height: 1.5;
}
.fcp-toggle-wrap { flex-shrink: 0; margin-top: 2px; }
.fcp-required {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  background: #f0fdf4;
  border-radius: 50px;
  border: 1px solid #bbf7d0;
}
/* Toggle switch */
.fcp-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.fcp-toggle input { opacity: 0; width: 0; height: 0; }
.fcp-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  cursor: pointer;
  transition: background .25s;
}
.fcp-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.fcp-toggle input:checked + .fcp-toggle-slider { background: #c8102e; }
.fcp-toggle input:checked + .fcp-toggle-slider::before { transform: translateX(20px); }
.fcp-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Floating button ── */
#forint-cookie-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d1f3c;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
  color: rgba(255,255,255,.6);
}
#forint-cookie-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  color: #fff;
}
#forint-cookie-toggle svg { width: 18px; height: 18px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .fcb-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    border-radius: 16px 16px 0 0;
  }
  .fcb-actions {
    width: 100%;
    flex-direction: column;
  }
  .fcb-btn { width: 100%; text-align: center; justify-content: center; }
  #forint-cookie-banner { padding: 0; }
  .fcp-dialog { max-height: 95vh; border-radius: 20px 20px 0 0; position: fixed; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; }
  #forint-cookie-panel { align-items: flex-end; padding: 0; }
  .fcp-footer { flex-direction: column; }
  .fcp-footer .fcb-btn { width: 100%; text-align: center; }
}
