/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

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

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-content {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-title .cookie-icon {
  font-size: 20px;
}

.cookie-banner-text {
  color: #b3b3b3;
  line-height: 1.5;
  font-size: 14px;
}

.cookie-banner-text a {
  color: #5865f2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cookie-banner-text a:hover {
  border-bottom-color: #5865f2;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #4752c4 0%, #3c47a0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings {
  background: transparent;
  color: #b3b3b3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  padding: 8px 16px;
}

.cookie-btn-settings:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Cookie Settings Modal */
.cookie-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-settings-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.cookie-settings-modal {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cookie-settings-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.cookie-settings-close {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
}

.cookie-settings-close:hover {
  color: #ffffff;
}

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

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-title {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #404040;
  transition: 0.3s;
  border-radius: 24px;
  pointer-events: none;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #5865f2;
}

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

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

.cookie-toggle input:disabled {
  cursor: not-allowed;
}

.cookie-category-description {
  color: #b3b3b3;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-container {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
    width: 100%;
  }

  .cookie-settings-modal {
    padding: 20px;
    margin: 10px;
  }

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

  .cookie-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-banner-actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    padding: 12px 20px;
  }
}

/* Animation for cookie icon */
@keyframes cookieBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.cookie-banner-title .cookie-icon {
  animation: cookieBounce 2s ease-in-out infinite;
}
