/* Cookie Consent Banner & Modal Styles */

/* Cookie Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid var(--primary-color);
}

.cookie-consent-banner.show {
  bottom: 0;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner-text h3 i {
  color: var(--primary-color);
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.cookie-banner-text a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
  color: #ff6b6b;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn-primary {
  background: var(--primary-color);
  color: white;
}

.cookie-btn-primary:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.cookie-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-link {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  padding: 12px 16px;
}

.cookie-btn-link:hover {
  color: var(--primary-color);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.cookie-settings-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background: white;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
  transform: scale(1);
}

.cookie-settings-header {
  padding: 25px 30px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border-radius: 10px 10px 0 0;
}

.cookie-settings-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-settings-header h2 i {
  color: var(--primary-color);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease, transform 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: var(--primary-color);
  background: #f0f0f0;
  transform: rotate(90deg);
}

.cookie-settings-body {
  padding: 30px;
}

.cookie-category {
  margin-bottom: 25px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-category-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-category-header h3 i {
  color: var(--primary-color);
  font-size: 1rem;
}

.cookie-category-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.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: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.cookie-toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .toggle-slider {
  background-color: var(--primary-color);
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-settings-footer {
  padding: 20px 30px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8f8f8;
  border-radius: 0 0 10px 10px;
}

.badge-required {
  display: inline-block;
  background: #4caf50;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-settings-content {
    max-height: 90vh;
  }

  .cookie-settings-header,
  .cookie-settings-body,
  .cookie-settings-footer {
    padding: 20px;
  }

  .cookie-settings-footer {
    flex-direction: column;
  }

  .cookie-category {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .cookie-banner-text h3 {
    font-size: 1.05rem;
  }

  .cookie-banner-text p {
    font-size: 0.85rem;
  }

  .cookie-settings-header h2 {
    font-size: 1.2rem;
  }

  .cookie-category-header h3 {
    font-size: 1rem;
  }

  .cookie-category-description {
    font-size: 0.85rem;
  }
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-settings-link:hover {
  color: var(--primary-color);
}
