/*===================================================
Cookie Consent Popup & Modal Styles
====================================================*/

/* ============== Cookie Consent Popup ============== */
.cookie-consent-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 420px;
  background: var(--boxColor);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  border: 1px solid rgba(59, 195, 240, 0.2);
  backdrop-filter: blur(10px);
}

.cookie-consent-popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.cookie-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-color) 0%, #2ba3cc 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-icon i {
  font-size: 24px;
  color: #ffffff;
}

.cookie-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--title-2-color);
  margin: 0;
  text-transform: capitalize;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--secendaryColor);
  margin: 0;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cookie-accept,
.btn-cookie-reject,
.btn-cookie-settings {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: capitalize;
  outline: none;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--brand-color) 0%, #2ba3cc 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 195, 240, 0.3);
}

.btn-cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 195, 240, 0.4);
}

.btn-cookie-reject {
  background: var(--boxColor);
  color: var(--primaryColor);
  border: 2px solid var(--brand-color);
}

.btn-cookie-reject:hover {
  background: rgba(59, 195, 240, 0.1);
  transform: translateY(-2px);
}

.btn-cookie-settings {
  background: transparent;
  color: var(--brand-color);
  border: none;
  padding: 8px 20px;
  font-size: 14px;
}

.btn-cookie-settings:hover {
  text-decoration: underline;
}

.cookie-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(94, 94, 94, 0.2);
}

.privacy-link {
  color: var(--brand-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.privacy-link:hover {
  color: #2ba3cc;
  gap: 10px;
}

.privacy-link i {
  font-size: 16px;
}

/* ============== Cookie Settings Modal ============== */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  background: var(--boxColor);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-modal-overlay.show .cookie-modal {
  transform: scale(1);
}

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

.cookie-modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--title-2-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: capitalize;
}

.cookie-modal-header h3 i {
  color: var(--brand-color);
  font-size: 24px;
}

.cookie-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--primaryColor);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cookie-modal-close:hover {
  background: rgba(59, 195, 240, 0.1);
  color: var(--brand-color);
  transform: rotate(90deg);
}

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

.cookie-modal-description {
  font-size: 14px;
  color: var(--secendaryColor);
  margin-bottom: 20px;
  line-height: 1.6;
}

.cookie-category {
  background: var(--bodyColor);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(94, 94, 94, 0.1);
  transition: all 0.3s ease;
}

.cookie-category:hover {
  border-color: rgba(59, 195, 240, 0.3);
  box-shadow: 0 4px 12px rgba(59, 195, 240, 0.1);
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.cookie-category-info h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--title-2-color);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
}

.cookie-category-info h5 i {
  color: var(--brand-color);
  font-size: 18px;
}

.cookie-category-info p {
  font-size: 13px;
  color: var(--secendaryColor);
  margin: 0;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, var(--brand-color) 0%, #2ba3cc 100%);
}

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

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

.cookie-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(94, 94, 94, 0.2);
  display: flex;
  justify-content: flex-end;
}

.btn-cookie-save {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--brand-color) 0%, #2ba3cc 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 195, 240, 0.3);
  text-transform: capitalize;
}

.btn-cookie-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 195, 240, 0.4);
}

/* ============== Mobile Responsive ============== */
@media (max-width: 768px) {
  .cookie-consent-popup {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 20px;
  }

  .cookie-icon {
    width: 40px;
    height: 40px;
  }

  .cookie-icon i {
    font-size: 20px;
  }

  .cookie-title {
    font-size: 18px;
  }

  .cookie-text {
    font-size: 13px;
  }

  .btn-cookie-accept,
  .btn-cookie-reject,
  .btn-cookie-settings {
    padding: 10px 16px;
    font-size: 14px;
  }

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

  .cookie-modal-header {
    padding: 20px;
  }

  .cookie-modal-header h3 {
    font-size: 18px;
  }

  .cookie-modal-body {
    padding: 20px;
  }

  .cookie-category {
    padding: 16px;
  }

  .cookie-category-info h5 {
    font-size: 15px;
  }

  .cookie-category-info p {
    font-size: 12px;
  }

  .btn-cookie-save {
    width: 100%;
    justify-content: center;
  }
}

/* ============== Dark Mode Adjustments ============== */
body.dark-mode .cookie-consent-popup,
body.dark-mode .cookie-modal {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .cookie-category {
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cookie-category:hover {
  border-color: rgba(59, 195, 240, 0.4);
  box-shadow: 0 4px 12px rgba(59, 195, 240, 0.2);
}

/* ============== Animations ============== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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