/* assets/css/gdpr.css */

/* ── BANNER ── */
#gdpr-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 860px;
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 24px;
  z-index: 9000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
  animation: gdpr-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes gdpr-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.gdpr-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.gdpr-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.gdpr-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.gdpr-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

.gdpr-text p {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.5;
  margin: 0;
}

.gdpr-text a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gdpr-text a:hover {
  color: #a5b4fc;
}

.gdpr-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.gdpr-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.gdpr-btn-primary {
  background: #6366f1;
  color: #ffffff;
}

.gdpr-btn-primary:hover {
  background: #818cf8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.gdpr-btn-outline {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gdpr-btn-outline:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.gdpr-btn-ghost {
  background: transparent;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 9px 10px;
}

.gdpr-btn-ghost:hover {
  color: #9ca3af;
}

/* ── MODAL OVERLAY ── */
#gdpr-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
}

.gdpr-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  animation: gdpr-fade-in 0.25s ease both;
}

@keyframes gdpr-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── MODAL BOX ── */
.gdpr-modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: calc(100% - 40px);
  max-width: 480px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  animation: gdpr-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

@keyframes gdpr-modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 16px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.gdpr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gdpr-modal-header h3 {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.gdpr-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #9ca3af;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gdpr-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.gdpr-modal-intro {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 16px;
}

.gdpr-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── COOKIE ROW ── */
.gdpr-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gdpr-cookie-row:last-child {
  border-bottom: none;
}

.gdpr-cookie-info {
  flex: 1;
}

.gdpr-cookie-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

.gdpr-cookie-desc {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── TOGGLE SWITCH ── */
.gdpr-toggle {
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 24px;
}

.gdpr-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.gdpr-toggle label {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gdpr-toggle label::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #9ca3af;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gdpr-toggle input:checked+label {
  background: #6366f1;
  border-color: rgba(99, 102, 241, 0.4);
}

.gdpr-toggle input:checked+label::after {
  background: #ffffff;
  transform: translateX(20px);
}

.gdpr-toggle-disabled label {
  cursor: not-allowed;
  opacity: 0.6;
}

.gdpr-toggle-disabled input:checked+label {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.2);
}

.gdpr-toggle-disabled input:checked+label::after {
  background: #10b981;
  transform: translateX(20px);
}

/* ── MODAL FOOTER ── */
.gdpr-modal-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── BANNER HIDE ANIMATION ── */
#gdpr-banner.gdpr-hide {
  animation: gdpr-slide-down 0.3s ease forwards;
}

@keyframes gdpr-slide-down {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  #gdpr-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
  }

  #gdpr-banner.gdpr-hide {
    animation: gdpr-slide-down-mobile 0.3s ease forwards;
  }

  @keyframes gdpr-slide-down-mobile {
    to {
      opacity: 0;
      transform: translateY(30px);
    }
  }

  .gdpr-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .gdpr-actions {
    justify-content: stretch;
  }

  .gdpr-actions .gdpr-btn {
    flex: 1;
    text-align: center;
  }
}