/* ===== Cookie Consent Banner - GDPR Compliant ===== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-top: 3px solid #0dcaf0;
  padding: 25px 30px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cookie-consent__text {
  flex: 1;
}

.cookie-consent__title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.cookie-consent__description {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-consent__buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn--accept {
  background: linear-gradient(135deg, #0dcaf0 0%, #0aa8d1 100%);
  color: #000;
}

.cookie-btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 202, 240, 0.4);
}

.cookie-btn--reject {
  background: transparent;
  color: #fff;
  border: 2px solid #666;
}

.cookie-btn--reject:hover {
  background: #333;
  border-color: #888;
}

.cookie-btn--settings {
  background: transparent;
  color: #0dcaf0;
  border: 2px solid #0dcaf0;
}

.cookie-btn--settings:hover {
  background: rgba(13, 202, 240, 0.1);
}

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.cookie-modal__content {
  position: relative;
  background: #1a1a1a;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #333;
}

.cookie-modal__header h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.cookie-modal__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.cookie-modal__close:hover {
  background: #333;
}

.cookie-modal__body {
  padding: 25px 30px;
  max-height: 50vh;
  overflow-y: auto;
}

/* Cookie Categories */
.cookie-category {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category__header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.cookie-category__info h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.cookie-category__info p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #444;
  border-radius: 26px;
  transition: 0.3s;
}

.cookie-switch__slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: #0dcaf0;
}

.cookie-switch input:checked + .cookie-switch__slider:before {
  transform: translateX(24px);
}

.cookie-switch--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-switch--disabled .cookie-switch__slider {
  cursor: not-allowed;
}

/* Modal Footer */
.cookie-modal__footer {
  padding: 20px 30px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-link {
  color: #0dcaf0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.cookie-link:hover {
  color: #3dd5f3;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent__content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal__content {
    width: 95%;
    max-height: 90vh;
  }

  .cookie-modal__header,
  .cookie-modal__body,
  .cookie-modal__footer {
    padding: 20px;
  }

  .cookie-modal__footer {
    flex-direction: column;
    gap: 15px;
  }
}
