/*
Theme Name: Tema Tokugawa Alpha Drone V35 (Design Flecha Global + Logo Grande)
Author: Tokugawa
Version: 35.0
*/

/* ==========================================================================
   1. GERAL
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }
body { background: #fff; color: #333; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ==========================================================================
   2. HEADER (TOPO)
   ========================================================================== */
.top-header { padding: 20px 0; background: #fff; position: relative; z-index: 200; }

.header-grid { 
    display: grid; 
    grid-template-columns: auto 1fr; /* Logo na esquerda, Widget ocupa o resto */
    align-items: center; 
    gap: 30px; /* Mais espaço entre logo e banner */
}

/* --- LOGO GRANDE (Area Laranja) --- */
.logo a { font-size: 32px; font-weight: 900; color: #004a99; text-transform: uppercase; line-height: 1; }

/* Aumentei bastante aqui para ocupar o espaço que você pediu */
.custom-logo-link img { 
    max-height: 180px; /* Antes era 90px, dobrei o tamanho */
    width: auto; 
    display: block; 
}

/* --- WIDGET TOPO (Area Vermelha) --- */
.header-widget-container {
    justify-self: end; /* Joga pra direita */
    width: 100%;
    max-width: 728px; /* Tamanho padrão de banner grande */
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   3. ESTILO "FLECHA" GLOBAL (Area Verde)
   ========================================================================== */
/*
   Aqui aplicamos o estilo trapezoidal/flecha para:
   - O Widget do Topo (.header-ad-area)
   - Os Widgets Laterais (.widget-box, .ad-widget-box)
*/

.header-ad-area, 
.widget-box, 
.ad-widget-box,
.widget-ad-lateral {
    border: 2px solid #eee; /* Moldura cinza */
    padding: 25px 10px 10px 10px; /* Padding no topo para o título não cobrir o conteúdo */
    background: #fff;
    position: relative;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Garante tamanho mínimo */
}

/* O Título "PUBLICIDADE" com estilo Flecha */
.header-ad-area::before, 
.widget-box::before, 
.ad-widget-box::before,
.widget-ad-lateral::before {
    content: "PUBLICIDADE"; 
    
    /* Design Visual */
    background: #004a99; /* Azul Escuro */
    color: #fff;         /* Texto Branco */
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Posicionamento */
    display: inline-block;
    padding: 5px 30px 5px 15px; /* Mais espaço na direita p/ o corte */
    position: absolute;
    top: -15px; /* Sobe para ficar na linha da borda */
    left: -2px; /* Encosta na esquerda */
    
    /* O CORTE FLECHA (Trapezio) */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    
    /* A Borda Vermelha embaixo */
    border-bottom: 3px solid #ff0000;
    
    z-index: 5;
}

/* ==========================================================================
   4. MENUS
   ========================================================================== */
.blue-menu-desktop { background: #004a99; color: white; border-bottom: 4px solid #002a5c; position: relative; z-index: 100; }
.main-nav-container { display: flex; justify-content: flex-start; align-items: center; }

.hamburger-icon-blue {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 30px; height: 22px; background: none; border: none; cursor: pointer;
    padding: 0; z-index: 201; margin-right: 20px;
}
.hamburger-icon-blue span { display: block; width: 100%; height: 3px; background: white; border-radius: 2px; }

.desktop-links-wrapper ul { list-style: none; display: flex; padding: 0; margin: 0; }
.desktop-links-wrapper a { display: block; padding: 12px 15px; font-weight: bold; font-size: 14px; text-transform: uppercase; color: white; }
.desktop-links-wrapper a:hover { background: #003366; }

/* ==========================================================================
   5. MENU OVERLAY
   ========================================================================== */
.overlay-menu-container { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background: #004a99; z-index: 99999; transition: left 0.4s ease-in-out; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.5); color: white; padding: 60px 20px 20px 20px; }
@media (min-width: 769px) { .overlay-menu-container { width: 400px; left: -450px; } }
.overlay-menu-container.aberto { left: 0; }
.overlay-content { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }

.search-form { display: flex; gap: 5px; }
.search-field { flex-grow: 1; padding: 12px; border-radius: 4px; border: none; font-size: 16px; }
.search-submit { background: #002a5c; color: white; border: none; padding: 0 15px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: bold; }

.accordion-toggle { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 15px; text-align: center; font-size: 18px; font-weight: bold; cursor: pointer; border-radius: 4px; }
.accordion-content { display: none; background: rgba(0,0,0,0.2); border-radius: 4px; margin-top: 5px; padding: 10px; }
.accordion-content.aberto { display: block; }
.accordion-content ul { list-style: none; padding: 0; text-align: center; }
.accordion-content a { display: block; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 16px; color: #ddd; }
.overlay-quick-links a { display: block; font-size: 20px; font-weight: bold; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
.overlay-footer { text-align: center; margin-top: 20px; color: #ccc; }
.social-icons-menu { display: flex; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); color: white; padding: 10px 15px; border-radius: 4px; font-weight: bold; font-size: 14px; transition: 0.2s; }
.close-menu-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; color: white; font-size: 40px; cursor: pointer; line-height: 1; }
.overlay-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 10px 0; }

/* ==========================================================================
   6. SLIDER & DESTAQUES
   ========================================================================== */
.hero-grid { display: grid; grid-template-columns: 65% 33%; gap: 2%; margin-bottom: 30px; }

.main-slider-container { position: relative; height: 460px; overflow: hidden; background: #000; border-radius: 4px; }
.slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1; }
.slide-item.active { opacity: 1; z-index: 2; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }
.info-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 30px; color: white; z-index: 3; }
.info-overlay h1 { font-size: 24px; text-shadow: 2px 2px 4px #000; }

/* Coluna Lateral */
.coluna-destaques { 
    display: flex; flex-direction: column; 
    height: auto; min-height: 460px; 
    gap: 15px;
}
.card-destaque-lateral { display: block; height: 105px; border-bottom: 1px solid #eee; background: #fff; border-left: 4px solid transparent; }
.card-destaque-lateral:hover { border-left: 4px solid #004a99; background: #f9f9f9; }
.link-wrapper { display: flex; align-items: center; height: 100%; padding: 5px; gap: 10px; }
.thumb { width: 120px; height: 85px; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.info h3 { font-size: 14px; color: #004a99; font-weight: bold; margin: 0; }

/* ==========================================================================
   7. OUTROS ELEMENTOS (Ticker, Cards, Footer)
   ========================================================================== */
.ticker-bar { background: #333; color: white; height: 40px; border-bottom: 4px solid #004a99; overflow: hidden; }
.flex-ticker { display: flex; align-items: stretch; height: 100%; }
.ticker-label { background: #000; padding: 0 20px; display: flex; align-items: center; font-weight: 900; font-size: 13px; position: relative; }
.ticker-label::after { content: ''; position: absolute; right: -10px; top: 0; border-top: 40px solid #000; border-right: 10px solid transparent; }
.ticker-content { flex-grow: 1; padding-left: 20px; display: flex; align-items: center; }
.ticker-content ul { list-style: none; width: 100%; }
.ticker-content li { display: none; font-size: 13px; font-weight: bold; color: white; }
.ticker-content li.active { display: block; }

.bottom-layout { display: grid; grid-template-columns: 7fr 3fr; gap: 30px; margin-bottom: 50px; }
.titulo-sessao { border-bottom: 3px solid #004a99; margin-bottom: 20px; }
.titulo-sessao h3 { background: #004a99; color: white; padding: 6px 15px; display: inline-block; text-transform: uppercase; font-size: 15px; margin: 0; }
.news-grid-2cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-padrao h3 { font-size: 16px; margin: 10px 0 5px 0; color: #004a99; font-weight: bold; line-height: 1.3; }
.card-padrao img { height: 180px; width: 100%; object-fit: cover; border-radius: 4px; }
.card-padrao .data { font-size: 11px; color: #999; }

.single-layout, .category-layout { display: grid; grid-template-columns: 68% 30%; gap: 2%; align-items: start; }
.single-header h1 { font-size: 34px; color: #333; margin: 15px 0; line-height: 1.1; font-weight: bold; }
.texto-noticia p { margin-bottom: 20px; font-size: 18px; line-height: 1.7; color: #222; }
.texto-noticia img { max-width: 100%; height: auto; margin: 20px auto; display: block; border-radius: 4px; }
.share-bar { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.btn-share { padding: 8px 15px; color: white; font-size: 12px; font-weight: bold; border-radius: 4px; }
.btn-share.zap { background: #25D366; } .btn-share.face { background: #1877F2; } .btn-share.twitter { background: #000; } .btn-share.print { background: #666; }
.action-buttons-container { display: flex; justify-content: flex-end; gap: 10px; margin: 30px 0; flex-wrap: wrap; border-top: 1px solid #eee; padding-top: 20px; }
.btn-action { padding: 8px 12px; font-size: 11px; font-weight: bold; color: white; border-radius: 3px; text-transform: uppercase; }
.btn-action.pauta { background: #007bff; } .btn-action.esquecimento { background: #ffc107; color: #333; } .btn-action.erro { background: #dc3545; }
.horizontal-card { display: flex; gap: 20px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; }
.card-thumb { width: 35%; flex-shrink: 0; } .card-thumb img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; } .card-info { width: 65%; }

.tokugawa-gallery-wrapper { position: relative; margin: 30px 0; height: 400px; background: #000; border-radius: 4px; overflow: hidden; }
.tokugawa-gallery-wrapper .wp-block-gallery, .gallery { margin: 0 !important; padding: 0 !important; display: block !important; width: 100% !important; height: 100% !important; }
.tokugawa-gallery-wrapper .wp-block-image, .gallery-item { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.5s ease; z-index: 1; margin: 0 !important; display: flex !important; align-items: center; justify-content: center; }
.tokugawa-gallery-wrapper .active-gallery-item { opacity: 1 !important; z-index: 2; }
.tokugawa-gallery-wrapper img { width: 100% !important; height: 100% !important; object-fit: contain; background: #000; }
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; font-size: 30px; padding: 20px 15px; cursor: pointer; z-index: 10; } .gallery-prev { left: 0; } .gallery-next { right: 0; }
.site-footer { background: #111; color: #aaa; padding: 20px; text-align: center; margin-top: 40px; border-top: 5px solid #004a99 !important; }

/* ==========================================================================
   8. RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .header-grid { grid-template-columns: 1fr; text-align: center; }
    .header-widget-container { display: none !important; }
    
    .logo a { font-size: 24px; margin-bottom: 5px; display: block; }
    
    /* Logo menor no mobile para não quebrar */
    .custom-logo-link img { max-height: 80px; margin: 0 auto; }
    
    .desktop-links-wrapper { display: none; }
    .main-nav-container { justify-content: flex-start; }
    .blue-menu-desktop { padding: 10px 0; }
    
    .hero-grid, .bottom-layout, .single-layout, .category-layout, .news-grid-2cols { grid-template-columns: 1fr; }
    .coluna-destaques { height: auto; margin-top: 20px; gap: 10px; }
    .main-slider-container { height: 260px; }
    .horizontal-card { flex-direction: column; } .card-thumb, .card-info { width: 100% !important; }
    .tokugawa-gallery-wrapper { height: 250px; }
    .texto-noticia img { max-height: 280px !important; object-fit: cover; }
    .action-buttons-container { justify-content: center; }
}