/* =============================================
   Cookie Banner Styles - GDPR Compliant
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid #374151;
  padding: 24px 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

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

.cookie-banner__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner__content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.cookie-banner__title {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner__title svg {
  color: #7c3aed;
  flex-shrink: 0;
}

.cookie-banner__text {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cookie-banner__text a {
  color: #7c3aed;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-banner__text a:hover {
  color: #a855f7;
}

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

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
  text-decoration: none;
}

.cookie-banner__btn--accept {
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  color: #f9fafb;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: #9ca3af;
  border-color: #4b5563;
}

.cookie-banner__btn--reject:hover {
  background: #374151;
  color: #f9fafb;
  border-color: #6b7280;
}

.cookie-banner__btn--customize {
  background: transparent;
  color: #7c3aed;
  border-color: #7c3aed;
}

.cookie-banner__btn--customize:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #a855f7;
}

.cookie-banner__policy-link {
  color: #7c3aed;
  text-decoration: underline;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.cookie-banner__policy-link:hover {
  color: #a855f7;
}

/* Cookie Preferences Modal */
.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.cookie-preferences__modal {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-preferences.show .cookie-preferences__modal {
  transform: scale(1);
}

.cookie-preferences__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cookie-preferences__title {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f9fafb;
}

.cookie-preferences__close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cookie-preferences__close:hover {
  background: #374151;
  color: #f9fafb;
}

.cookie-preferences__description {
  color: #d1d5db;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cookie-category {
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

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

.cookie-category__title {
  font-weight: 600;
  color: #f9fafb;
  font-size: 1.1rem;
}

.cookie-category__required {
  font-size: 0.75rem;
  color: #9ca3af;
  background: #4b5563;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.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: #4b5563;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-toggle__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background-color: #7c3aed;
}

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

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category__description {
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-preferences__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #4b5563;
}

.cookie-preferences__btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.cookie-preferences__btn--save {
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  color: #f9fafb;
}

.cookie-preferences__btn--save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.cookie-preferences__btn--cancel {
  background: transparent;
  color: #9ca3af;
  border-color: #4b5563;
}

.cookie-preferences__btn--cancel:hover {
  background: #374151;
  color: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner__container {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 20px;
  }
  
  .cookie-banner__actions {
    justify-content: stretch;
    flex-direction: column;
  }
  
  .cookie-banner__btn {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-preferences__modal {
    padding: 24px;
    margin: 10px;
  }
  
  .cookie-preferences__actions {
    flex-direction: column;
  }
  
  .cookie-preferences__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 20px 0;
  }
  
  .cookie-banner__container {
    padding: 0 16px;
  }
  
  .cookie-banner__title {
    font-size: 1.1rem;
  }
  
  .cookie-banner__text {
    font-size: 0.9rem;
  }
}