/* Cookie Consent Banner Styles */
.cookie-consent-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999998;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease-in-out;
}

.cookie-consent-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  z-index: 999999;
  animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.cookie-consent-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cookie-icon {
  font-size: 48px;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cookie-text h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-text p {
  margin: 0 0 15px 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.95;
}

.cookie-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-links a {
  color: white;
  text-decoration: underline;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.cookie-links a:hover {
  opacity: 1;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

.cookie-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.cookie-btn-text {
  background: transparent;
  color: white;
  padding: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.cookie-btn-text:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Settings Modal */
.cookie-settings-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 1000000;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalZoom 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalZoom {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.cookie-settings-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px 30px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.cookie-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cookie-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.cookie-settings-body {
  padding: 30px;
  color: #333;
}

.cookie-category {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #667eea;
  transition: all 0.3s;
}

.cookie-category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.cookie-category-title {
  font-size: 18px;
  font-weight: 600;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.cookie-toggle {
  position: relative;
  width: 56px;
  height: 28px;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 28px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #667eea;
}

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

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

.cookie-category-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 10px;
}

.cookie-category-details {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

.cookie-settings-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  border-radius: 0 0 16px 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-powered-by {
  text-align: center;
  padding: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 15px;
}

.cookie-powered-by a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.cookie-powered-by a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-icon {
    font-size: 36px;
  }

  .cookie-text h3 {
    font-size: 20px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-settings-modal {
    width: 95%;
    max-height: 90vh;
  }

  .cookie-settings-body {
    padding: 20px;
  }
}

/* Show classes */
.cookie-consent-overlay.show,
.cookie-consent-banner.show,
.cookie-settings-modal.show {
  display: block;
}
