﻿/* ── VidhiMeet Cookie Consent System Styles ── */

/* Bottom Banner / Card */
.lg-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  width: calc(100vw - 48px);
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(79, 70, 229, 0.2);
  color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

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

.lg-cookie-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.lg-cookie-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
}

.lg-cookie-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 18px 0;
}

.lg-cookie-text a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.lg-cookie-text a:hover {
  color: #a5b4fc;
}

.lg-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-cookie-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lg-cookie-btn-primary {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  flex: 1 1 auto;
}

.lg-cookie-btn-primary:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
}

.lg-cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 1 1 auto;
}

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

.lg-cookie-btn-link {
  background: transparent;
  color: #94a3b8;
  padding: 9px 10px;
  font-weight: 500;
}

.lg-cookie-btn-link:hover {
  color: #f8fafc;
}

/* Preference Modal Overlay */
.lg-cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lg-cookie-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.lg-cookie-modal {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  padding: 28px;
  color: #f8fafc;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lg-cookie-modal-backdrop.open .lg-cookie-modal {
  transform: scale(1) translateY(0);
}

.lg-cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.lg-cookie-modal-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.lg-cookie-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

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

.lg-cookie-modal-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

/* Category List */
.lg-cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.lg-cookie-cat {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.lg-cookie-cat-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #f1f5f9;
}

.lg-cookie-cat-info p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

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

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

.lg-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .25s ease;
  border-radius: 24px;
}

.lg-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lg-switch input:checked + .lg-slider {
  background-color: #4f46e5;
}

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

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

.lg-cookie-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .lg-cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 18px;
  }
  .lg-cookie-actions {
    flex-direction: column;
  }
  .lg-cookie-btn {
    width: 100%;
  }
}
