/*
    Estilos próprios do Vilger Memorial. CSS puro, sem build: o projeto não tem
    Node nem Vite. Classes com prefixo vm-. Tokens de cor do próprio Filament.
*/

/* ---- Rodapé (resources/views/filament/footer.blade.php) ------------------ */

.vm-app-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 10px 1rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgb(113 113 122);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -1px 4px rgb(0 0 0 / 0.04);
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
    background: var(--gray-100);
}

.vm-app-footer-guest {
    position: static;
    justify-content: center;
    background: transparent;
    border-top: none;
    box-shadow: none;
}

@media (min-width: 640px) { .vm-app-footer { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .vm-app-footer { padding-inline: 2rem; } }

.vm-app-footer-version { font-weight: 600; }

.dark .vm-app-footer {
    color: rgb(161 161 170);
    background: var(--gray-900);
    border-top-color: var(--gray-800);
    box-shadow: 0 -1px 4px rgb(0 0 0 / 0.25);
}

.dark .vm-app-footer-guest { background: transparent; }

.vm-app-footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease;
}

.vm-app-footer-link:hover,
.vm-app-footer-link:focus-visible {
    color: var(--primary-600);
    text-decoration: underline;
}

.dark .vm-app-footer-link:hover,
.dark .vm-app-footer-link:focus-visible { color: var(--primary-400); }

@media (max-width: 480px) {
    .vm-app-footer { justify-content: center; text-align: center; }
}

/* ---- Novidades (histórico de versões) ----------------------------------- */

.vm-release + .vm-release {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(0 0 0 / 0.06);
}

.dark .vm-release + .vm-release { border-top-color: rgb(255 255 255 / 0.08); }

.vm-release-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
}

.vm-release-number {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgb(9 9 11);
}

.dark .vm-release-number { color: rgb(255 255 255); }

.vm-release-date { font-size: 0.875rem; color: rgb(113 113 122); }
.dark .vm-release-date { color: rgb(161 161 170); }

.vm-release-summary {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgb(82 82 91);
}

.dark .vm-release-summary { color: rgb(212 212 216); }

.vm-release-list {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vm-release-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.vm-release-kind { flex: none; width: 8.5rem; }
.vm-release-text { font-size: 0.875rem; line-height: 1.6; color: rgb(63 63 70); }
.dark .vm-release-text { color: rgb(228 228 231); }

@media (max-width: 640px) {
    .vm-release-item { flex-direction: column; gap: 0.375rem; }
    .vm-release-kind { width: auto; }
}

/* ---- Tutorial do usuário (resources/views/filament/pages/user-tutorials.blade.php) */

.vm-tutorial-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 0.75rem;
}

.vm-tutorial-card {
    display: block;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.vm-tutorial-card:hover,
.vm-tutorial-card:focus-visible {
    border-color: var(--primary-500);
    box-shadow: 0 1px 6px rgb(0 0 0 / 0.08);
}

.dark .vm-tutorial-card { background: var(--gray-900); border-color: var(--gray-800); }

.vm-tutorial-card-title { font-weight: 600; font-size: 0.9375rem; }
.vm-tutorial-card-summary { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.5; color: rgb(113 113 122); }
.dark .vm-tutorial-card-summary { color: rgb(161 161 170); }
.vm-tutorial-card-path { margin-top: 0.5rem; font-size: 0.75rem; color: var(--primary-600); }
.dark .vm-tutorial-card-path { color: var(--primary-400); }

.vm-tutorial-module { margin: 1.75rem 0 0.75rem; font-size: 1rem; font-weight: 600; }
.vm-tutorial-module:first-child { margin-top: 0; }

.vm-tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: rgb(113 113 122);
}

.vm-tutorial-section { scroll-margin-top: 5rem; }

/* Aviso, e não citação: sem aspas e sem itálico. */
.vm-tutorial blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--warning-500);
    border-radius: 0 0.5rem 0.5rem 0;
    background: var(--warning-50);
    font-style: normal;
    color: inherit;
}

.dark .vm-tutorial blockquote { background: color-mix(in oklab, var(--warning-500) 12%, transparent); }
.vm-tutorial blockquote p::before,
.vm-tutorial blockquote p::after { content: none; }

.vm-tutorial-related { margin-top: 1.5rem; font-size: 0.875rem; }
.vm-tutorial-related a { color: var(--primary-600); text-decoration: underline; }
.dark .vm-tutorial-related a { color: var(--primary-400); }
