/* =============================================
   Cookie Banner Styles
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  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;
}

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

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

.cookie-text {
  flex: 1;
}

.cookie-text h4 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: #22D3EE;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-text a:hover {
  color: #06B6D4;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Cookie Preferences Panel */
.cookie-preferences {
  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: 32px 24px;
  z-index: 10000;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-preferences-content {
  max-width: 800px;
  margin: 0 auto;
}

.cookie-preferences h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cookie-preferences > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 32px;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.cookie-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

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

.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;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

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

input:checked + .toggle-slider {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
}

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

input:disabled + .toggle-slider {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-info h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cookie-category-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-preferences-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .cookie-actions {
    justify-content: center;
  }
  
  .cookie-text {
    text-align: center;
  }

  .cookie-preferences {
    padding: 24px 16px;
  }

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

  .cookie-toggle {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 20px 16px;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-text h4 {
    font-size: 1rem;
  }
  
  .cookie-text p {
    font-size: 0.875rem;
  }

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