/**
 * Cookie Consent Banner Styles
 * Modern, GDPR-compliant design
 */

/* Banner container */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 1rem;
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

/* Content layout */
.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex: 1;
  min-width: 300px;
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-message {
  flex: 1;
}

.cookie-message strong {
  display: block;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.cookie-message p {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.cookie-privacy-link {
  font-size: 0.9rem;
  color: #0066cc;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.25rem;
}

.cookie-privacy-link:hover {
  text-decoration: underline;
}

/* Action buttons */
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-banner-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-banner-actions .btn-primary {
  background: #0066cc;
  color: white;
}

.cookie-banner-actions .btn-primary:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cookie-banner-actions .btn-secondary {
  background: white;
  color: #333;
  border: 2px solid #ddd;
}

.cookie-banner-actions .btn-secondary:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Preferences panel */
.cookie-preferences {
  max-width: 600px;
  margin: 0 auto;
}

.cookie-preferences h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  font-size: 1.3rem;
}

.cookie-category {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.cookie-category label {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  cursor: pointer;
}

.cookie-category input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

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

.cookie-category-label {
  flex: 1;
}

.cookie-category-label strong {
  display: block;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.cookie-category-label small {
  display: block;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-prefs-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.cookie-prefs-actions .btn-primary {
  background: #0066cc;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-prefs-actions .btn-primary:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cookie-prefs-actions .btn-secondary {
  background: white;
  color: #333;
  border: 2px solid #ddd;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-prefs-actions .btn-secondary:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Hidden state */
.hidden {
  display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-banner-text {
    min-width: auto;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner-actions button {
    width: 100%;
    padding: 0.875rem 1rem;
  }

  .cookie-icon {
    font-size: 1.5rem;
  }

  .cookie-message strong {
    font-size: 1rem;
  }

  .cookie-message p {
    font-size: 0.9rem;
  }

  .cookie-prefs-actions {
    flex-direction: column-reverse;
  }

  .cookie-prefs-actions button {
    width: 100%;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .cookie-banner {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.98), rgba(26, 26, 26, 0.95));
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .cookie-message strong {
    color: #f5f5f5;
  }

  .cookie-message p {
    color: #ccc;
  }

  .cookie-banner-actions .btn-secondary {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: #444;
  }

  .cookie-banner-actions .btn-secondary:hover {
    background: #333;
    border-color: #555;
  }

  .cookie-prefs-actions .btn-secondary {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: #444;
  }

  .cookie-prefs-actions .btn-secondary:hover {
    background: #333;
    border-color: #555;
  }

  .cookie-category {
    background: #2a2a2a;
    border-color: #444;
  }

  .cookie-category-label strong {
    color: #f5f5f5;
  }

  .cookie-category-label small {
    color: #ccc;
  }
}
