/* Estatísticas MD - Frontend Styles */

.estatisticas-md-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.estatisticas-md-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.estatisticas-md-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: #007cba;
}

.estatisticas-md-item-first {
    border: 3px solid #ffc107;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.2);
    transform: scale(1.02);
}

.estatisticas-md-item-first::before {
    content: "🏆 1º LUGAR";
    position: absolute;
    top: 15px;
    right: 20px;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #212529;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estatisticas-md-thumbnail {
    flex-shrink: 0;
    margin-right: 15px;
}

.estatisticas-md-thumbnail img {
    display: block;
    border-radius: 4px;
    transition: opacity 0.2s ease;
    max-width: 80px;
    height: auto;
}

.estatisticas-md-item-first .estatisticas-md-thumbnail img {
    max-width: 120px;
}

.estatisticas-md-thumbnail:hover img {
    opacity: 0.9;
}

.estatisticas-md-content {
    flex: 1;
    min-width: 0;
}

.estatisticas-md-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.estatisticas-md-item-first .estatisticas-md-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.estatisticas-md-content h3 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.estatisticas-md-content h3 a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.estatisticas-md-excerpt {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
}

.estatisticas-md-item-first .estatisticas-md-excerpt {
    font-size: 15px;
    margin: 15px 0;
}

.estatisticas-md-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #6c757d;
    margin-top: 8px;
}

.estatisticas-md-item-first .estatisticas-md-meta {
    font-size: 14px;
    margin-top: 12px;
}

.estatisticas-md-meta span {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 3px;
    white-space: nowrap;
}

.estatisticas-md-author a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
}

.estatisticas-md-author a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.estatisticas-md-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

/* Responsividade */
@media (max-width: 768px) {
    .estatisticas-md-item {
        flex-direction: column;
        padding: 12px;
    }
    
    .estatisticas-md-item-first {
        padding: 16px;
    }
    
    .estatisticas-md-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
    
    .estatisticas-md-excerpt {
        font-size: 13px;
    }
    
    .estatisticas-md-item-first .estatisticas-md-excerpt {
        font-size: 14px;
    }
    
    .estatisticas-md-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .estatisticas-md-meta span {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .estatisticas-md-content h3 {
        font-size: 14px;
    }
    
    .estatisticas-md-item-first .estatisticas-md-content h3 {
        font-size: 16px;
    }
    
    .estatisticas-md-excerpt {
        font-size: 12px;
    }
    
    .estatisticas-md-item-first .estatisticas-md-excerpt {
        font-size: 13px;
    }
    
    .estatisticas-md-meta {
        font-size: 12px;
    }
}