/* Cookie Banner Styles - CNIL Compliant */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: #ffffff;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text p {
  margin: 0 0 10px 0;
}

.cookie-banner-text a {
  color: #3498db;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #5dade2;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
}

.cookie-btn-accept {
  background: #27ae60;
  color: white;
}

.cookie-btn-accept:hover {
  background: #229954;
}

.cookie-btn-decline {
  background: #e74c3c;
  color: white;
}

.cookie-btn-decline:hover {
  background: #c0392b;
}

.cookie-btn-settings {
  background: #34495e;
  color: white;
}

.cookie-btn-settings:hover {
  background: #2c3e50;
}

.cookie-btn-accept-all {
  background: #3498db;
  color: white;
}

.cookie-btn-accept-all:hover {
  background: #2980b9;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background: white;
  color: #333;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 30px;
}

.cookie-settings-header {
  margin-bottom: 20px;
}

.cookie-settings-header h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 24px;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-title {
  font-weight: 600;
  color: #2c3e50;
}

.cookie-category-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: #27ae60;
}

input:checked + .cookie-slider:before {
  transform: translateX(26px);
}

.cookie-settings-footer {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-text {
    min-width: auto;
  }

  .cookie-banner-buttons {
    justify-content: center;
  }

  .cookie-btn {
    min-width: 100px;
    padding: 8px 16px;
  }

  .cookie-settings-content {
    padding: 20px;
  }
}

/* RTL Support */
[dir="rtl"] .cookie-banner {
  text-align: right;
}

[dir="rtl"] .cookie-banner-content {
  flex-direction: row-reverse;
}

[dir="rtl"] .cookie-banner-buttons {
  flex-direction: row-reverse;
}
