/* Cookie Banner Styles - GDPR Compliant */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
}

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

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

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

.cookie-banner__text h4 {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

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

.cookie-banner__text a {
  color: #06D6A0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

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

.cookie-btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #06D6A0 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.cookie-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6, 214, 160, 0.4);
}

.cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.cookie-btn--text {
  background: transparent;
  color: #94A3B8;
  padding: 12px 16px;
  text-decoration: underline;
}

.cookie-btn--text:hover {
  color: #CBD5E1;
}

/* 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(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-preferences.show {
  display: flex;
}

.cookie-preferences__modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-preferences__header {
  margin-bottom: 24px;
}

.cookie-preferences__header h3 {
  color: #0F172A;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cookie-preferences__header p {
  color: #64748B;
  font-size: 0.875rem;
  line-height: 1.6;
}

.cookie-category {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

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

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

.cookie-category__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0F172A;
}

.cookie-category__description {
  color: #64748B;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  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: #CBD5E1;
  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%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background-color: #06D6A0;
}

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

.cookie-toggle input:disabled + .cookie-toggle__slider {
  background-color: #9CA3AF;
  cursor: not-allowed;
}

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

.cookie-preferences__actions .cookie-btn {
  color: #0F172A;
}

.cookie-preferences__actions .cookie-btn--primary {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px 16px;
  }
  
  .cookie-banner__content {
    flex-direction: column;
    gap: 20px;
  }
  
  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .cookie-btn {
    flex: 1;
    text-align: center;
    min-width: 0;
  }
  
  .cookie-preferences__modal {
    padding: 24px;
    margin: 16px;
  }
  
  .cookie-category__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .cookie-preferences__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cookie-banner__actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}