/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(12px);
  color: white;
  padding: 24px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

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

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.cookie-banner-text {
  flex: 1;
  min-width: 0;
}

.cookie-banner-text h4 {
  margin: 0 0 12px 0;
  font-size: 1.2em;
  color: white;
  font-weight: 600;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #ff006e;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-text a:hover {
  color: #8338ec;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

.cookie-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #ff006e, #8338ec);
  color: white;
  border: 2px solid transparent;
}

.cookie-btn-accept:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.cookie-btn-customize {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-customize:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal.show {
  display: flex;
  opacity: 1;
}

.cookie-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.cookie-modal-header {
  margin-bottom: 32px;
  text-align: center;
}

.cookie-modal-header h3 {
  margin: 0 0 12px 0;
  color: #111827;
  font-size: 1.5em;
  font-weight: 700;
}

.cookie-modal-header p {
  margin: 0;
  color: #6b7280;
  font-size: 1em;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 24px;
  border: 2px solid #f3f4f6;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.cookie-category:hover {
  border-color: #e5e7eb;
}

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

.cookie-category h4 {
  margin: 0;
  color: #111827;
  font-size: 1.1em;
  font-weight: 600;
}

.cookie-category.essential {
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(131, 56, 236, 0.05));
  border-color: rgba(255, 0, 110, 0.2);
}

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

.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: #d1d5db;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 28px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, #ff006e, #8338ec);
}

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

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

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

.cookie-category p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95em;
  line-height: 1.5;
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid #f3f4f6;
}

.cookie-modal-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  min-width: 140px;
}

.cookie-modal-btn-save {
  background: linear-gradient(135deg, #ff006e, #8338ec);
  color: white;
  border: 2px solid transparent;
}

.cookie-modal-btn-save:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 110, 0.3);
}

.cookie-modal-btn-cancel {
  background: #f9fafb;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.cookie-modal-btn-cancel:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Essential Cookie Badge */
.essential-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff006e, #8338ec);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 600;
  margin-left: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .cookie-banner-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }

  .cookie-modal-content {
    padding: 28px;
    margin: 10px;
    max-height: 90vh;
  }

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

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

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-text h4 {
    font-size: 1.1em;
  }

  .cookie-banner-text p {
    font-size: 0.9em;
  }

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

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

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

  .cookie-category {
    padding: 20px;
  }

  .cookie-modal-header h3 {
    font-size: 1.3em;
  }
}