/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1d26 0%, #252932 100%);
  border-top: 2px solid #6366f1;
  padding: 24px 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

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

.cookie-banner-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cookie-banner-text p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

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

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cookie-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.cookie-btn:hover::before {
  left: 100%;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.cookie-btn-reject {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid #ef4444;
  backdrop-filter: blur(10px);
}

.cookie-btn-reject:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
}

.cookie-btn-customize {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  border: 1px solid #6366f1;
  backdrop-filter: blur(10px);
}

.cookie-btn-customize:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.cookie-link {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.cookie-link:hover {
  color: #6366f1;
  text-decoration-color: #6366f1;
}

/* Cookie Settings Modal */
.cookie-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.cookie-settings-content {
  background: linear-gradient(135deg, #1a1d26 0%, #252932 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.cookie-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
  border-bottom: 1px solid #334155;
  margin-bottom: 24px;
}

.cookie-settings-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cookie-settings-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.cookie-settings-close:hover {
  color: #f8fafc;
}

.cookie-settings-body {
  padding: 0 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

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

.cookie-category h4 {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 8px;
}

.cookie-category p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.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: #334155;
  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: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-settings-footer {
  padding: 24px;
  border-top: 1px solid #334155;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 24px;
  }
  
  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    display: flex;
  }

  .cookie-link {
    width: 100%;
    text-align: center;
    margin: 8px 0 0 0;
  }

  .cookie-settings-content {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }

  .cookie-settings-footer {
    flex-direction: column;
  }

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