/* Cookie Consent Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 20px;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-top: 3px solid #3498db;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
}

.cookie-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(52, 152, 219, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #3498db;
}

.cookie-text h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #ecf0f1;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #bdc3c7;
  max-width: 600px;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cookie-btn-primary:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.cookie-btn-secondary {
  background: transparent;
  color: #ecf0f1;
  border: 2px solid #ecf0f1;
}

.cookie-btn-secondary:hover {
  background: rgba(236, 240, 241, 0.1);
  border-color: #3498db;
  color: #3498db;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ecf0f1;
}

.cookie-settings-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 24px;
  font-weight: 700;
}

.cookie-settings-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #7f8c8d;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 50px;
}

.cookie-settings-close:hover {
  background: #ecf0f1;
  color: #2c3e50;
          width: 50px;
}

.cookie-category {
  margin-bottom: 25px;
  padding: 20px;
  border: 2px solid #ecf0f1;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  border-color: #3498db;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.cookie-category-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: #bdc3c7;
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-toggle.active {
  background: #3498db;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-toggle.active::after {
  transform: translateX(24px);
}

.cookie-category-description {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0;
}

.cookie-settings-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #ecf0f1;
}

.cookie-settings-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-settings-btn-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.cookie-settings-btn-primary:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
  transform: translateY(-2px);
}

.cookie-settings-btn-secondary {
  background: transparent;
  color: #7f8c8d;
  border: 2px solid #bdc3c7;
}

.cookie-settings-btn-secondary:hover {
  border-color: #3498db;
  color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .cookie-banner-text {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-icon {
    align-self: center;
  }
  
  .cookie-banner-actions {
    justify-content: center;
  }
  
  .cookie-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .cookie-settings-modal {
    padding: 20px;
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .cookie-settings-header h3 {
    font-size: 20px;
  }
  
  .cookie-category {
    padding: 15px;
  }
  
  .cookie-settings-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px;
  }
  
  .cookie-text h4 {
    font-size: 16px;
  }
  
  .cookie-text p {
    font-size: 13px;
  }
  
  .cookie-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .cookie-settings-modal {
    padding: 15px;
  }
}

/* Animation for cookie banner */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.cookie-banner.slide-in {
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.slide-out {
  animation: slideOutDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .cookie-settings-modal {
    background: #2c3e50;
    color: #ecf0f1;
  }
  
  .cookie-settings-header h3 {
    color: #ecf0f1;
  }
  
  .cookie-category {
    border-color: #34495e;
    background: #34495e;
  }
  
  .cookie-category:hover {
    border-color: #3498db;
    background: #3a4a5a;
  }
  
  .cookie-category-title {
    color: #ecf0f1;
  }
  
  .cookie-category-description {
    color: #bdc3c7;
  }
  
  .cookie-settings-close {
    color: #bdc3c7;
  }
  
  .cookie-settings-close:hover {
    background: #34495e;
    color: #ecf0f1;
  }
  
  .cookie-settings-actions {
    border-top-color: #34495e;
  }
}
