/* Cookie Banner Styles - GDPR & UK Compliant */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  display: none;
}

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

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

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

.cookie-banner-text h3 {
  font-size: 1.1rem;
  color: #1f2937;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

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

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.cookie-btn-reject {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.cookie-btn-reject:hover {
  background: #e5e7eb;
}

.cookie-btn-manage {
  background: transparent;
  color: #6366f1;
  border: 1px solid #d1d5db;
}

.cookie-btn-manage:hover {
  background: #f9fafb;
  border-color: #6366f1;
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

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

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal.show .cookie-modal-content {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.cookie-modal-header h2 {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-close:hover {
  color: #1f2937;
}

.cookie-category {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
}

.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: 10px;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 28px;
}

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

input:checked + .cookie-slider {
  background-color: #6366f1;
}

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

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

.cookie-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.cookie-category-description {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 8px 0 0 0;
  line-height: 1.5;
}

.cookie-category-details {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 10px;
  padding-left: 15px;
  line-height: 1.6;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  justify-content: flex-end;
}

.cookie-modal-actions .cookie-btn {
  padding: 12px 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  .cookie-banner-actions .cookie-btn {
    flex: 1;
    text-align: center;
  }

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

  .cookie-modal-header h2 {
    font-size: 1.25rem;
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal-actions .cookie-btn {
    width: 100%;
  }
}
