/* ========================================
   BLOG - ÚLTIMOS ARTIGOS (carregados automaticamente via WordPress REST API)
   Prefixo: blog_latest_
   ======================================== */

.blog_latest_area_modern {
    padding: 100px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.blog_latest_area_modern::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 64, 0, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -300px;
    right: -200px;
}

.blog_latest_container_modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Título da seção */
.blog_latest_title_modern {
    text-align: center;
    margin-bottom: 60px;
}

.blog_latest_tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 64, 0, 0.15), rgba(255, 140, 0, 0.15));
    border: 1px solid rgba(255, 64, 0, 0.4);
    color: #FF8C00;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.blog_latest_title_modern h2 {
    font-size: 42px;
    color: white;
    font-weight: 700;
    margin: 0 0 15px;
}

.blog_latest_title_modern h2 .highlight {
    background: linear-gradient(135deg, #FF4000, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog_latest_title_modern p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    max-width: 550px;
    margin: 0 auto;
}

/* Grid de posts */
.blog_latest_grid_modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Card de post */
.blog_latest_card_modern {
    background: #1a1a1a;
    border: 2px solid rgba(255, 64, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: blogLatestSlideUp 0.6s ease forwards;
}

.blog_latest_card_modern:nth-child(1) { animation-delay: 0.1s; }
.blog_latest_card_modern:nth-child(2) { animation-delay: 0.2s; }
.blog_latest_card_modern:nth-child(3) { animation-delay: 0.3s; }

@keyframes blogLatestSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog_latest_card_modern:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 64, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 64, 0, 0.2);
}

.blog_latest_card_img_wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.blog_latest_card_img_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog_latest_card_modern:hover .blog_latest_card_img_wrap img {
    transform: scale(1.06);
}

.blog_latest_card_badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 64, 0, 0.5);
    color: #FF8C00;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.blog_latest_card_body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog_latest_card_body h3 {
    color: white;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
}

.blog_latest_card_body p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.blog_latest_card_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF8C00;
    font-size: 14px;
    font-weight: 700;
    transition: gap 0.3s ease;
}

.blog_latest_card_modern:hover .blog_latest_card_link {
    gap: 12px;
}

/* Botão "Ver todos os artigos" */
.blog_latest_footer_modern {
    text-align: center;
    margin-top: 50px;
}

.blog_latest_btn_modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF4000, #FF8C00);
    color: white;
    padding: 16px 34px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 64, 0, 0.3);
    transition: all 0.3s ease;
}

.blog_latest_btn_modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 64, 0, 0.45);
    color: white;
}

/* Estado de carregamento (skeleton) */
.blog_latest_skeleton {
    background: #1a1a1a;
    border: 2px solid rgba(255, 64, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.blog_latest_skeleton .blog_latest_skeleton_img,
.blog_latest_skeleton .blog_latest_skeleton_line {
    background: linear-gradient(90deg, #1a1a1a 25%, #232323 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: blogLatestShimmer 1.5s ease-in-out infinite;
}

.blog_latest_skeleton .blog_latest_skeleton_img {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.blog_latest_skeleton .blog_latest_skeleton_body {
    padding: 24px;
}

.blog_latest_skeleton .blog_latest_skeleton_line {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.blog_latest_skeleton .blog_latest_skeleton_line.short {
    width: 60%;
}

@keyframes blogLatestShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Some a seção inteira se não houver posts (sem quebrar layout) */
.blog_latest_area_modern.blog_latest_hidden {
    display: none;
}

@media (max-width: 768px) {
    .blog_latest_area_modern {
        padding: 70px 0;
    }

    .blog_latest_title_modern h2 {
        font-size: 30px;
    }

    .blog_latest_grid_modern {
        grid-template-columns: 1fr;
    }
}
