/*
Theme Name: LinkViral Catálogo
Theme URI: https://linkviral.com.br/
Author: LinkViral
Description: Tema estilo Netflix que cria um catálogo automático das páginas e projetos presentes nas subpastas do public_html.
Version: 1.0.0
Text Domain: linkviral-catalogo
*/

:root {
    --lvc-background: #08090d;
    --lvc-surface: #12141b;
    --lvc-surface-light: #1a1d27;
    --lvc-text: #ffffff;
    --lvc-muted: #a6a9b5;
    --lvc-accent: #e50914;
    --lvc-border: rgba(255, 255, 255, 0.1);
    --lvc-radius: 18px;
    --lvc-container: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(229, 9, 20, 0.13), transparent 32%),
        var(--lvc-background);
    color: var(--lvc-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.lvc-container {
    width: min(calc(100% - 36px), var(--lvc-container));
    margin-inline: auto;
}

.lvc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--lvc-border);
    background: rgba(8, 9, 13, 0.86);
    backdrop-filter: blur(18px);
}

.lvc-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lvc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.lvc-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--lvc-accent);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.lvc-home-link {
    color: var(--lvc-muted);
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.lvc-home-link:hover {
    color: var(--lvc-text);
}

.lvc-hero {
    padding: 88px 0 46px;
}

.lvc-eyebrow {
    margin: 0 0 14px;
    color: var(--lvc-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.lvc-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.lvc-hero-description {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--lvc-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.lvc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 20px 0 30px;
}

.lvc-search {
    position: relative;
    flex: 1;
    max-width: 520px;
}

.lvc-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 48px;
    border: 1px solid var(--lvc-border);
    border-radius: 14px;
    outline: none;
    background: var(--lvc-surface);
    color: var(--lvc-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lvc-search input:focus {
    border-color: var(--lvc-accent);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

.lvc-search-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: var(--lvc-muted);
    pointer-events: none;
}

.lvc-count {
    color: var(--lvc-muted);
    font-size: 0.94rem;
    white-space: nowrap;
}

.lvc-filters {
    display: flex;
    gap: 10px;
    padding: 0 0 26px;
    overflow-x: auto;
    scrollbar-width: none;
}

.lvc-filters::-webkit-scrollbar {
    display: none;
}

.lvc-filter {
    flex: none;
    padding: 9px 17px;
    border: 1px solid var(--lvc-border);
    border-radius: 999px;
    background: transparent;
    color: var(--lvc-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.lvc-filter:hover,
.lvc-filter.is-active {
    border-color: var(--lvc-accent);
    background: var(--lvc-accent);
    color: #fff;
}

.lvc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 90px;
}

.lvc-card {
    min-width: 0;
}

.lvc-card-link {
    display: block;
    height: 100%;
    border: 1px solid var(--lvc-border);
    border-radius: var(--lvc-radius);
    overflow: hidden;
    background: var(--lvc-surface);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lvc-card-link:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(229, 9, 20, 0.55);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

.lvc-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 20%, rgba(229, 9, 20, 0.8), transparent 28%),
        linear-gradient(135deg, #292c3a, #11131a);
}

.lvc-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.lvc-card-link:hover .lvc-card-image img {
    transform: scale(1.06);
}

.lvc-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
}

.lvc-card-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    max-width: calc(100% - 26px);
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.lvc-card-content {
    padding: 19px;
}

.lvc-card-content h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.lvc-card-content p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--lvc-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lvc-card-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--lvc-accent);
    font-size: 0.84rem;
    font-weight: 800;
}

.lvc-empty {
    grid-column: 1 / -1;
    padding: 60px 25px;
    border: 1px dashed var(--lvc-border);
    border-radius: var(--lvc-radius);
    text-align: center;
    background: var(--lvc-surface);
}

.lvc-empty h2 {
    margin-top: 0;
}

.lvc-empty p {
    max-width: 650px;
    margin-inline: auto;
    color: var(--lvc-muted);
}

.lvc-404 {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 75px 0;
    text-align: center;
}

.lvc-404-code {
    margin: 0;
    color: var(--lvc-accent);
    font-size: clamp(5rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.08em;
}

.lvc-404 h1 {
    margin: 24px 0 10px;
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    letter-spacing: -0.05em;
}

.lvc-404 p {
    max-width: 620px;
    margin: 0 auto 28px;
    color: var(--lvc-muted);
}

.lvc-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--lvc-accent);
    color: #fff;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lvc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.3);
}

.lvc-section-title {
    margin: 20px 0 25px;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    letter-spacing: -0.045em;
}

.lvc-footer {
    border-top: 1px solid var(--lvc-border);
    padding: 28px 0;
    color: var(--lvc-muted);
    font-size: 0.88rem;
}

.lvc-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .lvc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .lvc-hero {
        padding-top: 60px;
    }

    .lvc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .lvc-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .lvc-search {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .lvc-container {
        width: min(calc(100% - 24px), var(--lvc-container));
    }

    .lvc-header-inner {
        min-height: 64px;
    }

    .lvc-home-link {
        display: none;
    }

    .lvc-grid {
        grid-template-columns: 1fr;
    }

    .lvc-footer-inner {
        flex-direction: column;
    }
}