/* Minimal custom styling on top of Tailwind */

/* Native form controls: dark dropdown lists (Windows/Chrome) need explicit color-scheme */
html.dark {
  color-scheme: dark;
}

html:not(.dark) {
  color-scheme: light;
}

/* Language select: closed + open list — readable in dark mode */
html.dark select.sdc-lang-select {
  color-scheme: dark;
  background-color: rgb(15 23 42);
  color: rgb(241 245 249);
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark select.sdc-lang-select:hover {
  background-color: rgb(30 41 59);
}

html.dark select.sdc-lang-select option {
  background-color: rgb(15 23 42);
  color: rgb(241 245 249);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.sdc-dropzone.dragover {
  outline: 2px dashed rgb(59 130 246);
  outline-offset: 2px;
}

.sdc-file-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sdc-file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sdc-file-btn {
  display: inline-block;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 0;
  background: rgba(37, 99, 235, 0.8);
  color: rgb(255 255 255);
  white-space: nowrap;
}

.sdc-file-btn:hover {
  background: rgb(37, 99, 235);
}

.sdc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  animation: sdcspin 0.8s linear infinite;
}

.light .sdc-spinner {
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.7);
}

@keyframes sdcspin {
  to {
    transform: rotate(360deg);
  }
}

/* Donation bar */
body.has-donation-bar {
  padding-bottom: 5.5rem;
}

@media (min-width: 640px) {
  body.has-donation-bar {
    padding-bottom: 4.75rem;
  }
}

.sdc-donation-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: rgba(15, 23, 42, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
}

html.light .sdc-donation-bar {
  background: rgba(241, 245, 249, 0.96);
  border-top-color: rgba(148, 163, 184, 0.45);
}

.sdc-donation-bar__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.sdc-donation-bar__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgb(241 245 249);
  flex: 1 1 12rem;
}

html.light .sdc-donation-bar__text {
  color: rgb(30 41 59);
}

.sdc-donation-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: rgb(15 23 42);
  background: linear-gradient(135deg, rgb(96 165 250), rgb(59 130 246));
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

html.light .sdc-donation-bar__btn {
  color: rgb(255 255 255);
  background: linear-gradient(135deg, rgb(37 99 235), rgb(29 78 216));
}

.sdc-donation-bar__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
  text-decoration: none;
}

.sdc-donation-bar__icon {
  font-size: 1rem;
  line-height: 1;
}

.sdc-footer-legal a {
  color: rgb(100 116 139);
  text-decoration: none;
}

.sdc-footer-legal a:hover {
  text-decoration: underline;
  color: rgb(51 65 85);
}

html.dark .sdc-footer-legal a {
  color: rgb(148 163 184);
}

html.dark .sdc-footer-legal a:hover {
  color: rgb(226 232 240);
}

