/* ============================================================
   DigiVault — design tokens & global styles
   ============================================================ */

:root {
    --dv-bg: #0b0b11;
    --dv-surface: #12121a;
    --dv-elevated: #1a1a24;
    --dv-border: rgba(255, 255, 255, 0.08);
    --dv-brand: #8b5cf6;
    --dv-accent: #d946ef;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dv-bg);
    background-image:
        radial-gradient(60rem 40rem at 85% -10%, rgba(139, 92, 246, 0.13), transparent 60%),
        radial-gradient(50rem 35rem at -10% 35%, rgba(217, 70, 239, 0.07), transparent 60%);
    background-attachment: fixed;
}

::selection {
    background: rgba(139, 92, 246, 0.45);
    color: #fff;
}

/* ---------- scrollbars ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #2a2a35;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b3b49;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    scrollbar-width: none;
}

/* ---------- gradient text ---------- */
.text-gradient {
    background: linear-gradient(92deg, #c4b5fd 0%, #a78bfa 40%, #e879f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- primary gradient button ---------- */
.btn-gradient {
    background-image: linear-gradient(92deg, #7c3aed, #c026d3);
    color: #fff;
    border: none;
    transition: box-shadow 0.3s ease, filter 0.2s ease, transform 0.2s ease;
}
.btn-gradient:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 26px rgba(168, 85, 247, 0.45);
}
.btn-gradient:active {
    transform: scale(0.98);
}

/* ---------- inputs ---------- */
.input-dv {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.input-dv::placeholder {
    color: #52525b;
}
.input-dv:focus {
    border-color: rgba(167, 139, 250, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- course card hover ---------- */
.dv-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.dv-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 14px 36px -14px rgba(139, 92, 246, 0.4);
}
.dv-card .dv-thumb img {
    transition: transform 0.45s ease;
}
.dv-card:hover .dv-thumb img {
    transform: scale(1.06);
}

/* ---------- entrance animation ---------- */
@keyframes dv-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.animate-fade-up {
    animation: dv-fade-up 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.dv-delay-1 { animation-delay: 0.08s; }
.dv-delay-2 { animation-delay: 0.16s; }
.dv-delay-3 { animation-delay: 0.24s; }

/* ---------- account tabs (DaisyUI override) ---------- */
.tabs-bordered .tab {
    color: #71717a;
    font-weight: 500;
    --tab-border-color: rgba(255, 255, 255, 0.08);
}
.tabs-bordered .tab:hover {
    color: #d4d4d8;
}
.tabs-bordered .tab:is(input:checked) {
    color: #fff;
    border-color: #a78bfa;
}

/* ---------- auth pages logo ---------- */
.auth-logo {
    display: block;
    height: 5.5rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (min-width: 640px) {
    .auth-logo {
        height: 7rem;
    }
}

/* ---------- login page — subtle gradient on mobile (top-weighted) ---------- */
@media (max-width: 639px) {
    body.auth-login-page {
        background-color: var(--dv-bg);
        background-image:
            radial-gradient(60rem 40rem at 85% -10%, rgba(139, 92, 246, 0.04), transparent 60%),
            radial-gradient(50rem 35rem at -10% 35%, rgba(217, 70, 239, 0.02), transparent 60%);
    }

    body.auth-login-page .auth-glow-violet {
        top: -10rem;
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        background-color: rgba(124, 58, 237, 0.06);
    }

    body.auth-login-page .auth-glow-fuchsia {
        top: auto;
        bottom: -10rem;
        right: 0;
        left: auto;
        background-color: rgba(192, 38, 211, 0.03);
    }
}
