/* Cookie Consent Banner - SEO Optimized */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0a1929 0%, #132f4c 100%);
  color: #f5f9f8;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  border-top: 2px solid #2a4255;
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

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

.cookie-banner.hide {
  transform: translateY(100%);
}

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

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

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

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

.cookie-banner-text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #9aafbd;
}

.cookie-banner-text a {
  color: #b8fb69;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
  color: #d4ff99;
}

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

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn-accept {
  background: #b8fb69;
  color: #071322;
}

.cookie-btn-accept:hover {
  background: #d4ff99;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 251, 105, 0.3);
}

.cookie-btn-decline {
  background: transparent;
  color: #9aafbd;
  border: 1px solid #2a4255;
}

.cookie-btn-decline:hover {
  background: rgba(42, 66, 85, 0.3);
  color: #f5f9f8;
  border-color: #3d5875;
}

.cookie-btn-settings {
  background: transparent;
  color: #b8fb69;
  border: 1px solid #b8fb69;
  padding: 12px 20px;
}

.cookie-btn-settings:hover {
  background: rgba(184, 251, 105, 0.1);
  border-color: #d4ff99;
  color: #d4ff99;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 19, 34, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background: #10263a;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #2a4255;
}

.cookie-settings-header {
  padding: 24px;
  border-bottom: 1px solid #2a4255;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-header h2 {
  margin: 0;
  font-size: 24px;
  color: #f5f9f8;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: #9aafbd;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cookie-modal-close:hover {
  background: rgba(154, 175, 189, 0.1);
  color: #f5f9f8;
}

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

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(42, 66, 85, 0.2);
  border-radius: 8px;
  border: 1px solid #2a4255;
}

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

.cookie-category-header h3 {
  margin: 0;
  font-size: 18px;
  color: #f5f9f8;
}

.cookie-category-description {
  font-size: 14px;
  line-height: 1.6;
  color: #9aafbd;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  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: #2a4255;
  transition: 0.3s;
  border-radius: 28px;
}

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

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

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
  background-color: #071322;
}

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

.cookie-settings-footer {
  padding: 24px;
  border-top: 1px solid #2a4255;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    gap: 16px;
  }

  .cookie-banner-content {
    min-width: 100%;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-settings-content {
    margin: 10px;
  }

  .cookie-settings-header,
  .cookie-settings-body,
  .cookie-settings-footer {
    padding: 16px;
  }

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

  .cookie-settings-footer .cookie-btn {
    width: 100%;
  }
}

/* Animation for initial load */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner.initial-show {
  animation: slideUp 0.5s ease-out forwards;
}

/* Accessibility */
.cookie-btn:focus,
.cookie-modal-close:focus {
  outline: 2px solid #b8fb69;
  outline-offset: 2px;
}

.cookie-toggle input:focus + .cookie-toggle-slider {
  box-shadow: 0 0 0 3px rgba(184, 251, 105, 0.3);
}

/* Hidden state (for SEO - content is still accessible) */
.cookie-banner[hidden] {
  display: none;
}
