/* LEDS Blog Section Styles */

/* Seção Principal */
.leds-blog-section {
    display: flex;
    padding: 96px 0;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    align-self: stretch;
    background: var(--color-surface-base-white, #FFF);
}

.leds-blog-section .leds-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    align-self: stretch;
    max-width: 1312px;
    margin: 0 auto;
    padding: 0 20px;
    width: 1312px !important;
}
/* Cabeçalho da Seção */
.leds-blog-section .blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 32px;
}

.leds-blog-section .header-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.leds-blog-section .section-subtitle {
    color: var(--color-text-brand-primary, #0099D6);
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-lg, 18px);
    font-style: normal;
    font-weight: var(--font-weight-regular, 400);
    line-height: 124%; /* 22.32px */
    margin: 0;
}

.leds-blog-section .section-title {
    color: var(--color-text-base-major, #121926);
    font-family: 'Mont', sans-serif;
    font-size: var(--font-size-6xl, 56px);
    font-style: normal;
    font-weight: var(--font-weight-bold, 700);
    line-height: 100%; /* 56px */
    margin: 0;
}

/* Botão do Blog */
.leds-blog-section .blog-button {
    display: flex;
    padding: var(--spacing-xl, 16px) var(--spacing-3xl, 24px);
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md, 8px);
    border-radius: var(--border-radius-full, 9999px);
    background: var(--color-surface-brand-primary-medium, #00AEEF);
    color: var(--color-text-base-major, #121926);
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-lg, 18px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.leds-blog-section .blog-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.leds-blog-section .blog-button:hover::before {
    left: 100%;
}

.leds-blog-section .blog-button:hover {
    background: var(--color-surface-brand-primary-dark, #0099D6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.3);
}

.leds-blog-section .blog-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

/* Grid de Posts */
.leds-blog-section .blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

/* Post Individual */
.leds-blog-section .blog-post {
    position: relative;
    width: 421px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
}


.leds-blog-section .blog-post:hover::before {
    opacity: 1;
}

.leds-blog-section .blog-post:hover {
    transform: translateY(-8px);
}

.leds-blog-section .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.leds-blog-section .blog-post:hover .post-image img {
    transform: scale(1.05);
}

.leds-blog-section .post-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 48px;
    transition: all 0.3s ease;
}

/* Conteúdo do Post */
.leds-blog-section .post-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 24px 24px;
    z-index: 2;
    transition: all 0.3s ease;
}


.leds-blog-section .post-title {
    color: var(--color-text-base-major, #121926);
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-2xl, 24px);
    font-style: normal;
    font-weight: var(--font-weight-semi-bold, 600);
    line-height: 124%; /* 29.76px */
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.leds-blog-section .post-description {
    color: var(--color-text-base-minor, #697586);
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-md, 16px);
    font-style: normal;
    font-weight: var(--font-weight-regular, 400);
    line-height: 124%; /* 19.84px */
    margin: 0;
    transition: color 0.3s ease;
}

/* Link do Post */
.leds-blog-section .post-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    text-decoration: none;
}

.leds-blog-section .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leds-blog-section .blog-header {
    animation: fadeInUp 0.6s ease-out;
}

.leds-blog-section .blog-posts-grid {
    animation: fadeInUp 0.8s ease-out;
}

.leds-blog-section .blog-post {
    animation: fadeInUp 1s ease-out;
}

.leds-blog-section .blog-post:nth-child(2) {
    animation-delay: 0.1s;
}

.leds-blog-section .blog-post:nth-child(3) {
    animation-delay: 0.2s;
}

/* Responsividade - Desktop Grande */
@media (max-width: 1400px) {
    .leds-blog-section .blog-posts-grid {
        gap: 24px;
    }
    
    .leds-blog-section .blog-post {
        width: 100%;
        max-width: 421px;
    }
}

/* Responsividade - Desktop */
@media (max-width: 1312px) {
    .leds-blog-section .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .leds-blog-section .blog-post {
        width: 100%;
        max-width: 421px;
    }
}

/* Responsividade - Tablet */
@media (max-width: 768px) {
    .leds-blog-section {
        padding: 64px 32px !important;
    }
    
    .leds-blog-section .leds-container {
        gap: 48px;
        max-width: 100% !important;
    }
    
    .leds-blog-section .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .leds-blog-section .section-title {
        font-size: 40px;
    }
    
    .leds-blog-section .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .leds-blog-section .blog-post {
        height: auto !important;
        width: 100%;
    }
    
    .leds-blog-section .post-content {
        padding: 32px 20px 20px;
    }
    
    .leds-blog-section .post-title {
        font-size: 20px;
    }
    
    .leds-blog-section .post-description {
        font-size: 14px;
    }
}

/* Responsividade - Mobile */
@media (max-width: 480px) {
    .leds-blog-section {
        padding: 48px 32px !important;
    }
    
    .leds-blog-section .leds-container {
        gap: 32px;
        padding: 0 16px;
        max-width: 100% !important;
    }
    
    .leds-blog-section .section-subtitle {
        font-size: 16px;
    }
    
    .leds-blog-section .section-title {
        font-size: 32px;
    }
    
    .leds-blog-section .blog-button {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .leds-blog-section .blog-post {
        height: auto !important;
    }
    
    .leds-blog-section .post-content {
        padding: 24px 16px 16px;
    }
    
    .leds-blog-section .post-title {
        font-size: 18px;
    }
    
    .leds-blog-section .post-description {
        font-size: 13px;
    }
}

/* Melhorias de acessibilidade */
.leds-blog-section .blog-post:focus-within {
    outline: 2px solid var(--color-border-brand-primary, #0099D6);
    outline-offset: 2px;
}

.leds-blog-section .blog-button:focus {
    outline: 2px solid var(--color-border-brand-primary, #0099D6);
    outline-offset: 2px;
}

/* Estados de loading */
.leds-blog-section .post-image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leds-blog-section .post-image img[loading="lazy"].loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .leds-blog-section {
        background: white !important;
        color: black !important;
    }
    
    .leds-blog-section .blog-button {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
    
    .leds-blog-section .blog-post {
        break-inside: avoid;
        box-shadow: none !important;
    }
    
    .leds-blog-section .post-content {
        background: white !important;
        color: black !important;
    }
}
