/* =========================================================
   Artigos Financeiros — Listagem + Homepage Preview
   ========================================================= */

@font-face {
    font-family: "Akrobat";
    src: url("/wp-content/themes/lucrar-hello-child/assets/fonts/Akrobat-Bold.woff2") format("woff2"),
         url("/wp-content/themes/lucrar-hello-child/assets/fonts/Akrobat-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("/wp-content/themes/lucrar-hello-child/assets/fonts/Akrobat-Black.woff2") format("woff2"),
         url("/wp-content/themes/lucrar-hello-child/assets/fonts/Akrobat-Black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ── Variáveis ── */
:root {
    --lcr-art-bg: #0e1116;
    --lcr-art-card: rgba(18, 24, 32, 0.8);
    --lcr-art-border: rgba(255, 255, 255, 0.08);
    --lcr-art-brand: #efd7a0;
    --lcr-art-green: #00c16a;
    --lcr-art-text: #e6e6e6;
    --lcr-art-muted: #a9b0b8;
    --lcr-art-radius: 16px;
}

/* ── Section header ── */
.lcr-artigos-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.lcr-artigos-header {
    text-align: center;
    margin-bottom: 40px;
}

.lcr-artigos-title {
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--lcr-art-brand);
    margin: 0 0 12px;
    line-height: 1.1;
    background: linear-gradient(135deg, #efd7a0 30%, #fff 50%, #efd7a0 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lcr-title-shimmer 4s linear infinite;
}

@keyframes lcr-title-shimmer {
    to { background-position: 200% center; }
}

.lcr-artigos-subtitle {
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--lcr-art-muted);
    margin: 0;
    max-width: 600px;
    margin-inline: auto;
}

/* ── Grid de cards ── */
.lcr-artigos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Card individual ── */
.lcr-article-card {
    border-radius: var(--lcr-art-radius);
    border: 1px solid var(--lcr-art-border);
    background: var(--lcr-art-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lcr-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 215, 160, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lcr-article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.lcr-article-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.lcr-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lcr-article-card:hover .lcr-article-thumb img {
    transform: scale(1.04);
}

/* Body */
.lcr-article-card-body {
    padding: 20px;
}

/* Categoria */
.lcr-article-cat {
    display: inline-block;
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--lcr-art-green);
    margin-bottom: 10px;
}

/* Título do card */
.lcr-article-card-title {
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 900;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Excerpt */
.lcr-article-excerpt {
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--lcr-art-muted);
    line-height: 1.55;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta (autor, data, tempo) */
.lcr-article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 700;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

.lcr-article-dot {
    opacity: 0.5;
}

/* ── Link "Ver todos" ── */
.lcr-artigos-footer {
    text-align: center;
    margin-top: 36px;
}

.lcr-artigos-view-all {
    display: inline-block;
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 900;
    font-size: 1rem;
    color: var(--lcr-art-brand);
    text-decoration: none;
    border: 1.5px solid rgba(239, 215, 160, 0.4);
    padding: 12px 32px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lcr-artigos-view-all:hover {
    background: var(--lcr-art-brand);
    color: #000;
    border-color: var(--lcr-art-brand);
}

/* ── Archive page ── */
.lcr-artigos-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* Filtros */
.lcr-artigos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 32px;
}

.lcr-artigos-pill {
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--lcr-art-muted);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid var(--lcr-art-border);
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lcr-artigos-archive .lcr-artigos-pill:hover,
.lcr-artigos-archive .lcr-artigos-pill.active,
.lcr-artigos-pill:hover,
.lcr-artigos-pill.active {
    background: rgba(239, 215, 160, 0.12) !important;
    color: var(--lcr-art-brand) !important;
    border-color: rgba(239, 215, 160, 0.3) !important;
}

/* Search */
.lcr-artigos-search {
    margin-left: auto;
}

.lcr-artigos-search-input {
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lcr-art-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--lcr-art-border);
    border-radius: 12px;
    padding: 10px 16px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s;
}

.lcr-artigos-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.lcr-artigos-search-input:focus {
    border-color: rgba(239, 215, 160, 0.4);
}

/* Grid arquivo — 2 colunas */
.lcr-artigos-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Load more */
.lcr-artigos-load-more {
    display: block;
    margin: 40px auto 0;
    font-family: var(--font-akrobat, "Akrobat", system-ui, sans-serif) !important;
    font-weight: 900;
    font-size: 1rem;
    color: var(--lcr-art-brand);
    background: transparent;
    border: 1.5px solid rgba(239, 215, 160, 0.4);
    border-radius: 12px;
    padding: 12px 36px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lcr-artigos-load-more:hover {
    background: var(--lcr-art-brand);
    color: #000;
    border-color: var(--lcr-art-brand);
}

.lcr-artigos-load-more:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ── Responsivo ── */
@media (max-width: 1024px) {
    .lcr-artigos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .lcr-artigos-grid,
    .lcr-artigos-archive-grid {
        grid-template-columns: 1fr;
    }

    .lcr-artigos-section {
        padding: 40px 16px 32px;
    }

    .lcr-artigos-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .lcr-artigos-search {
        margin-left: 0;
    }

    .lcr-artigos-search-input {
        width: 100%;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .lcr-article-card,
    .lcr-article-thumb img,
    .lcr-artigos-view-all,
    .lcr-artigos-load-more,
    .lcr-artigos-pill {
        transition: none;
    }

    .lcr-artigos-title {
        animation: none;
    }
}
