/* ==========================================================================
   SOCIAL HASHTAG DIGITAL — Cookie Consent Management System
   Obsidian & Neon Aesthetic, DPDP Act 2023 & GDPR Compatible
   ========================================================================== */

.sh-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 480px;
  width: calc(100% - 48px);
  background: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 24px;
  z-index: 999999;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
  font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  color: #f8fafc;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.sh-cookie-banner.sh-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sh-cookie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sh-cookie-icon {
  font-size: 1.4rem;
}

.sh-cookie-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
}

.sh-cookie-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 18px;
}

.sh-cookie-desc a {
  color: #06b6d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sh-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sh-cookie-btn {
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sh-cookie-btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.sh-cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.sh-cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sh-cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sh-cookie-btn-outline {
  background: transparent;
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.sh-cookie-btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
}

/* ==========================================================================
   COOKIE PREFERENCE MODAL
   ========================================================================== */
.sh-cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sh-cookie-modal-backdrop.sh-modal-open {
  opacity: 1;
  pointer-events: auto;
}

.sh-cookie-modal {
  background: #0a0d14;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.2);
  color: #f8fafc;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sh-modal-open .sh-cookie-modal {
  transform: scale(1);
}

.sh-cookie-modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sh-cookie-modal-header h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.sh-cookie-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sh-cookie-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sh-cookie-modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.sh-cookie-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.sh-cookie-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sh-cookie-cat-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
}

.sh-cookie-cat-status {
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Custom Toggle Switch */
.sh-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.sh-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sh-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 24px;
}

.sh-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .sh-slider {
  background-color: #8b5cf6;
}

input:checked + .sh-slider:before {
  transform: translateX(20px);
}

input:disabled + .sh-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.sh-cookie-cat-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.sh-cookie-modal-footer {
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 600px) {
  .sh-cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 18px;
  }
  .sh-cookie-modal {
    max-height: 90vh;
  }
  .sh-cookie-modal-header,
  .sh-cookie-modal-body,
  .sh-cookie-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

