/* Vanvic Social v2.3 Patch 4D — mobile, accessibility and theme polish. */
:root { --vv-focus: #8b5cf6; --vv-touch: 44px; }

html { scroll-behavior: smooth; }
body { min-width: 320px; overflow-x: hidden; }

:focus-visible {
  outline: 3px solid var(--vv-focus);
  outline-offset: 3px;
  border-radius: .375rem;
}

button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"] {
  touch-action: manipulation;
}

.vv-theme-button {
  min-width: var(--vv-touch);
  min-height: var(--vv-touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vv-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: .75rem;
}
.vv-table-scroll > table { min-width: 640px; width: 100%; }

img, video { max-width: 100%; height: auto; }
img[loading="lazy"] { content-visibility: auto; }

/* Prevent mobile browsers zooming forms and make controls easier to tap. */
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px !important; }
  button, a, input, select, textarea { max-width: 100%; }
  main { overflow-wrap: anywhere; }
  .glass-panel, .glass-panel-solid { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .card-hover:hover { transform: none; }
  .fixed.w-80 { width: calc(100vw - 2rem); }
}

/* Better light-theme coverage for common utility combinations. */
html.light .hover\:bg-white\/5:hover { background-color: rgba(15, 23, 42, .05); }
html.light .hover\:bg-white\/10:hover { background-color: rgba(15, 23, 42, .08); }
html.light .divide-white\/5 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(15,23,42,.08); }
html.light .shadow-xl, html.light .shadow-lg { box-shadow: 0 18px 45px rgba(15,23,42,.14); }
html.light input, html.light select, html.light textarea {
  background-color: #fff;
  border-color: rgba(15,23,42,.16);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root { --border-subtle: rgba(255,255,255,.24); }
  html.light { --border-subtle: rgba(15,23,42,.28); }
  .text-gray-400 { opacity: 1; }
}
