/* ============================================
   BLOG - UI
   Cards, artigos e elementos visuais
   ============================================ */

/* POST CARDS */
.st-blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.st-blog-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.st-blog-post-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.st-blog-post-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.st-blog-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.st-blog-post-card:hover .st-blog-post-cover img {
    transform: scale(1.05);
}

.st-blog-post-content {
    padding: 20px;
}

.st-blog-post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.st-blog-post-category {
    padding: 4px 10px;
    background: var(--accent);
    color: var(--bg-void);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.st-blog-post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.st-blog-post-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.st-blog-post-excerpt {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.st-blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

.st-blog-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.st-blog-post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.st-blog-post-author span {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.st-blog-post-stats {
    display: flex;
    gap: 12px;
}

.st-blog-post-views {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ARTICLE */
.st-blog-article {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.st-blog-article-cover {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.st-blog-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-blog-article-header {
    padding: 24px 20px;
}

.st-blog-article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.st-blog-article-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-bottom: 16px;
}

.st-blog-article-excerpt {
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

.st-blog-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.st-blog-article-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.st-blog-article-author-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.st-blog-article-author-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.st-blog-article-content {
    padding: 24px 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.st-blog-article-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 24px 0 16px;
}

.st-blog-article-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 20px 0 12px;
}

.st-blog-article-content p {
    margin-bottom: 16px;
}

.st-blog-article-content ul,
.st-blog-article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.st-blog-article-content li {
    margin-bottom: 8px;
}

.st-blog-article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.st-blog-article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.st-blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    border-top: 1px solid var(--border-default);
}

.st-blog-tag {
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* RESPONSIVO */
@media (max-width: 380px) {
    .st-blog-post-cover { height: 160px; }
    .st-blog-article-cover { height: 200px; }
    .st-blog-post-content { padding: 16px; }
    .st-blog-article-header { padding: 20px 16px; }
    .st-blog-article-content { padding: 20px 16px; }
}

@media (min-width: 600px) {
    .st-blog-post-cover { height: 240px; }
    .st-blog-article-cover { height: 300px; }
}