/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: #fff;
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
  display: none;
}

.cookie-consent-banner.visible {
  display: block;
  animation: slideUp 0.3s 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;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-text p {
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: #64b5f6;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: #90caf9;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.cookie-btn:active {
  transform: scale(0.98);
}

.cookie-btn-accept {
  background: #28a745;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #218838;
}

.cookie-btn-reject {
  background: #dc3545;
  color: #fff;
}

.cookie-btn-reject:hover {
  background: #c82333;
}

.cookie-btn-settings {
  background: #6c757d;
  color: #fff;
}

.cookie-btn-settings:hover {
  background: #5a6268;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-settings-modal.visible {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-settings-panel {
  background: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.cookie-settings-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #2c3e50;
}

.cookie-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
}

.cookie-close-btn:hover {
  color: #333;
}

.cookie-category {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #2c3e50;
}

.cookie-category p {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.cookie-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: relative;
  width: 48px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  transition: background 0.3s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-toggle-input:checked + .cookie-toggle-slider {
  background: #28a745;
}

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

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

.cookie-toggle-input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.cookie-toggle-text {
  font-weight: 500;
}

.cookie-settings-footer {
  padding: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid #eee;
}

@media (max-width: 600px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-consent-buttons {
    justify-content: center;
  }
  
  .cookie-settings-panel {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
}
