/* ═══════════════════════════════════════════════════════
   QRCircle — Custom Styles
   Tailwind CDN Play handles utilities in development.
   Run `npm run css:build` to compile output.css for production.
   ═══════════════════════════════════════════════════════ */

/* ── Base ── */
html { scroll-behavior: smooth; }

* {
    scrollbar-width: thin;
    scrollbar-color: #E2E8F0 transparent;
}

/* ── Type-selector active tab ── */
.type-btn-active {
    background-color: #ffffff;
    color: #0052FF;
    font-weight: 600;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.10);
}

/* ── QR canvas polish ── */
#qr-canvas-container canvas {
    border-radius: 12px;
    display: block !important;
}
#qr-canvas-container > img {
    display: none !important;
}

/* ── Native color input invisible overlay ── */
.color-input-overlay {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: none;
    padding: 0;
}

/* ── Glassmorphism card ── */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.70);
    box-shadow:
        0 8px 40px 0 rgba(0, 82, 255, 0.10),
        0 1px 0 0 rgba(255, 255, 255, 0.60) inset;
}

/* ── Pulse animation ── */
@keyframes qrc-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}
.qrc-pulse { animation: qrc-pulse 1.8s ease-in-out infinite; }

/* ── Fade-up entrance ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fade-up 0.55s ease-out both; }
.delay-100 { animation-delay: 0.10s; }
.delay-200 { animation-delay: 0.20s; }
.delay-300 { animation-delay: 0.30s; }

/* ── Hero decorative blobs ── */
.hero-blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ── Gradient text utility ── */
.text-gradient {
    background: linear-gradient(135deg, #0052FF 0%, #5B8BFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Feature card hover ring ── */
.feature-card:hover {
    box-shadow: 0 4px 24px 0 rgba(10, 25, 47, 0.06);
}

/* ── Arabic / RTL font override ── */
[dir="rtl"],
[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] button {
    font-family: 'Cairo', system-ui, sans-serif;
}

/* ── Smooth select arrow ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
[dir="rtl"] select {
    background-position: left 0.75rem center;
}

/* ── Skin thumbnail module grid ── */
.skin-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    width: 36px;
    height: 36px;
    margin: 0 auto;
}
.skin-grid span {
    display: block;
    width: 100%;
    aspect-ratio: 1;
}
.skin-mod-sq  { border-radius: 1px; }
.skin-mod-rnd { border-radius: 50%; }
.skin-mod-dot { border-radius: 50%; transform: scale(0.85); }
.skin-mod-dia { border-radius: 2px; transform: rotate(45deg) scale(0.72); }
