/*
 Theme Name:   GeneratePress Child - Arbitragem Otimizada
 Description:  Tema child otimizado para máxima performance em arbitragem
 Template:     generatepress
 Version:      1.0.1
*/

/* ===================================
   ELEMENTOS GERAIS
   =================================== */

.code-block-label {
    font-size: 12px;
    color: #a9a9a9;
}

.grecaptcha-badge { 
    visibility: hidden; 
}

#header {
    margin-bottom: 10px;
}

blockquote {
    font-size: 1em !important;
}

.entry-content:not(:first-child) {
    margin-top: 0;
}

/* ===================================
   BLOCO DE RESPOSTA RÁPIDA
   =================================== */

.bloco-resposta-rapida {
    background-color: #f5f5f5;
    padding: 30px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 16px;
}

.bloco-resposta-rapida h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* ===================================
   ESTILIZAÇÃO DOS POSTS/ENTRIES
   =================================== */

.entries:not([data-cards=cover]) .entry-button {
    margin-top: auto;
    font-weight: 700;
    color: #E7A900;
}

.entry-meta {
    font-size: 12px;
	margin-top: 15px;
}

.entry-header .gp-custom-category-section {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
}

.entry-header .gp-custom-category-section, 
.entry-header .entry-title, 
.entry-header .entry-meta {
    letter-spacing: 1px;
    text-align: left;
}

.entry-header .entry-title {
    margin: 15px 0 5px;
}

.single-featured-image {
    margin-top: 20px;
}

.separate-containers .featured-image {
    margin-top: 0;
}

/* Espaçamento para imagens em posts */
.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {
    margin-bottom: 20px !important;
}

/* ===================================
   HEADER E BANNER
   =================================== */

.page-header {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.site-header {
    background-color: #ffffff;
}

.site-branding-container .site-logo {
    margin-bottom: 0;
}

.inside-header {
    padding: 20px 40px;
}

.main-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* ===================================
   FORMULÁRIOS E WIDGETS
   =================================== */

.contact-form-wrapper {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.main-navigation .main-nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.inside-right-sidebar .widget {
    margin-bottom: 5px;
}

/* ESTILOS ESPECÍFICOS PARA WIDGETS DA SIDEBAR */
#right-sidebar .widget, 
#left-sidebar .widget {
    background-color: white;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-area.sidebar .widget-title,
#right-sidebar .widget-title,
#left-sidebar .widget-title {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.widget-area.sidebar .widget,
#right-sidebar .widget,
#left-sidebar .widget {
    padding: 20px;
}

.widget-area.sidebar .widget ul li,
#right-sidebar .widget ul li,
#left-sidebar .widget ul li {
    padding: 8px 0;
}

.widget-area.sidebar .recent-post-widget a,
#right-sidebar .recent-post-widget a,
#left-sidebar .recent-post-widget a {
    font-weight: 600;
}

.widget-area.sidebar .widget li,
#right-sidebar .widget li,
#left-sidebar .widget li {
    border-bottom: 1px solid #f9fafb;
    margin: 0;
}

.widget-area.sidebar .widget li:last-child,
#right-sidebar .widget li:last-child,
#left-sidebar .widget li:last-child {
    border-bottom: none;
}

/* Título automático para bloco Latest Posts - APENAS NA SIDEBAR */
.widget-area.sidebar .wp-block-latest-posts:before,
#right-sidebar .wp-block-latest-posts:before,
#left-sidebar .wp-block-latest-posts:before {
    content: "ARTIGOS RECENTES";
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    margin-top: 0;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
}

.widget-area.sidebar .recent-post-widget li,
#right-sidebar .recent-post-widget li,
#left-sidebar .recent-post-widget li { 
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.wp-block-social-links li:last-child {
    margin-right: 0;
}

.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor {
    padding: 0.5em;
}

.widget-area.sidebar ul.wp-block-categories li a,
.widget-area.sidebar .wp-block-archives li a,
.widget-area.sidebar .wp-block-latest-posts li a,
#right-sidebar ul.wp-block-categories li a,
#right-sidebar .wp-block-archives li a,
#right-sidebar .wp-block-latest-posts li a,
#left-sidebar ul.wp-block-categories li a,
#left-sidebar .wp-block-archives li a,
#left-sidebar .wp-block-latest-posts li a {
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.wp-block-tag-cloud a, a.wpf-tags {
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
}

.gp-custom-tag-section {
    margin-top: 20px;
}

a.wpf-tags {
    display: inline-block;
    margin: 2px;
    background-color: #E7A900;
    color: #000;
    font-weight: 600;
}

.widget-area.sidebar .widget li,
#right-sidebar .widget li,
#left-sidebar .widget li {
    border-bottom: 1px solid #f9fafb;
    margin: 0;
}

.widget-area.sidebar .widget li:last-child,
#right-sidebar .widget li:last-child,
#left-sidebar .widget li:last-child {
    border-bottom: none;
}

/* ===================================
   ESTILOS ESPECÍFICOS PARA FOOTER
   =================================== */

/* Footer section - resetando estilos da sidebar */
.site-footer .widget {
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

.site-footer .widget-title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    margin-bottom: 10px !important;
    color: inherit !important;
}

.site-footer .widget ul li {
    font-size: 15px;
    padding: 0 !important;
    border-bottom: none !important;
    margin: 0 !important;
}

.site-footer .widget ul li a {
    font-weight: inherit !important;
    color: inherit !important;
}

#footer-widgets .widget ul li {
    display: inline-block;
    margin: 0 10px;
}

.site-footer .footer-widgets-container .inner-padding {
    padding: 0 0 0 40px;
    align-items: center !important;
    text-align: center;
}

.footer-widgets-container {
    padding: 30px 30px 10px 30px;
}

@media (max-width: 768px) {
  #footer-widgets .widget ul li {
    display: block !important;
  }
}

#footer-widgets .widget ul li {
    padding: 10px !important;
}

/* ===================================
   PAGINAÇÃO
   =================================== */

.page-numbers {
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border-radius: 4px;
}

.page-numbers.current {
    background-color: #E7A900;
    color: #000;
}

.next.page-numbers, .prev.page-numbers {
    font-weight: 600;
}

.paging-navigation {
    text-align: center;
    margin: 40px 0;
}

/* ===================================
   BOTÕES CUSTOMIZADOS
   =================================== */

.custom-readmore-button {
    background-color: #E7A900;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
}

.custom-readmore-button:hover {
    background-color: #d4950a;
}

.read-more-section {
    text-align: center;
    margin: 20px 0;
}

/* ===================================
   HOMEPAGE SECTIONS
   =================================== */

.home .site-main .wp-block-group__inner-container,
.front-page .site-main .wp-block-group__inner-container {
    max-width: 100%;
    padding: 0;
}

.hero-section .inside-container,
.popular-posts-section .inside-container,
.categories-section .inside-container,
.latest-posts-section .inside-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.5em;
    letter-spacing: 0.02em;
    color: var(--contrast-3);
    margin-bottom: 15px;
}

.hero-title {
    font-size: 28px;
    line-height: 1.5em;
    letter-spacing: 0.02em;
    font-weight: 900;
    color: #000000;
    margin-bottom: 25px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--base);
    color: #000000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: rgba(0, 0, 0, 0.93);
    color: #ffffff;
}

.hero-button .arrow {
    margin-left: 0.5em;
}

.hero-image {
    text-align: center;
    padding: 0 20px;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Popular Posts Section */
.popular-posts-section {
    padding: 40px 40px 0px 40px;
}

.section-title {
    font-size: 29px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 30px;
}

.popular-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}



.secondary-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.featured-post {
    background-color: var(--base-3);
    padding: 0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.secondary-post,
.latest-post {
    background-color: var(--base-3);
    padding: 0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.secondary-post {
    margin-bottom: 0;
}

.featured-image,
.secondary-image,
.latest-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.latest-image {
    margin-bottom: 30px;
}

.post-meta {
    font-size: 14px;
    color: var(--contrast-3);
    margin-bottom: 5px;
}

.post-author {
    margin-left: 5px;
}

.featured-post .post-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3em;
    margin-bottom: 15px;
}

.secondary-post .post-title,
.latest-post .post-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3em;
    margin: 5px 0;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-excerpt {
    font-size: 16px;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-2);
    color: #000000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
}

.read-more-btn .arrow {
    margin-left: 0.5em;
}

/* Categories Section */
.categories-section {
    background-color: var(--highlight);
    padding: 30px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100%;
    background-color: #037346;
    color: #ffffff;
    text-decoration: none;
    font-size: 21px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #222222;
    color: #ffffff;
}

/* Cards de categoria estilo ribbon */
.categories-grid-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card-ribbon {
    background: white;
    padding: 25px 20px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    text-align: center;
    border: 1px solid #e5e5e5;
    position: relative;
    overflow: hidden;
}

.category-card-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ribbon-color, #6b46c1);
}

.category-card-ribbon[data-ribbon-color="#FF6B6B"]::before { background: #FF6B6B; }
.category-card-ribbon[data-ribbon-color="#4ECDC4"]::before { background: #4ECDC4; }
.category-card-ribbon[data-ribbon-color="#45B7D1"]::before { background: #45B7D1; }
.category-card-ribbon[data-ribbon-color="#96CEB4"]::before { background: #96CEB4; }
.category-card-ribbon[data-ribbon-color="#FECA57"]::before { background: #FECA57; }
.category-card-ribbon[data-ribbon-color="#FF9FF3"]::before { background: #FF9FF3; }
.category-card-ribbon[data-ribbon-color="#54A0FF"]::before { background: #54A0FF; }
.category-card-ribbon[data-ribbon-color="#5F27CD"]::before { background: #5F27CD; }

.category-card-ribbon .category-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card-ribbon .category-count {
    font-size: 13px;
    color: #666;
}

/* Latest Posts Section */
.latest-posts-section {
    background-color: var(--base-3);
    padding: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-2);
    color: #000000;
    padding: 5px 20px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
}

.view-all-btn .arrow {
    margin-left: 0.5em;
}

/* ===================================
   MEDIA QUERIES - RESPONSIVE
   =================================== */

@media only screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .popular-posts-grid {
        grid-template-columns: 1fr;
    }

    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .categories-grid-ribbon {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media only screen and (max-width: 768px) {
    /* Logo menor no mobile */
    .main-title {
        font-size: 18px;
    }

    /* Menu toggle com fundo branco */
    .menu-toggle {
        background-color: white !important;
    }

    /* Header padding */
    .inside-header {
        padding: 0 20px;
    }

    /* Padding da homepage no mobile */
    .home .site-main .wp-block-group__inner-container,
    .front-page .site-main .wp-block-group__inner-container {
        padding: 0 !important;
    }

    /* Padding para single posts e páginas (não homepage) */
    .single .one-container .site-content,
    .page .one-container .site-content {
        padding: 10px 20px 30px 20px !important;
    }

    /* Otimizações das seções da homepage */
    .hero-section {
        padding: 40px 0;
    }
    
    .popular-posts-section {
        padding: 30px 20px 20px;
    }
    
    .categories-section {
        padding: 20px 0;
    }
    
    .latest-posts-section {
        padding: 30px 0;
    }

    /* Publicações recentes - cards responsivos */
    .latest-posts-section .inside-container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    /* Cards das publicações recentes */
    .latest-posts-section article {
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* Imagens das publicações recentes */
    .latest-posts-section article img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
    }

    /* Containers internos menores */
    .hero-section .inside-container,
    .popular-posts-section .inside-container,
    .categories-section .inside-container,
    .latest-posts-section .inside-container {
        padding: 0 20px;
    }

    /* Títulos e subtítulos menores */
    .section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .popular-posts-grid,
    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .secondary-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .categories-grid-ribbon {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card-ribbon {
        padding: 20px 15px 15px;
    }

    .category-card-ribbon .category-name {
        font-size: 16px;
    }

    .featured-post .post-title {
        font-size: 24px;
    }

    .secondary-post .post-title,
    .latest-post .post-title {
        font-size: 18px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
    }

    .section-header .section-title {
        text-align: center;
    }
}