/*
 * WetFile - custom styles that complement Tailwind (CDN build)
 */

/* ---------- Horizontal overflow guard ----------
   AOS elements start translated off-axis until they animate in;
   clip prevents them from creating horizontal page scroll while
   keeping position:sticky working. */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
    html, body { overflow-x: clip; }
}

/* ---------- Ambient background ---------- */
.bg-grid {
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

@keyframes blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -24px) scale(1.08); }
}
.blob           { animation: blob-drift 12s ease-in-out infinite; }
.blob-slow      { animation-duration: 16s; animation-delay: -4s; }
.blob-slower    { animation-duration: 20s; animation-delay: -8s; }

/* ---------- Dropzone drag feedback (toggled by main.js) ---------- */
#dropzone {
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* ---------- Contact honeypot (invisible to humans) ---------- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ---------- Admin sidebar behaviour ---------- */
.admin-sidebar { top: 3.5rem; bottom: 0; }
@media (min-width: 1024px) {
    .admin-sidebar { top: 0; }
}

details > summary::-webkit-details-marker { display: none; }

/* ---------- Scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: #334155 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #334155; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .blob, .blob-slow, .blob-slower { animation: none; }
}
