/* ═══════════════════════════════════════════════
   TACTICAL COOKIE CONSENT MODAL STYLES
   ═══════════════════════════════════════════════ */

/* Utility class to hide elements */
.cookie-modal.hidden,
.btn.hidden {
  display: none !important;
}

/* Backdrop Overlay */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: cookieModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Main Container Box */
.cookie-content {
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-color, rgba(96, 165, 250, 0.25));
  border-radius: 6px;
  max-width: 540px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.6), 
    0 0 20px rgba(59, 130, 246, 0.12);
  color: var(--text-primary, #e2e8f0);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Top Cyber Line Accent */
.cookie-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, #3b82f6), transparent);
}

.cookie-content h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  color: var(--text-heading, #f8fafc);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 1rem;
}

/* Collapsible Drawer Trigger */
.cookie-drawer {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.4);
  overflow: hidden;
}

.cookie-drawer-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent, #3b82f6);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  list-style: none; /* Hide default native disclosure triangle */
}

.cookie-drawer-trigger::-webkit-details-marker {
  display: none;
}

.cookie-drawer-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cookie-drawer-trigger .chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.cookie-drawer[open] .cookie-drawer-trigger .chevron {
  transform: rotate(180deg);
}

/* Collapsible Content Area */
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  background: rgba(11, 14, 20, 0.6);
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.cookie-option .option-text strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.825rem;
  color: var(--text-heading, #f8fafc);
  margin-bottom: 0.15rem;
}

.cookie-option .option-text p {
  font-size: 0.775rem;
  line-height: 1.35;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

/* Custom Checkbox Design */
.cookie-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  border: 1px solid var(--border-color, rgba(96, 165, 250, 0.4));
  border-radius: 3px;
  background-color: rgba(15, 23, 42, 0.8);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cookie-option input[type="checkbox"]:checked {
  background-color: var(--accent, #2563eb);
  border-color: var(--accent-light, #3b82f6);
}

.cookie-option input[type="checkbox"]:checked::before {
  content: "✓";
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
}

.cookie-option input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Action Buttons */
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

.cookie-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.775rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.3));
  color: var(--text-secondary, #cbd5e1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted, #94a3b8);
  color: #ffffff;
}

.btn-primary {
  background: var(--accent, #2563eb);
  border: 1px solid var(--accent-light, #3b82f6);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover, #1d4ed8);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.45);
}

@media (max-width: 480px) {
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}