/**
 * IP Graça - Estilos Customizados
 * Versão: 1.0.0
 * Autor: Manus AI
 */

/* ============================================
   ABAS VERDES - SEÇÃO DE NOTÍCIAS
   ============================================ */

/* Container das abas */
.tabs_wrapper {
    margin: 30px 0;
}

/* Navegação das abas */
.tabs_wrapper .ui-tabs-nav {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    gap: 10px !important;
}

/* Cada aba */
.tabs_wrapper .ui-tabs-nav li {
    background: #00A651 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tabs_wrapper .ui-tabs-nav li a {
    color: #ffffff !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

/* Aba ativa */
.tabs_wrapper .ui-tabs-nav li.ui-tabs-active {
    background: #008a42 !important;
}

.tabs_wrapper .ui-tabs-nav li:hover {
    background: #008a42 !important;
}

/* Conteúdo das abas */
.tabs_wrapper .tab_content {
    padding: 20px 0 !important;
}

/* ============================================
   PRÓXIMOS EVENTOS (Google Sheets)
   ============================================ */

/* Container principal */
.proximos-eventos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Card de evento individual */
.evento-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 166, 81, 0.2);
}

/* Data do evento */
.evento-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #00A651;
    color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    min-width: 70px;
    text-align: center;
}

.evento-data .dia {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    display: block;
}

.evento-data .mes {
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
}

/* Informações do evento */
.evento-info {
    flex: 1;
}

.evento-titulo {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.evento-horario,
.evento-responsavel,
.evento-local {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evento-horario .dashicons,
.evento-responsavel .dashicons,
.evento-local .dashicons {
    color: #00A651;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Mensagem quando não há eventos */
.sem-eventos {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* Mensagem de erro */
.ipgraca-erro {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.ipgraca-erro p {
    margin: 0;
}

/* ============================================
   GRID 2 COLUNAS - NOTÍCIAS
   ============================================ */

/* Grid para posts nas abas ÚLTIMAS e NOTÍCIAS */
.tabs_wrapper .tab_content .blog_wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Primeira aba (DESTAQUES) - 1 coluna */
.tabs_wrapper .tab_content:first-child .blog_wrapper {
    grid-template-columns: 1fr;
}

/* Post individual */
.tabs_wrapper .post-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tabs_wrapper .post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 166, 81, 0.15);
}

/* Imagem do post */
.tabs_wrapper .post-item .image_frame {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.tabs_wrapper .post-item:hover .image_frame img {
    transform: scale(1.05);
}

/* Conteúdo do post */
.tabs_wrapper .post-item .post-desc {
    padding: 20px;
}

.tabs_wrapper .post-item .post-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.tabs_wrapper .post-item .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tabs_wrapper .post-item .post-title a:hover {
    color: #00A651;
}

.tabs_wrapper .post-item .post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.tabs_wrapper .post-item .post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Link "Leia mais" */
.tabs_wrapper .post-item .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #00A651;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tabs_wrapper .post-item .read-more:hover {
    color: #008a42;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    /* Eventos */
    .proximos-eventos-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .evento-card {
        padding: 15px;
    }
    
    .evento-data {
        min-width: 60px;
        padding: 10px;
    }
    
    .evento-data .dia {
        font-size: 28px;
    }
    
    .evento-titulo {
        font-size: 16px;
    }
    
    /* Notícias */
    .tabs_wrapper .tab_content .blog_wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Abas */
    .tabs_wrapper .ui-tabs-nav {
        flex-wrap: wrap;
    }
    
    .tabs_wrapper .ui-tabs-nav li a {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Eventos */
    .evento-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .evento-data {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        padding: 10px 15px;
    }
    
    .evento-data .dia {
        font-size: 24px;
    }
    
    .evento-data .mes {
        font-size: 16px;
        margin-top: 0;
    }
    
    /* Abas */
    .tabs_wrapper .ui-tabs-nav {
        flex-direction: column;
    }
    
    .tabs_wrapper .ui-tabs-nav li {
        width: 100%;
    }
    
    .tabs_wrapper .ui-tabs-nav li a {
        text-align: center;
    }
}

/* ============================================
   SIDEBAR "ÚLTIMOS ARTIGOS"
   ============================================ */

.ultimos-artigos-sidebar {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.ultimos-artigos-sidebar h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.ultimos-artigos-sidebar .artigo-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ultimos-artigos-sidebar .artigo-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ultimos-artigos-sidebar .artigo-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.ultimos-artigos-sidebar .artigo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ultimos-artigos-sidebar .artigo-info {
    flex: 1;
}

.ultimos-artigos-sidebar .artigo-titulo {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.ultimos-artigos-sidebar .artigo-titulo a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ultimos-artigos-sidebar .artigo-titulo a:hover {
    color: #00A651;
}

.ultimos-artigos-sidebar .artigo-data {
    font-size: 12px;
    color: #999;
}

/* Botão "Ver todos os conteúdos" */
.ultimos-artigos-sidebar .ver-todos-btn {
    display: block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #00A651;
    color: #00A651;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ultimos-artigos-sidebar .ver-todos-btn:hover {
    background: #00A651;
    color: #ffffff;
}
