/*
Theme Name: Jornada Transformação Digital
Theme URI: https://softexsalvador.com.br
Author: Softex Salvador
Author URI: https://softexsalvador.com.br
Description: Tema profissional para evento de Transformação Digital com design moderno e responsivo
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jornada-digital
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --primary-blue: #0047AB;
    --secondary-blue: #1E90FF;
    --light-blue: #00D4FF;
    --dark-blue: #002855;
    --cyan: #00FFFF;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remover outline azul padrão de todos os elementos */
*:focus {
    outline: none;
}

/* Remover outline de botões e links */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

footer a{
 outline: none !important;   
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header sempre visível */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transform: translateY(0) !important;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(0, 40, 85, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* WordPress Core */
.wp-caption {
    max-width: 100%;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   MODAL DE BIO DOS PALESTRANTES
   ============================================ */

.modal-bio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-bio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-bio-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
}

.modal-bio-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px solid #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    padding: 0;
}

.modal-bio-close:hover {
    background: #e5e7eb;
    border-color: #6b7280;
    transform: scale(1.1);
}

.modal-bio-close svg {
    width: 24px;
    height: 24px;
    fill: #1f2937;
}

.modal-bio-close:hover svg {
    fill: #000000;
}

.modal-bio-body {
    padding: 32px;
}

.modal-bio-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-palestrante-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0047AB;
    flex-shrink: 0;
}

.modal-palestrante-info {
    flex: 1;
}

.modal-palestrante-nome {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.modal-palestrante-cargo {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.modal-palestrante-instituicao {
    font-size: 16px;
    color: #0047AB;
    font-weight: 600;
    margin: 0;
}

.modal-bio-text {
    margin-top: 20px;
}

.modal-bio-text h4 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.modal-bio-text div {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* Animações */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll suave no modal */
.modal-bio-content::-webkit-scrollbar {
    width: 8px;
}

.modal-bio-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-bio-content::-webkit-scrollbar-thumb {
    background: #0047AB;
    border-radius: 10px;
}

.modal-bio-content::-webkit-scrollbar-thumb:hover {
    background: #003080;
}

/* ============================================
   MENU DE NAVEGAÇÃO - SUBLINHADO AMARELO
   ============================================ */

/* Estilos do header e navegação */
header nav a {
    position: relative;
    transition: all 0.3s ease;
    outline: none !important;
}

/* Sublinhado amarelo ao passar mouse ou focar */
header nav a:hover::after,
header nav a:focus::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FDB714;
    animation: slideIn 0.3s ease;
}

/* Item de menu ativo (seção atual) */
header nav a.menu-ativo {
    color: #FDB714;
    font-weight: 600;
}

header nav a.menu-ativo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FDB714;
    box-shadow: 0 0 10px rgba(253, 183, 20, 0.5);
}

/* Animação do sublinhado */
@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Remover borda de foco de botões */
.btn-primary:focus,
.btn-secondary:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

/* Botão Inscreva-se mantém seu estilo especial */
.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

/* Remover outline de inputs no formulário */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0047AB;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

/* Links normais no conteúdo - sem borda azul */
a:focus {
    outline: none;
}

/* Botão Ver Bio - manter foco sutil */
button[onclick*="abrirModalBio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.2);
}

/* ============================================
   TIMELINE ELEGANTE - PROGRAMAÇÃO
   ============================================ */

.programacao-timeline {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Container de cada item */
.timeline-item {
    margin-bottom: 20px;
}

/* Conteúdo - estilo card Horas de Conteúdo */
.timeline-content {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.15);
    padding: 24px;
    border: 2px solid #bfdbfe;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 71, 171, 0.2);
    border-color: #60a5fa;
}

/* Badge de horário */
.timeline-badge {
    margin-bottom: 16px;
}

.timeline-badge > div {
    display: inline-block;
    background: linear-gradient(135deg, #0047AB 0%, #00D4FF 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
}

/* Período headers */
.periodo-header {
    text-align: center;
    margin: 50px 0 30px 0;
}

.periodo-header h3 {
    display: inline-block;
    background: linear-gradient(135deg, #0047AB 0%, #1E90FF 100%);
    color: white;
    padding: 14px 60px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 71, 171, 0.4);
    letter-spacing: 2px;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-badge > div {
        font-size: 13px;
        padding: 8px 18px;
    }
    
    .periodo-header h3 {
        font-size: 20px;
        padding: 12px 40px;
    }
}

/* ============================================
   MAPA BRASIL NO HERO
   ============================================ */

.hero-mapa-bg {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 870px;
    height: 821px;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.mapa-brasil-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 60px rgba(0, 212, 255, 0.7));
    }
}

@media (max-width: 768px) {
    .hero-mapa-bg {
        right: -20%;
        width: 70%;
        opacity: 0.1;
    }
}

/* ============================================
   ALINHA BOTÕES VER BIO
   ============================================ */

#palestrantes .grid > div {
    display: flex;
    flex-direction: column;
}

#palestrantes .group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

#palestrantes .group > button {
    margin-top: auto;
    width: auto;
}


/* Mobile - Logo maior e remover outline hamburguer */
@media (max-width: 768px) {
    /* Logo maior no mobile */
    .site-header .custom-logo,
    .site-header .custom-logo-link img {
        max-height: 60px !important;
        width: auto;
    }
    
    /* Remover COMPLETAMENTE outline do hamburguer */
    #mobile-menu-toggle {
        outline: none !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    #mobile-menu-toggle:focus,
    #mobile-menu-toggle:active,
    #mobile-menu-toggle:hover {
        outline: none !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Animação hamburguer para X */
#mobile-menu-toggle {
    position: relative;
    padding: 8px;
}

#mobile-menu-toggle svg {
    display: block;
}

#mobile-menu-toggle svg path {
    transition: all 0.3s ease;
    stroke: currentColor;
}

/* X quando aberto */
#mobile-menu-toggle.open svg path:nth-child(1) {
    d: path("M 4,4 L 20,20");
}

#mobile-menu-toggle.open svg path:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.open svg path:nth-child(3) {
    d: path("M 20,4 L 4,20");
}

/* Mobile - Ajustes hero e header */
@media (max-width: 768px) {
    /* Logo maior no mobile */
    .site-header .custom-logo,
    .site-header .custom-logo-link img {
        max-height: 60px !important;
        width: auto;
    }
    
    /* Espaçamento botão Garanta sua vaga */
    .hero-bg .container {
        padding-bottom: 80px;
    }
    
    .hero-bg .btn-primary {
        margin-bottom: 40px;
    }
    
    /* Remover COMPLETAMENTE outline do hamburguer */
    #mobile-menu-toggle {
        outline: none !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    #mobile-menu-toggle:focus,
    #mobile-menu-toggle:active,
    #mobile-menu-toggle:hover {
        outline: none !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Mobile - Mapa maior e centralizado */
@media (max-width: 768px) {
    .hero-mapa-bg {
        right: 50%;
        transform: translate(50%, -50%);
        width: 100%;
        height: 60%;
        opacity: 0.15;
    }
    
    .mapa-brasil-img {
        object-fit: contain;
        object-position: center;
    }
}

/* Mobile - Fontes menores mediador e painelistas */
@media (max-width: 768px) {
    .timeline-content .font-semibold {
        font-size: 14px !important;
    }
    
    .timeline-content .pl-4.border-l-4 p {
        font-size: 13px !important;
    }
}

/* Mobile - Modal bio com foto em cima */
@media (max-width: 768px) {
    .modal-bio-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .modal-palestrante-foto {
        width: 120px;
        height: 120px;
        margin-bottom: 16px;
    }
    
    .modal-palestrante-info {
        width: 100%;
    }
    
    .modal-bio-body {
        padding: 24px 20px;
    }
    
    .modal-palestrante-nome {
        font-size: 20px;
    }
    
    .modal-palestrante-cargo,
    .modal-palestrante-instituicao {
        font-size: 14px;
    }
}