/* 
 * Layout Moderno com Formas Orgânicas
 * Design inspirado em layouts contemporâneos
 */

/* Formas orgânicas (blobs) - sem animações excessivas */
.organic-shape {
    position: relative;
    overflow: hidden;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.organic-shape.teal {
    background: linear-gradient(135deg, #20bf6b, #26de81);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.organic-shape.blue {
    background: linear-gradient(135deg, #4834d4, #686de0);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
}

.organic-shape.purple {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%;
}

/* Layout principal */
.modern-home-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Seção Hero */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

/* Card visual esquerdo */
.visual-card {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.visual-card .organic-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.device-stack {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.device-stack svg {
    width: 40px;
    height: 40px;
    color: white;
}

.refresh-icon {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.refresh-icon svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* Post em destaque */
.featured-post-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-tag {
    display: inline-block;
    background: linear-gradient(135deg, #4834d4, #686de0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.post-date {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.featured-excerpt {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4834d4;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #686de0;
    text-decoration: none;
    transform: translateX(4px);
}

/* Seção de conteúdo médio */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.content-card {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.content-visual {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.content-visual .organic-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.content-visual img {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 50px auto;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.content-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.content-icon svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.content-text {
    flex: 1;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 1rem;
}

.content-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.content-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Barra de filtros */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-tag.active {
    background: linear-gradient(135deg, #20bf6b, #26de81);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 191, 107, 0.3);
}

.filter-tag:not(.active) {
    background: #f8f9fa;
    color: #666;
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

.filter-tag:not(.active):hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.solution-highlight {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-top: 2rem;
}

/* Grid de posts - SEM BURACOS */
.posts-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 2rem 0 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
}

.grid-post-card {
    position: relative !important;
    height: 320px !important; /* ALTURA FIXA */
    border-radius: 20px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

.grid-post-card:hover {
    transform: translateY(-8px);
}

.grid-post-card .organic-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.grid-post-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.grid-post-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.grid-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.grid-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Tags de marca */
.brand-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-tag img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Responsividade */
@media (max-width: 1200px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .posts-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
    
    .grid-post-card {
        height: 300px !important; /* ALTURA FIXA TABLET */
    }
}

@media (max-width: 768px) {
    .modern-home-layout {
        padding: 1rem;
    }
    
    .visual-card {
        height: 300px;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .posts-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .grid-post-card {
        height: 280px !important; /* ALTURA FIXA MOBILE */
    }
    
    .filter-bar {
        justify-content: center;
    }
    
    .filter-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Animações suaves apenas no hover */
.grid-post-card {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.grid-post-card:hover {
    transform: translateY(-4px);
}

/* Animação para filtros */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* Estilos para páginas internas */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.page-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.page-content {
    margin-bottom: 4rem;
}

.content-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Estilos para posts individuais */
.post-header {
    margin-bottom: 3rem;
}

.post-header-content {
    background: linear-gradient(135deg, rgba(130, 36, 227, 0.1), rgba(155, 89, 182, 0.1));
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Formas dinâmicas para o header content */
.post-header-content::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(130, 36, 227, 0.15), transparent);
    border-radius: 50%;
    z-index: 1;
}

.post-header-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(155, 89, 182, 0.12), transparent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
}

/* Cores dinâmicas baseadas em categorias */
.post-header-content.category-customer-experience {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
}

.post-header-content.category-customer-experience::before {
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15), transparent);
}

.post-header-content.category-customer-experience::after {
    background: linear-gradient(45deg, rgba(155, 89, 182, 0.12), transparent);
}

.post-header-content.category-nps {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
}

.post-header-content.category-nps::before {
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15), transparent);
}

.post-header-content.category-nps::after {
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.12), transparent);
}

.post-header-content.category-ambiente-organizacional {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(46, 204, 113, 0.1));
}

.post-header-content.category-ambiente-organizacional::before {
    background: radial-gradient(circle, rgba(230, 126, 34, 0.15), transparent);
}

.post-header-content.category-ambiente-organizacional::after {
    background: linear-gradient(45deg, rgba(46, 204, 113, 0.12), transparent);
}

.post-header-content.category-customer-success {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(230, 126, 34, 0.1));
}

.post-header-content.category-customer-success::before {
    background: radial-gradient(circle, rgba(155, 89, 182, 0.15), transparent);
}

.post-header-content.category-customer-success::after {
    background: linear-gradient(45deg, rgba(230, 126, 34, 0.12), transparent);
}

/* Cores dinâmicas para outras categorias */
.post-header-content.category-pesquisa-de-satisfacao {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(52, 152, 219, 0.1));
}

.post-header-content.category-pesquisa-de-satisfacao::before {
    background: radial-gradient(circle, rgba(231, 76, 60, 0.15), transparent);
}

.post-header-content.category-pesquisa-de-satisfacao::after {
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.12), transparent);
}

.post-header-content.category-atendimento {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(155, 89, 182, 0.1));
}

.post-header-content.category-atendimento::before {
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15), transparent);
}

.post-header-content.category-atendimento::after {
    background: linear-gradient(45deg, rgba(155, 89, 182, 0.12), transparent);
}

.post-header-content.category-clima-organizacional {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(231, 76, 60, 0.1));
}

.post-header-content.category-clima-organizacional::before {
    background: radial-gradient(circle, rgba(230, 126, 34, 0.15), transparent);
}

.post-header-content.category-clima-organizacional::after {
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.12), transparent);
}

.post-header-content.category-avaliacao-360 {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(46, 204, 113, 0.1));
}

.post-header-content.category-avaliacao-360::before {
    background: radial-gradient(circle, rgba(155, 89, 182, 0.15), transparent);
}

.post-header-content.category-avaliacao-360::after {
    background: linear-gradient(45deg, rgba(46, 204, 113, 0.12), transparent);
}

/* Cores aleatórias para categorias não especificadas */
.post-header-content:not([class*="category-"]) {
    background: linear-gradient(135deg, rgba(130, 36, 227, 0.1), rgba(155, 89, 182, 0.1));
    animation: colorShift 8s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% { 
        background: linear-gradient(135deg, rgba(130, 36, 227, 0.1), rgba(155, 89, 182, 0.1)); 
    }
    25% { 
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1)); 
    }
    50% { 
        background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(231, 76, 60, 0.1)); 
    }
    75% { 
        background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(130, 36, 227, 0.1)); 
    }
}

/* Garantir que o conteúdo fique acima das formas */
.post-header-content .post-meta,
.post-header-content .post-title,
.post-header-content .post-excerpt {
    position: relative;
    z-index: 2;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-category {
    background: linear-gradient(135deg, #4834d4, #686de0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-date {
    color: #666;
    font-size: 0.875rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-author .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author .author-name {
    font-weight: 600;
    color: #333;
}

.post-featured-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content {
    margin-bottom: 4rem;
}

.post-content .content-wrapper {
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content .content-wrapper h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
}

.post-content .content-wrapper h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
}

.post-content .content-wrapper p {
    margin-bottom: 1.5rem;
}

.post-content .content-wrapper a {
    color: #6366f1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content .content-wrapper a:hover {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Estilos para arquivos */
.archive-header {
    background: linear-gradient(135deg, #20bf6b 0%, #26de81 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Paginação */
.pagination-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-decoration: none;
}

/* Responsividade para páginas internas */
@media (max-width: 768px) {
    .page-header,
    .post-header-content,
    .archive-header {
        padding: 2rem;
    }
    
    .page-title,
    .post-title,
    .archive-title {
        font-size: 2rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .post-featured-image img {
        height: 250px;
    }
}
