/* css/style.css */

/* Cores e Fontes Globais */
:root {
    --camtsn-green-primary: #012700; /* Verde Escuro Principal */
    --camtsn-green-light: #D6E8B8;   /* Verde Claro (para navbar e detalhes) */
    --camtsn-white: #FFFFFF;         /* Branco Puro */
    --camtsn-text-dark: #333333;     /* Cinza Escuro para texto padrão */
    --camtsn-text-light: #f8f9fa;    /* Cinza Muito Claro para fundo */
    --camtsn-footer-text-color: #FAFAF0; /* Quase branco para texto de copyright no rodapé */
    --font-poppins: 'Poppins', sans-serif; /* Fonte Poppins */

    /* Cores adicionais para melhor contraste no chat, se necessário */
    --camtsn-chat-text-darker: #001a00; /* Um verde ainda mais escuro para garantir legibilidade no chat */
}

/* Base Body Styles */
body {
    font-family: var(--font-poppins);
    background-color: var(--camtsn-text-light);
    color: var(--camtsn-text-dark);
    line-height: 1.6;
    scroll-behavior: smooth; /* Rolagem suave para âncoras */
}

/* Navbar Glassmorphism */
.glassmorphism-navbar {
    background-color: var(--camtsn-green-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out;
    z-index: 1030; /* Garante que a navbar esteja acima de quase tudo */
}

.glassmorphism-navbar .navbar-brand img {
    max-height: 40px;
    width: auto;
}

.glassmorphism-navbar .text-brand-name {
    color: var(--camtsn-green-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.glassmorphism-navbar .nav-link {
    color: var(--camtsn-green-primary) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
    border-radius: 5px; /* Para o efeito de fundo ao hover/ativo */
}

.glassmorphism-navbar .nav-link:hover,
.glassmorphism-navbar .nav-link.active {
    color: var(--camtsn-white) !important;
    background-color: var(--camtsn-green-primary);
}

.glassmorphism-navbar .navbar-toggler {
    border-color: rgba(1, 39, 0, 0.3);
}

.glassmorphism-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%281, 39, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Botões Customizados na Navbar e Geral */
.btn-outline-light-custom {
    color: var(--camtsn-green-primary);
    border-color: var(--camtsn-green-primary);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.btn-outline-light-custom:hover {
    color: var(--camtsn-white);
    background-color: var(--camtsn-green-primary);
    border-color: var(--camtsn-green-primary);
}

.btn-primary-custom {
    background-color: var(--camtsn-green-primary);
    border-color: var(--camtsn-green-primary);
    color: var(--camtsn-white);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.btn-primary-custom:hover {
    background-color: #004a00; /* Um tom mais escuro de verde */
    border-color: #004a00;
    color: var(--camtsn-white);
}

/* Seções de Conteúdo */
section {
    padding: 80px 0;
    /* margin-top: 56px; Removido, o hero-section ajusta-se automaticamente com o min-height */
}

/* Hero Section com TsParticles */
.hero-section {
    background-image: url('../images/hero-bg.jpg'); /* Imagem de fundo principal */
    background-color: var(--camtsn-green-primary); /* Fallback se a imagem não carregar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--camtsn-white);
    min-height: 70vh; /* Altura mínima da seção */
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Importante para conter as partículas e a sobreposição */
    padding-top: 80px; /* Padding para o conteúdo se a navbar for transparente */
    padding-bottom: 80px;
}

/* Camada de sobreposição escura para melhorar contraste do texto */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Sobreposição escura (50% de opacidade) */
    z-index: 1; /* Abaixo das partículas e do conteúdo */
}

/* Estilo para o container do TsParticles */
#tsparticles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2; /* Acima da imagem de fundo e da sobreposição escura */
    background-color: transparent; /* O TsParticles é transparente para mostrar o background abaixo */
}

/* Garante que o conteúdo do hero fique acima das partículas */
.hero-content-wrapper {
    position: relative;
    z-index: 3; /* Acima do TsParticles */
    /* Padding já está no hero-section, pode ser ajustado aqui se necessário */
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Seção "Quem Somos" - Logo */
.about-summary-logo {
    width: 50%; /* Mantém 50% da largura do contêiner */
    height: auto;
    max-width: 300px; /* Limita o tamanho máximo do logo em telas grandes */
    margin-top: 1rem;
}


/* Cards das Ligas Acadêmicas */
.league-card {
    background-color: var(--camtsn-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.league-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.league-card .card-body {
    padding: 25px;
}

.league-card .card-title {
    color: var(--camtsn-green-primary);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.league-card .card-text {
    color: var(--camtsn-text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Moderno */
footer {
    background-color: var(--camtsn-green-primary) !important;
    color: var(--camtsn-white) !important;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: var(--camtsn-green-light) !important;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-about-text {
    color: var(--camtsn-footer-text-color) !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

footer a {
    color: var(--camtsn-footer-text-color) !important;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: var(--camtsn-white) !important;
    text-decoration: underline !important;
}

footer address {
    color: var(--camtsn-footer-text-color);
    font-style: normal;
    font-size: 0.95rem;
}

footer address p {
    margin-bottom: 0.5rem;
    color: var(--camtsn-footer-text-color);
}

.social-icons a {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--camtsn-green-light) !important;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--camtsn-white) !important;
    transform: translateY(-3px);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 8px;
}

.footer-bottom-text {
    font-size: 0.85rem;
    color: var(--camtsn-footer-text-color);
    padding-top: 1rem;
}

.footer-copyright-text {
    color: var(--camtsn-footer-text-color) !important;
}

.footer-partner-link {
    color: var(--camtsn-green-light) !important;
    font-weight: 600;
}

.footer-partner-link:hover {
    color: var(--camtsn-white) !important;
    text-decoration: underline !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li a {
    font-size: 0.95rem;
    color: var(--camtsn-footer-text-color) !important;
}

.footer-links li a i {
    font-size: 0.8em;
    vertical-align: middle;
    width: 20px;
    text-align: center;
}

/* Assistente Virtual - Botão Flutuante */
.float-assistant-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(1, 39, 0, 0.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Assistente Virtual - Modal */
#assistantModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#assistantModal .modal-header {
    border-bottom: none;
    padding: 1.5rem;
    color: var(--camtsn-white);
}

#assistantModal .modal-header .btn-close-white {
    filter: invert(1);
}

#assistantModal .modal-body {
    padding: 1.5rem;
    background-color: var(--camtsn-text-light); /* Fundo do corpo do modal (cinza muito claro) */
}

.chat-message {
    max-width: 85%;
    clear: both;
    margin-bottom: 15px;
    font-weight: 400; /* Peso da fonte padrão para mensagens */
}

/* Mensagem do Bot - Ajuste de Contraste */
.bot-message {
    background-color: var(--camtsn-green-light); /* Fundo verde claro */
    color: var(--camtsn-chat-text-darker);       /* Texto verde ainda mais escuro para melhor legibilidade */
    float: left;
    border-radius: 15px 15px 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    font-weight: 500; /* Texto do bot um pouco mais pesado */
}

/* Links dentro das mensagens do Bot */
.bot-message ul li a {
    color: var(--camtsn-chat-text-darker); /* Links também com o verde mais escuro */
    text-decoration: underline;
    font-weight: 600; /* Links mais fortes */
    transition: color 0.2s ease;
}

.bot-message ul li a:hover {
    color: var(--camtsn-green-primary); /* Ao hover, volta para o verde primário, um pouco mais claro */
}


.user-message {
    background-color: var(--camtsn-green-primary);
    color: var(--camtsn-white);
    float: right;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.chat-message ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

#user-input {
    border-radius: 20px 0 0 20px;
    border-color: var(--camtsn-green-primary);
}

#send-btn {
    border-radius: 0 20px 20px 0;
}


/* Geral */
.section-title {
    color: var(--camtsn-green-primary);
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60%;
    height: 4px;
    background-color: var(--camtsn-green-light);
    border-radius: 2px;
}

/* Responsividade */
@media (max-width: 767.98px) {
    /* Navbar */
    .glassmorphism-navbar .text-brand-name {
        display: none !important;
    }
    .glassmorphism-navbar .navbar-brand {
        padding-left: 0.5rem;
    }
    .glassmorphism-navbar .navbar-brand img {
        max-height: 35px;
    }

    /* Hero Section */
    .hero-section {
        min-height: 60vh; /* Ajuste para telas menores */
        padding-top: 60px; /* Reduz padding em mobile */
        padding-bottom: 60px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }

    /* Assistente Virtual */
    .float-assistant-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }

    /* Footer - Ajustes para mobile */
    .footer-logo {
        max-width: 150px;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-bottom-text {
        font-size: 0.75rem;
    }
    .text-center.text-md-start {
        text-align: center !important;
    }
    .social-icons {
        text-align: center;
    }
    .footer-heading {
        text-align: center;
    }
    .footer-links, .footer-contact-info {
        text-align: center;
        padding-left: 0;
    }
    .footer-links li {
        display: inline-block;
        margin: 0 8px;
        margin-bottom: 0;
    }
    .footer-links li a {
        padding: 0.2rem 0;
    }
    .footer-links li a i {
        display: none;
    }
    .footer-contact-info p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        justify-content: center;
    }
    .map-responsive {
        margin-top: 2rem;
    }
}

@media (min-width: 768px) {
    section {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}