/* ========================================
   WINKLA COOKIE CONSENT - CUSTOM STYLES
   ======================================== */

/* Cookie Banner - Main Styles */
.cookie-banner {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 20px !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;
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.cookie-banner__text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
}

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

/* Cookie Buttons */
.cookie-btn {
  border-radius: 100px;
  border: 1px solid rgba(255, 77, 0, 0.3);
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: rgba(26, 29, 36, 0.9);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 77, 0, 0.25);
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #ff4d00 0%, #ff6b2c 100%);
  border-color: #ff4d00;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.3);
}

.cookie-btn--primary:hover {
  background: linear-gradient(135deg, #ff6b2c 0%, #ff4d00 100%);
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.4);
  transform: translateY(-2px);
}

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

.cookie-btn--ghost:hover {
  background: rgba(255, 77, 0, 0.1);
  border-color: rgba(255, 77, 0, 0.4);
}

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

.cookie-btn--secondary:hover {
  background: rgba(26, 29, 36, 0.95);
  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;
  animation: fadeIn 0.3s ease;
}

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

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

.cookie-modal__dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 720px;
  max-height: 85vh;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(26, 29, 36, 0.98) 0%, rgba(20, 23, 30, 0.98) 100%);
  border: 1px solid rgba(255, 77, 0, 0.2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 77, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.cookie-modal__title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding-right: 40px;
}

.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: 10px;
}

.cookie-modal__body::-webkit-scrollbar-thumb {
  background: rgba(255, 77, 0, 0.4);
  border-radius: 10px;
}

.cookie-modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 77, 0, 0.6);
}

.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

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

.cookie-modal__close:hover {
  color: #ff4d00;
  background: rgba(255, 77, 0, 0.1);
}

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

.cookie-toggle:hover {
  border-color: rgba(255, 77, 0, 0.3);
  background: rgba(255, 77, 0, 0.05);
}

.cookie-toggle__left {
  flex: 1;
}

.cookie-toggle__title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.cookie-toggle__desc {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

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

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #ff4d00 0%, #ff6b2c 100%);
  box-shadow: 0 0 12px rgba(255, 77, 0, 0.4);
}

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

.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 {
    padding: 16px !important;
  }

  .cookie-banner__inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
    padding: 20px !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .cookie-banner__text {
    font-size: 14px !important;
    text-align: center !important;
  }

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

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

  /* Cookie Modal Mobile */
  .cookie-modal__dialog {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin: 16px !important;
    padding: 24px !important;
    max-height: calc(100vh - 32px) !important;
  }

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

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

  .cookie-toggle__left {
    width: 100% !important;
  }

  .cookie-toggle__title {
    font-size: 15px !important;
  }

  .cookie-toggle__desc {
    font-size: 13px !important;
  }

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

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

  .cookie-banner__inner {
    padding: 18px !important;
    gap: 16px !important;
  }

  .cookie-banner__text {
    font-size: 13px !important;
  }

  .cookie-btn {
    padding: 12px 18px !important;
    font-size: 11px !important;
  }

  .cookie-modal__dialog {
    padding: 20px !important;
  }

  .cookie-modal__title {
    font-size: 18px !important;
  }
}
