/* ========================================
   COOKIE BANNER & MODAL - THEMED FOR VULKANIZACIJA MAREK
   ======================================== */

/* Cookie Banner - Main Styles */
.cookie-banner {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 16px !important;
  display: none;
  z-index: 99999 !important;
  transform: none !important;
  will-change: auto !important;
}

.cookie-banner.is-visible {
  display: block !important;
  position: fixed !important;
  bottom: 0 !important;
  transform: none !important;
}

.cookie-banner__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: rgba(20, 20, 20, 0.9);
  color: #ffffff;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 127, 249, 0.2);
  border-color: rgba(45, 127, 249, 0.4);
}

.cookie-btn--primary {
  background: #2d7ff9;
  border-color: #2d7ff9;
  color: #ffffff;
}

.cookie-btn--primary:hover {
  background: #1e6ee6;
  border-color: #1e6ee6;
  box-shadow: 0 4px 20px rgba(45, 127, 249, 0.4);
}

.cookie-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}

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

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

.cookie-btn--secondary:hover {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100000;
}

.cookie-modal.is-open {
  display: block;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.cookie-modal__dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 680px;
  max-height: 80vh;
  padding: 32px;
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-modal__title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cookie-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  padding-right: 8px;
}

.cookie-modal__body::-webkit-scrollbar {
  width: 6px;
}

.cookie-modal__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.cookie-modal__body::-webkit-scrollbar-thumb {
  background: rgba(45, 127, 249, 0.5);
  border-radius: 3px;
}

.cookie-modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 127, 249, 0.7);
}

.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal__close:hover {
  color: #ffffff;
}

/* Cookie Toggle Switches */
.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.6);
  transition: all 0.2s ease;
}

.cookie-toggle:hover {
  border-color: rgba(45, 127, 249, 0.3);
  background: rgba(25, 25, 25, 0.7);
}

.cookie-toggle__left {
  flex: 1;
}

.cookie-toggle__title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.cookie-toggle__desc {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Toggle Switch Component */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(100, 100, 100, 0.4);
  transition: .3s;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  top: 2px;
  background-color: #ffffff;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
  background-color: #2d7ff9;
  border-color: #2d7ff9;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

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

.switch input:disabled + .slider:before {
  background-color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  .cookie-banner__text {
    text-align: center;
    font-size: 13px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
  }

  .cookie-modal__dialog {
    width: 90%;
    max-width: 90%;
    margin: 20px;
    padding: 24px;
    max-height: 85vh;
  }

  .cookie-modal__title {
    font-size: 20px;
    padding-right: 32px;
  }

  .cookie-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cookie-toggle__right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .cookie-modal__actions {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-modal__actions .cookie-btn {
    width: 100%;
  }
}

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

  .cookie-banner__inner {
    border-radius: 16px 16px 0 0;
    padding: 18px 16px;
  }

  .cookie-banner__text {
    font-size: 12px;
  }

  .cookie-btn {
    padding: 12px 16px;
    font-size: 11px;
  }

  .cookie-modal__dialog {
    padding: 20px;
  }

  .cookie-toggle {
    padding: 16px 14px;
  }

  .cookie-toggle__title {
    font-size: 14px;
  }

  .cookie-toggle__desc {
    font-size: 12px;
  }
}
