/* ========================================================================
   GDPR Cookie Consent Banner
   Uses CSS custom properties from theme.css for dark/light mode support.
   ======================================================================== */

/* Banner container — fixed to bottom of viewport */
.gdpr-banner {
  display: none;  /* shown by gdpr.js when consent not yet given */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0;
  animation: gdpr-slide-up 0.35s ease-out;
}

@keyframes gdpr-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.gdpr-banner.gdpr-hiding {
  animation: gdpr-slide-down 0.25s ease-in forwards;
}

@keyframes gdpr-slide-down {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

.gdpr-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Dark mode banner */
body.dark-mode .gdpr-banner {
  background: rgba(17, 17, 17, 0.97);
  border-top: 1px solid #333;
  backdrop-filter: blur(12px);
}

body.dark-mode .gdpr-text {
  color: #ccc;
}

body.dark-mode .gdpr-text a {
  color: #26c4ff;
}

/* Light mode banner */
body.light-mode .gdpr-banner {
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #e0e0e0;
  backdrop-filter: blur(12px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

body.light-mode .gdpr-text {
  color: #333;
}

body.light-mode .gdpr-text a {
  color: #0054ff;
}

/* Text */
.gdpr-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  min-width: 260px;
}

.gdpr-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gdpr-text a:hover {
  opacity: 0.85;
}

/* Buttons container */
.gdpr-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Accept button — brand gradient */
.gdpr-btn-accept {
  background: linear-gradient(90deg, #0054ff 0%, #26c4ff 100%);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, box-shadow 0.15s;
}

.gdpr-btn-accept:hover {
  opacity: 0.92;
  box-shadow: 0 2px 8px rgba(0, 84, 255, 0.35);
}

/* Decline button — subtle outline */
.gdpr-btn-decline {
  background: transparent;
  border: 1px solid;
  padding: 9px 22px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

body.dark-mode .gdpr-btn-decline {
  color: #999;
  border-color: #555;
}

body.dark-mode .gdpr-btn-decline:hover {
  color: #ccc;
  border-color: #777;
}

body.light-mode .gdpr-btn-decline {
  color: #666;
  border-color: #ccc;
}

body.light-mode .gdpr-btn-decline:hover {
  color: #333;
  border-color: #999;
}

/* Preferences link (optional future use) */
.gdpr-btn-preferences {
  background: transparent;
  border: none;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.dark-mode .gdpr-btn-preferences {
  color: #888;
}

body.light-mode .gdpr-btn-preferences {
  color: #777;
}

/* Responsive */
@media (max-width: 640px) {
  .gdpr-banner-inner {
    padding: 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .gdpr-text {
    text-align: center;
  }

  .gdpr-actions {
    justify-content: center;
  }
}
