/* BrickVIP — Custom Styles (supplements Tailwind CDN) */

/* ─── Line Clamp (for set titles) ─── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Smooth transitions ─── */
a, button, input, select {
    transition: all 0.15s ease-in-out;
}

/* ─── Scrollbar styling ─── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ─── Skeleton loading animation ─── */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Search autocomplete ─── */
#search-autocomplete {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
}
#search-autocomplete mark {
    padding: 0 1px;
}

/* ─── Animate numbers on homepage stats ─── */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out both;
}

/* ─── Badge pulse for lowest-ever ─── */
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.badge-pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

/* ─── Print styles ─── */
@media print {
    nav, footer, .no-print, #lang-switcher, #mobile-menu, #search-autocomplete {
        display: none !important;
    }
    body {
        font-size: 12pt;
    }
}
