/* MotionVault — UI components */

/* ===== Buttons ===== */
.btn {
    border: none; cursor: pointer;
    padding: 8px 12px; border-radius: var(--radius);
    font-size: 12px; font-weight: 500;
    transition: all 0.15s ease;
}
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--txt-1); border: 1px solid var(--bg-3); }
.btn--ghost:hover { background: var(--bg-2); color: var(--txt-0); }
.btn--danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }

/* ===== Asset cards ===== */
.card {
    background: var(--bg-1);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card.locked { opacity: 0.55; }
.card.locked::after {
    content: "🔒 PRO";
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,0.7);
    color: var(--warn);
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
}
.card__thumb {
    width: 100%; aspect-ratio: 16/9;
    background: #000 center/cover no-repeat;
    position: relative;
}
.card__thumb video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.card__name {
    padding: 5px 7px;
    font-size: 10px;
    color: var(--txt-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Preview overlay ===== */
.preview {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 20px;
}
.preview video {
    max-width: 90%; max-height: 70%;
    border-radius: var(--radius);
    background: #000;
}
.preview__info {
    margin-top: 14px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.preview__name {
    font-size: 14px; font-weight: 600;
    color: var(--txt-0);
}
.preview__buttons { display: flex; gap: 8px; }

/* ===== Modal ===== */
.modal {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.modal__box {
    background: var(--bg-1);
    padding: 20px;
    width: 300px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.modal__box h2 {
    margin: 0 0 14px; font-size: 16px; color: var(--accent);
}
.account__row {
    display: flex; justify-content: space-between;
    padding: 5px 0;
    font-size: 11px;
    color: var(--txt-2);
}
.account__row strong { color: var(--txt-0); font-weight: 500; }
.modal__box hr {
    border: none; border-top: 1px solid var(--bg-3);
    margin: 12px 0;
}
.modal__box .btn { width: 100%; margin-top: 6px; }

/* ===== Toasts ===== */
.toast {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    background: var(--bg-3);
    color: var(--txt-0);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 11px;
    z-index: 300;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    animation: toast-in 0.2s ease;
}
.toast.ok { background: var(--accent); color: #000; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes toast-in {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Scrollbars ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a52; }
