/* ==============================
   COOKIE BANNER & MODAL
   ============================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 24px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cookie-banner-text {
  font-size: 13px;
  line-height: 1.6;
}

.cookie-banner-text p {
  margin: 0 0 8px 0;
}

.cookie-banner-text a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  opacity: 0.8;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner-actions button {
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.cookie-accept-all {
  background: var(--red);
  color: var(--white);
}

.cookie-accept-all:hover {
  background: var(--red-dark);
}

.cookie-reject {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-reject:hover {
  background: rgba(255,255,255,0.25);
}

.cookie-customize {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.cookie-customize:hover {
  border-color: var(--white);
}

/* ==============================
   COOKIE MODAL
   ============================== */

.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 2000;
  animation: fadeIn 0.2s ease-out;
}

.cookie-modal-backdrop.show {
  display: block;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 2001;
  display: none;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.cookie-modal.show {
  display: block;
}

.cookie-modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-close:hover {
  color: var(--text);
}

.cookie-modal-content {
  padding: 24px;
}

.cookie-category {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.cookie-category-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
}

.cookie-category-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--red);
}

.cookie-category-label input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category-label span {
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}

.cookie-category-desc {
  font-size: 13px;
  color: var(--text-light);
  margin: 8px 0 0 30px;
  line-height: 1.5;
}

.cookie-category.essential .cookie-category-label input {
  opacity: 0.6;
}

.cookie-modal-actions {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-modal-actions button {
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.cookie-modal-reject {
  background: rgba(0,0,0,0.08);
  color: var(--navy);
}

.cookie-modal-reject:hover {
  background: rgba(0,0,0,0.12);
}

.cookie-modal-accept {
  background: var(--red);
  color: var(--white);
}

.cookie-modal-accept:hover {
  background: var(--red-dark);
}

/* ==============================
   ANIMATIONS
   ============================== */

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 768px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-banner-actions button {
    flex: 1;
  }

  .cookie-modal {
    width: 95%;
    max-height: 90vh;
  }
}
