/* DIGYO ECOSYSTEM - PORTAL DE NOTÍCIAS (MAGAZINE STYLE) 
    Foco: Experiência de Leitura e Grid de Alta Performance.
*/

:root {
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-portal: #f8fafc;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- 1. PORTAL GRID (blog.php) --- */
.portal-noticias {
    background-color: var(--bg-portal);
    min-height: 100vh;
}

.card-noticia-portal {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-noticia-portal:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-noticia-portal img {
    transition: transform 0.6s ease;
}

.card-noticia-portal:hover img {
    transform: scale(1.05);
}

.categoria-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 2. PÁGINA DE LEITURA (post.php) --- */
.post-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
}

/* --- 3. TIPOGRAFIA DE LEITURA (Foco em UX) --- */
.post-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #334155;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2, .post-content h3 {
    color: var(--text-main);
    margin: 40px 0 20px;
    font-weight: 800;
}

.post-content blockquote {
    border-left: 5px solid;
    padding-left: 25px;
    font-style: italic;
    font-size: 1.4rem;
    margin: 40px 0;
    color: var(--text-muted);
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 30px 0;
}

/* --- 4. RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .post-title { font-size: 2rem; }
    .post-container { padding: 20px; }
    .post-content { font-size: 1.1rem; }
}

/* --- 5. POSTS RELACIONADOS (post.php) --- */
.related-posts-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e2e8f0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid #f1f5f9;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.related-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-info {
    padding: 20px;
}

.related-info h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
}