/**
 * Cookie Consent Styles
 * Matches Atlas Command design system
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent-banner.cookie-consent-visible {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cookie-consent-content {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.cookie-consent-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

.cookie-consent-link {
  color: #10b981;
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.cookie-consent-link:hover {
  color: #34d399;
  text-decoration-color: rgba(52, 211, 153, 0.6);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

@media (min-width: 768px) {
  .cookie-consent-actions {
    width: auto;
    flex-shrink: 0;
  }
}

.cookie-consent-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  flex: 1;
}

@media (min-width: 768px) {
  .cookie-consent-btn {
    flex: 0 0 auto;
  }
}

.cookie-consent-btn-accept {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: #000000;
}

.cookie-consent-btn-accept:hover {
  background: linear-gradient(135deg, #34d399, #2dd4bf);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cookie-consent-btn-reject {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.cookie-consent-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Cookie Consent Modal */
.cookie-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-consent-modal.cookie-consent-modal-visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-consent-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.cookie-consent-modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-modal.cookie-consent-modal-visible .cookie-consent-modal-content {
  transform: scale(1);
}

.cookie-consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.cookie-consent-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.cookie-consent-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  padding: 0;
}

.cookie-consent-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cookie-consent-modal-body {
  padding: 0 24px 24px 24px;
}

.cookie-consent-modal-intro {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.cookie-category:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.cookie-category-header {
  margin-bottom: 8px;
}

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

.cookie-category-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #10b981;
  flex-shrink: 0;
}

.cookie-category-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  flex: 1;
}

.cookie-category-required {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(16, 185, 129, 0.8);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cookie-category-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
  padding-left: 32px;
}

.cookie-consent-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: flex-end;
}

.cookie-consent-modal-footer .cookie-consent-btn {
  flex: 0 0 auto;
}

/* Accessibility improvements */
.cookie-consent-banner:focus-within,
.cookie-consent-modal:focus-within {
  outline: 2px solid rgba(16, 185, 129, 0.5);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner,
  .cookie-consent-modal,
  .cookie-consent-modal-content,
  .cookie-consent-btn {
    transition: none;
  }
}

