/* Cookie Notice Bar */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 20, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

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

.cookie-notice-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cookie-notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-notice-text h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cookie-notice-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
}

.cookie-notice-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-settings {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Cookie Settings Modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.cookie-modal.show {
  display: block;
}

.cookie-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.cookie-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.cookie-modal-close:hover {
  color: #fff;
}

.cookie-modal-body {
  padding: 2rem;
  max-height: 400px;
  overflow-y: auto;
}

.cookie-modal-body::-webkit-scrollbar {
  width: 8px;
}

.cookie-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.cookie-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.cookie-category {
  margin-bottom: 2rem;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.cookie-category-info h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cookie-category-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
}

.cookie-switch input[type="checkbox"] {
  display: none;
}

.switch-label {
  display: block;
  width: 50px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.switch-label.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.switch-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input[type="checkbox"]:checked + .switch-label {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input[type="checkbox"]:checked + .switch-label .switch-slider {
  transform: translateX(24px);
}

.cookie-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.cookie-btn-save {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-save:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

  .cookie-notice-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cookie-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

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

  .cookie-category-header {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-switch {
    align-self: flex-start;
  }
}

/* Small banner option */
.cookie-notice.minimal {
  padding: 1rem 0;
}

.cookie-notice.minimal .cookie-notice-text p {
  display: none;
}

.cookie-notice.minimal .cookie-notice-text h3 {
  font-size: 1rem;
  margin: 0;
}
/* Rebuild trigger */
