/* ============================================
   Varuna Sentinels - Cookie Consent Styles
   Banner + Preferences Modal
   ============================================ */

/* ===== COOKIE BANNER ===== */
.vs-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  border-top: 3px solid #1a5276;
}
body.vs-dark .vs-cookie-banner {
  background: #1a2332;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.vs-cookie-banner.vs-cb-visible {
  transform: translateY(0);
}
.vs-cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.vs-cb-text {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
}
.vs-cb-icon {
  font-size: 28px;
  color: #f39c12;
  flex-shrink: 0;
  margin-top: 3px;
}
.vs-cb-text strong {
  display: block;
  font-size: 16px;
  color: #1a5276;
  margin-bottom: 4px;
}
body.vs-dark .vs-cb-text strong { color: #5dade2; }
.vs-cb-text p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
body.vs-dark .vs-cb-text p { color: #aab7c4; }
.vs-cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.vs-cb-btn {
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}
.vs-cb-manage {
  background: #f0f0f0;
  color: #333;
}
body.vs-dark .vs-cb-manage { background: #2a3a4a; color: #ddd; }
.vs-cb-manage:hover { background: #e0e0e0; }
body.vs-dark .vs-cb-manage:hover { background: #3a4a5a; }
.vs-cb-reject {
  background: transparent;
  color: #1a5276;
  border: 2px solid #1a5276;
}
body.vs-dark .vs-cb-reject { color: #5dade2; border-color: #5dade2; }
.vs-cb-reject:hover { background: #1a5276; color: #fff; }
body.vs-dark .vs-cb-reject:hover { background: #5dade2; color: #1a2332; }
.vs-cb-accept {
  background: linear-gradient(135deg, #1a5276, #154360);
  color: #fff;
}
.vs-cb-accept:hover { background: linear-gradient(135deg, #154360, #0e2f46); transform: translateY(-1px); }

@media (max-width: 768px) {
  .vs-cb-inner { flex-direction: column; padding: 15px 20px; gap: 15px; }
  .vs-cb-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .vs-cb-btn { flex: 1; min-width: 100px; text-align: center; }
}

/* ===== COOKIE MODAL OVERLAY ===== */
.vs-cm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100001;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}
.vs-cm-overlay.vs-cm-visible { opacity: 1; }

.vs-cm-dialog {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.vs-cm-visible .vs-cm-dialog { transform: scale(1); }
body.vs-dark .vs-cm-dialog { background: #1a2332; }

.vs-cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.vs-cm-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a5276;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
body.vs-dark .vs-cm-header h3 { color: #5dade2; }
.vs-cm-header h3 i { color: #f39c12; }
.vs-cm-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
}
.vs-cm-close:hover { color: #333; }
body.vs-dark .vs-cm-close:hover { color: #fff; }

.vs-cm-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}
body.vs-dark .vs-cm-desc { color: #aab7c4; }

/* Category cards */
.vs-cm-cat {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
body.vs-dark .vs-cm-cat { background: #223344; border-color: #3a4a5a; }
.vs-cm-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vs-cm-cat-header strong {
  font-size: 14px;
  color: #1a5276;
}
body.vs-dark .vs-cm-cat-header strong { color: #5dade2; }
.vs-cm-always {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.vs-cm-cat-desc {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
  line-height: 1.5;
}
body.vs-dark .vs-cm-cat-desc { color: #8899aa; }

/* Toggle switch */
.vs-cm-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.vs-cm-toggle input { opacity: 0; width: 0; height: 0; }
.vs-cm-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}
.vs-cm-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.vs-cm-toggle input:checked + .vs-cm-slider {
  background: #1a5276;
}
.vs-cm-toggle input:checked + .vs-cm-slider::before {
  transform: translateX(20px);
}

/* Modal actions */
.vs-cm-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.vs-cm-actions .vs-cb-btn { flex: 1; min-width: 120px; text-align: center; }

@media (max-width: 480px) {
  .vs-cm-dialog { padding: 20px; }
  .vs-cm-header h3 { font-size: 17px; }
  .vs-cm-actions { flex-direction: column; }
  .vs-cm-actions .vs-cb-btn { width: 100%; }
}
