/* ============================================
   COOKIE CONSENT BANNER
   Perfect Clean 74 - Clean Modern Design
   ============================================ */

/* Cookie Banner - Main Container */
.cookie-consent-banner {
  position: fixed;
  z-index: 10001;
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: #ffffff;
  color: #2d3748;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  opacity: 0;
  border-top: 3px solid #4a90b8;
}

.cookie-consent-banner.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  position: relative;
}

/* Text Section */
.cookie-consent-banner__text {
  flex: 1;
  position: relative;
}

.cookie-consent-banner__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  font-family: 'DM Sans', -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

.cookie-consent-banner__title::before {
  content: '🍪';
  font-size: 1.25rem;
}

.cookie-consent-banner__description {
  display: block;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5a6a7a;
  font-family: 'DM Sans', -apple-system, sans-serif;
}

.cookie-consent-banner__description a {
  color: #4a90b8;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(74, 144, 184, 0.3);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}

.cookie-consent-banner__description a:hover {
  color: #2c5282;
  border-bottom-color: #2c5282;
}

/* Privacy Policy Link */
.cookie-consent-banner__link {
  display: inline-flex;
  align-items: center;
  color: #5a6a7a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(90, 106, 122, 0.2);
}

.cookie-consent-banner__link:hover {
  color: #4a90b8;
  border-bottom-color: #4a90b8;
}

/* Actions Section */
.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.cookie-consent-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'DM Sans', -apple-system, sans-serif;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  position: relative;
  white-space: nowrap;
}

/* Accept Button - Blue Primary */
.cookie-consent-banner__button--accept {
  background: linear-gradient(135deg, #4a90b8 0%, #2c5282 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(74, 144, 184, 0.25);
  font-weight: 700;
}

.cookie-consent-banner__button--accept:hover {
  background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
  box-shadow: 0 4px 12px rgba(74, 144, 184, 0.35);
  transform: translateY(-1px);
}

/* Reject Button - Subtle Gray */
.cookie-consent-banner__button--reject {
  background: #f7fafc;
  color: #5a6a7a;
  border: 1px solid #e2e8f0;
}

.cookie-consent-banner__button--reject:hover {
  background: #ffffff;
  color: #2d3748;
  border-color: #cbd5e0;
}

/* Settings Button */
.cookie-consent-banner__button--settings {
  background: transparent;
  color: #5a6a7a;
  padding: 0.75rem 1.5rem;
  border: 1px solid #e2e8f0;
}

.cookie-consent-banner__button--settings:hover {
  background: #f7fafc;
  color: #2d3748;
  border-color: #4a90b8;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .cookie-consent-banner__content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1rem 1.25rem;
  }

  .cookie-consent-banner__title {
    font-size: 0.9375rem;
  }

  .cookie-consent-banner__description {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .cookie-consent-banner__actions {
    gap: 0.625rem;
    flex-direction: row;
  }

  .cookie-consent-banner__button {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .cookie-consent-banner__button--settings {
    flex: 0 0 auto;
    padding: 0.875rem 1.25rem;
  }
}

/* Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-preferences-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-preferences-modal__container {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(30, 58, 95, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-preferences-modal.active .cookie-preferences-modal__container {
  transform: scale(1);
}

.cookie-preferences-modal__header {
  padding: 1.75rem 3.5rem 1.75rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.cookie-preferences-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a5f;
  font-family: 'Playfair Display', serif;
}

.cookie-preferences-modal__description {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5a6a7a;
}

.cookie-preferences-modal__body {
  padding: 2rem;
}

.cookie-preferences-modal__content {
  padding: 2rem;
}

.cookie-preferences-modal__categories {
  margin-top: 1.5rem;
}

.cookie-preferences-modal__category {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.cookie-preferences-modal__category:last-child {
  border-bottom: none;
}

.cookie-preferences-modal__category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cookie-preferences-modal__category-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-preferences-modal__category-checkbox {
  width: 50px;
  height: 26px;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  background: #cbd5e0;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.cookie-preferences-modal__category-checkbox::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-preferences-modal__category-checkbox:checked {
  background: #4a90b8;
}

.cookie-preferences-modal__category-checkbox:checked::before {
  transform: translateX(24px);
}

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

.cookie-preferences-modal__category-label {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3748;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-preferences-modal__required-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: #5a6a7a;
  background: #f7fafc;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.cookie-preferences-modal__category-description {
  font-size: 0.875rem;
  color: #5a6a7a;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.cookie-preferences-modal__examples-title {
  font-weight: 600;
  color: #2d3748;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.cookie-preferences-modal__examples-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cookie-preferences-modal__examples-list li {
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: #5a6a7a;
  line-height: 1.5;
}

.cookie-preferences-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border: none;
  background: #f7fafc;
  color: #5a6a7a;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-preferences-modal__close:hover {
  background: #e2e8f0;
  color: #2d3748;
}

.cookie-preferences-modal__footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  background: #f7fafc;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.cookie-preferences-modal__button {
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'DM Sans', -apple-system, sans-serif;
}

.cookie-preferences-modal__button--save {
  background: linear-gradient(135deg, #4a90b8, #2c5282);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(74, 144, 184, 0.25);
}

.cookie-preferences-modal__button--save:hover {
  background: linear-gradient(135deg, #2c5282, #1e3a5f);
  box-shadow: 0 4px 12px rgba(74, 144, 184, 0.35);
  transform: translateY(-1px);
}

.cookie-preferences-modal__button--cancel {
  background: #ffffff;
  color: #5a6a7a;
  border: 1px solid #e2e8f0;
}

.cookie-preferences-modal__button--cancel:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  color: #2d3748;
}

.cookie-category {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cookie-category__title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.cookie-category__toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: #cbd5e0;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

.cookie-category__toggle input {
  display: none;
}

.cookie-category__toggle input:checked + .cookie-category__toggle-slider {
  transform: translateX(24px);
  background: #ffffff;
}

.cookie-category__toggle input:checked ~ .cookie-category__toggle {
  background: #4a90b8;
}

.cookie-category__toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-category__description {
  font-size: 0.875rem;
  color: #5a6a7a;
  line-height: 1.6;
  margin: 0;
}

.cookie-preferences-modal__footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-preferences-modal__button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'DM Sans', -apple-system, sans-serif;
}

.cookie-preferences-modal__button--save {
  background: linear-gradient(135deg, #4a90b8, #2c5282);
  color: #ffffff;
}

.cookie-preferences-modal__button--save:hover {
  background: linear-gradient(135deg, #2c5282, #1e3a5f);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 184, 0.3);
}

.cookie-preferences-modal__button--cancel {
  background: #f7fafc;
  color: #5a6a7a;
  border: 1px solid #e2e8f0;
}

.cookie-preferences-modal__button--cancel:hover {
  background: #ffffff;
  border-color: #cbd5e0;
}

@media (max-width: 768px) {
  .cookie-preferences-modal__container {
    width: calc(100% - 1rem);
    max-height: 95vh;
  }

  .cookie-preferences-modal__header,
  .cookie-preferences-modal__content,
  .cookie-preferences-modal__footer {
    padding: 1.25rem 1rem;
  }

  .cookie-preferences-modal__close {
    top: 1rem;
    right: 1rem;
  }

  .cookie-preferences-modal__footer {
    flex-direction: column;
  }

  .cookie-preferences-modal__button {
    width: 100%;
  }

  .cookie-preferences-modal__category-toggle {
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
  }

  .cookie-preferences-modal__category-label {
    font-size: 0.9375rem;
  }
}
