/* ===========================================
   ARTIGOS INDEXER SHORTCODE - CSS v3
   Estilos para exibição inteligente de artigos no WordPress
   
   Autor: AE7 Tecnologia
   Data: Outubro 2025
   Versão: 3.0
   =========================================== */

/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
    /* Cores Principais */
    --ae7-white: #FFFFFF;
    --ae7-black: #0D0D0D;
    --ae7-text: #1C1C1E;
    --ae7-text-light: #6B7280;
    --ae7-muted: #5A5A5F;
    --ae7-bg-soft: #F8F9FA;
    --ae7-bg-gradient: linear-gradient(135deg, rgba(38, 94, 255, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    
    /* Cores de Acento */
    --ae7-accent-blue: #265EFF;
    --ae7-accent-green: #10B981;
    --ae7-accent-purple: #7A00FF;
    --ae7-accent-orange: #F97316;
    --ae7-accent-red: #EF4444;
    --ae7-accent-teal: #14B8A6;
    
    /* Gradientes */
    --ae7-gradient-primary: linear-gradient(90deg, var(--ae7-accent-blue), var(--ae7-accent-teal));
    --ae7-gradient-soft: linear-gradient(135deg, rgba(38, 94, 255, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    --ae7-gradient-purple: linear-gradient(90deg, var(--ae7-accent-blue), var(--ae7-accent-purple));
    --ae7-gradient-warm: linear-gradient(90deg, var(--ae7-accent-orange), var(--ae7-accent-red));
    
    /* Sombras */
    --ae7-shadow-sm: 0 2px 8px rgba(16,16,24,0.06);
    --ae7-shadow: 0 8px 24px rgba(16,16,24,0.08);
    --ae7-shadow-lg: 0 12px 32px rgba(16,16,24,0.12);
    --ae7-shadow-xl: 0 20px 48px rgba(16,16,24,0.16);
    
    /* Espaçamentos */
    --ae7-space-xs: 8px;
    --ae7-space-sm: 16px;
    --ae7-space-md: 24px;
    --ae7-space-lg: 32px;
    --ae7-space-xl: 48px;
    --ae7-space-2xl: 64px;
    
    /* Bordas */
    --ae7-radius-sm: 8px;
    --ae7-radius-md: 12px;
    --ae7-radius-lg: 16px;
    --ae7-radius-xl: 24px;
    --ae7-radius-full: 50px;
    
    /* Fontes */
    --ae7-font-display: 'Orbitron', sans-serif;
    --ae7-font-body: 'Inter', sans-serif;
}

.ae7-artigos-section {
    width: 100%;
    background: #FFFFFF;
    padding: var(--ae7-space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.ae7-artigos-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--ae7-space-md);
}

/* ===== HEADER DA SEÇÃO ===== */
.ae7-artigos-header {
    text-align: center;
    margin-bottom: var(--ae7-space-2xl);
    animation: fadeInDown 0.6s ease-out;
    background: var(--ae7-white);
    padding: var(--ae7-space-lg);
    border-radius: var(--ae7-radius-lg);
    box-shadow: var(--ae7-shadow-sm);
}

.ae7-artigos-title {
    font-family: var(--ae7-font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--ae7-space-md);
    background: var(--ae7-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ae7-space-sm);
    line-height: 1.2;
}

.ae7-artigos-title i {
    font-size: 52px;
    background: var(--ae7-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ae7-artigos-subtitle {
    font-size: 18px;
    color: var(--ae7-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== CONTROLES - BUSCA E VIEW ===== */
.ae7-artigos-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ae7-space-lg);
    margin-bottom: var(--ae7-space-2xl);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    background: var(--ae7-white);
    padding: var(--ae7-space-lg);
    border-radius: var(--ae7-radius-lg);
    box-shadow: var(--ae7-shadow-sm);
}

.ae7-search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.ae7-search-box i {
    position: absolute;
    left: var(--ae7-space-md);
    color: var(--ae7-accent-blue);
    pointer-events: none;
    font-size: 20px;
}

.ae7-search-input {
    width: 100%;
    padding: var(--ae7-space-md) var(--ae7-space-md) var(--ae7-space-md) 48px;
    border: 2px solid rgba(38, 94, 255, 0.2);
    border-radius: var(--ae7-radius-full);
    font-family: var(--ae7-font-body);
    font-size: 16px;
    background: var(--ae7-white);
    color: var(--ae7-text);
    transition: all 0.3s ease;
}

.ae7-search-input:focus {
    outline: none;
    border-color: var(--ae7-accent-blue);
    box-shadow: 0 0 0 4px rgba(38, 94, 255, 0.1);
}

.ae7-search-input::placeholder {
    color: var(--ae7-muted);
}

.ae7-view-toggle {
    display: flex;
    gap: var(--ae7-space-xs);
    background: var(--ae7-white);
    padding: 6px;
    border-radius: var(--ae7-radius-full);
    box-shadow: var(--ae7-shadow);
}

.ae7-view-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ae7-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

.ae7-view-btn:hover {
    color: var(--ae7-accent-blue);
}

.ae7-view-btn.active {
    background: var(--ae7-gradient-primary);
    color: var(--ae7-white);
}

/* ===== GRID DE ARTIGOS ===== */
.ae7-artigos-grid {
    display: flex;
    flex-direction: column;
    gap: var(--ae7-space-lg);
    margin-bottom: var(--ae7-space-2xl);
    animation: fadeIn 0.8s ease-out 0.2s both;
    background: var(--ae7-white);
    padding: var(--ae7-space-lg);
    border-radius: var(--ae7-radius-lg);
    box-shadow: var(--ae7-shadow-sm);
}

/* ===== CARDS DE ARTIGOS ===== */
.ae7-artigo-card {
    background: var(--ae7-white);
    border-radius: var(--ae7-radius-lg);
    overflow: hidden;
    box-shadow: var(--ae7-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
}

.ae7-artigo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ae7-shadow-xl);
}

.ae7-artigo-card.hidden {
    display: none;
}

/* ===== THUMBNAIL DO ARTIGO ===== */
.ae7-artigo-thumbnail {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    background: var(--ae7-bg-soft);
    flex-shrink: 0;
}

.ae7-artigo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ae7-artigo-card:hover .ae7-artigo-thumbnail img {
    transform: scale(1.08);
}

.ae7-artigo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(38, 94, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ae7-artigo-card:hover .ae7-artigo-overlay {
    opacity: 1;
}

.ae7-read-more {
    color: var(--ae7-white);
    font-weight: 600;
    font-size: 16px;
    font-family: var(--ae7-font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Thumbnail Placeholder */
.ae7-artigo-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ae7-gradient-soft);
}

.ae7-artigo-thumbnail-placeholder i {
    font-size: 80px;
    color: var(--ae7-accent-blue);
    opacity: 0.3;
}

/* ===== CONTEÚDO DO ARTIGO ===== */
.ae7-artigo-content {
    padding: var(--ae7-space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

/* Metadata */
.ae7-artigo-meta {
    display: flex;
    gap: var(--ae7-space-md);
    margin-bottom: var(--ae7-space-md);
    flex-wrap: wrap;
    font-size: 13px;
}

.ae7-meta-date,
.ae7-meta-reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ae7-muted);
}

.ae7-meta-date i,
.ae7-meta-reading-time i {
    font-size: 16px;
    color: var(--ae7-accent-blue);
}

/* Título do Artigo */
.ae7-artigo-title {
    font-family: var(--ae7-font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--ae7-space-md);
    color: var(--ae7-text);
    line-height: 1.3;
}

/* Excerpt */
.ae7-artigo-excerpt {
    color: var(--ae7-text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--ae7-space-md);
    flex: 1;
}

/* Categorias */
.ae7-artigo-categories {
    display: flex;
    gap: var(--ae7-space-xs);
    flex-wrap: wrap;
    margin-bottom: var(--ae7-space-md);
}

.ae7-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--ae7-radius-full);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ae7-badge-primary {
    background: rgba(38, 94, 255, 0.1);
    color: var(--ae7-accent-blue);
}

/* Rodapé do Card */
.ae7-artigo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--ae7-space-md);
    border-top: 1px solid rgba(38, 94, 255, 0.1);
    margin-top: auto;
}

.ae7-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ae7-muted);
}

.ae7-author i {
    font-size: 16px;
    color: var(--ae7-accent-blue);
}

/* ===== BOTÕES ===== */
.ae7-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--ae7-radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--ae7-font-body);
    font-size: 14px;
    white-space: nowrap;
}

.ae7-btn i {
    font-size: 16px;
}

.ae7-btn-primary {
    background: var(--ae7-gradient-primary);
    color: var(--ae7-white);
}

.ae7-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(38, 94, 255, 0.3);
}

/* ===== ESTADO VAZIO ===== */
.ae7-empty-state {
    text-align: center;
    padding: var(--ae7-space-2xl) var(--ae7-space-lg);
    background: var(--ae7-white);
    border-radius: var(--ae7-radius-lg);
    box-shadow: var(--ae7-shadow);
}

.ae7-empty-state i {
    font-size: 80px;
    color: var(--ae7-text-light);
    opacity: 0.3;
    margin-bottom: var(--ae7-space-lg);
}

.ae7-empty-state h3 {
    font-family: var(--ae7-font-display);
    font-size: 24px;
    color: var(--ae7-text);
    margin-bottom: var(--ae7-space-sm);
}

.ae7-empty-state p {
    color: var(--ae7-text-light);
    font-size: 16px;
}

/* ===== ESTATÍSTICAS ===== */
.ae7-artigos-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--ae7-space-lg);
    padding: var(--ae7-space-lg);
    background: var(--ae7-gradient-soft);
    border-radius: var(--ae7-radius-lg);
    animation: fadeInUp 0.8s ease-out 0.3s both;
    flex-wrap: wrap;
}

.ae7-stat-card {
    display: flex;
    align-items: center;
    gap: var(--ae7-space-md);
    background: var(--ae7-white);
    padding: var(--ae7-space-lg);
    border-radius: var(--ae7-radius-lg);
    box-shadow: var(--ae7-shadow);
    transition: all 0.3s ease;
}

.ae7-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ae7-shadow-lg);
}

.ae7-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ae7-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ae7-stat-icon i {
    font-size: 32px;
    color: var(--ae7-white);
}

.ae7-stat-content h4 {
    font-family: var(--ae7-font-display);
    font-size: 32px;
    font-weight: 700;
    background: var(--ae7-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

.ae7-stat-content p {
    font-size: 14px;
    color: var(--ae7-muted);
    margin: var(--ae7-space-xs) 0 0 0;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .ae7-artigos-grid {
        gap: var(--ae7-space-md);
    }
    
    .ae7-artigos-title {
        font-size: 40px;
    }
    
    .ae7-artigo-card {
        width: 900px;
    }
}

@media (max-width: 768px) {
    .ae7-artigos-section {
        padding: var(--ae7-space-xl) 0;
    }
    
    .ae7-artigos-container {
        padding: 0 var(--ae7-space-sm);
    }
    
    .ae7-artigos-title {
        font-size: 32px;
        flex-direction: column;
    }
    
    .ae7-artigos-title i {
        font-size: 40px;
    }
    
    .ae7-artigos-subtitle {
        font-size: 16px;
    }
    
    .ae7-artigos-controls {
        flex-direction: column;
        gap: var(--ae7-space-md);
    }
    
    .ae7-search-box {
        min-width: 100%;
    }
    
    .ae7-artigos-grid {
        gap: var(--ae7-space-md);
    }
    
    .ae7-artigo-card {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .ae7-artigo-thumbnail {
        width: 100%;
        height: 160px;
    }
    
    .ae7-artigos-stats {
        flex-direction: column;
        gap: var(--ae7-space-md);
    }
}

@media (max-width: 480px) {
    .ae7-artigos-section {
        padding: var(--ae7-space-lg) 0;
    }
    
    .ae7-artigos-container {
        padding: 0 var(--ae7-space-sm);
    }
    
    .ae7-artigos-title {
        font-size: 24px;
        gap: 8px;
    }
    
    .ae7-artigos-title i {
        font-size: 32px;
    }
    
    .ae7-artigos-subtitle {
        font-size: 14px;
    }
    
    .ae7-artigos-controls {
        gap: var(--ae7-space-sm);
    }
    
    .ae7-search-input {
        font-size: 14px;
        padding: 12px 12px 12px 40px;
    }
    
    .ae7-view-btn {
        width: 40px;
        height: 40px;
    }
    
    .ae7-artigos-grid {
        gap: var(--ae7-space-md);
    }
    
    .ae7-artigo-card {
        width: 100%;
    }
    
    .ae7-artigo-content {
        padding: var(--ae7-space-md);
    }
    
    .ae7-artigo-title {
        font-size: 18px;
        min-height: 50px;
    }
    
    .ae7-artigo-excerpt {
        font-size: 13px;
    }
    
    .ae7-stat-card {
        flex-direction: column;
        text-align: center;
        padding: var(--ae7-space-md);
    }
    
    .ae7-stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .ae7-stat-icon i {
        font-size: 24px;
    }
    
    .ae7-stat-content h4 {
        font-size: 28px;
    }
    
    .ae7-stat-content p {
        font-size: 12px;
    }
}

/* ===== MODO ESCURO (PREPARADO) ===== */
@media (prefers-color-scheme: dark) {
    /* Preparado para implementação futura */
}

/* ===== IMPRESSÃO ===== */
@media print {
    .ae7-artigos-controls {
        display: none;
    }
    
    .ae7-artigo-card:hover {
        transform: none;
        box-shadow: var(--ae7-shadow);
    }
    
    .ae7-btn {
        display: none;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--ae7-accent-blue);
    outline-offset: 2px;
}

/* ===== FIM DO CSS ===== */
