/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* RESET E VARIÁVEIS CSS */

:root {
    --primary-dark: #343746;
    --primary-blue: #4682A0;
    --primary-purple: #464BA1;
    --background-light: #F0F0F0;
    --background-white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-gray: #666666;
    --font-family: "Poppins", sans-serif;
    --font-title: "Advent Pro", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.6;
}

/* NAVBAR/HEADER */

.navbar {
    background-color: var(--primary-dark);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-light);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: var(--font-title);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--primary-blue);
    background-color: rgba(70, 130, 160, 0.1);
}

/* HERO SECTION */

.hero {
    background: linear-gradient(135deg, #343746 0%, #2a2f3a 100%);
    color: var(--text-light);
    padding: 4rem 2rem;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7rem;
    flex-wrap: wrap;
    width: 100%;
}

.hero-image-wrapper {
    flex-shrink: 0;
}

.hero-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    /*border: 4px solid var(--primary-blue);*/
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-text {
    flex: 1;
    max-width: 600px;
    min-width: 250px;
}

.json-block {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #E8E8E8;
    border-left: 4px solid var(--primary-blue);
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #4682A0, #464BA1);
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* AULAS SECTION */

.aulas {
    background-color: var(--background-white);
    padding: 4rem 2rem;
}

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

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-family: var(--font-title);
}

.section-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    margin-top: 1rem;
    border-radius: 2px;
}

.aula-item {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #EEEEEE;
}

.aula-item:last-child {
    border-bottom: none;
}

.aula-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-family: var(--font-title);
}

.aula-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.aula-content-reverse {
    direction: rtl;
}

.aula-content-reverse>* {
    direction: ltr;
}

.aula-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.aula-video iframe {
    width: 100%;
    height: 100%;
}

.aula-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aula-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.btn-curso {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: fit-content;
}

.btn-curso:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 130, 160, 0.3);
}

/* SOBRE SECTION */

.sobre {
    background-color: #E8EEF2;
    padding: 4rem 2rem;
}

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

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.sobre-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--background-white);
    border-left: 4px solid var(--primary-blue);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.link-item:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
    transform: translateX(5px);
}

.link-title {
    font-weight: 600;
    display: block;
}

.link-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    display: block;
}

.link-item:hover .link-desc {
    opacity: 1;
}

/* TECNOLOGIAS SECTION */

.tecnologias {
    background-color: var(--background-white);
    padding: 4rem 2rem;
}

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

.tecnologias-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-family: var(--font-title);
}

.tecnologias-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.tech-card {
    border: 3px solid;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: var(--background-white);
    border-color: var(--primary-blue);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 180px;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    font-size: 3rem;
    color: var(--text-dark);
}

.tech-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    font-family: var(--font-title);
}

/* CONTATO SECTION */

.contato {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 4rem 2rem;
}

.contato-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contato-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contato-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: var(--font-title);
}

.contato-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* FOOTER */

.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.social-icons-rodape {
    background-color: var(--primary-blue);
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1024px) {
    .tecnologias-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media (max-width: 768px) {
    .navbar-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .json-block {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .aula-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .aula-content-reverse {
        direction: ltr;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contato-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tecnologias-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .tech-card {
        padding: 1.5rem 1rem;
        min-height: 150px;
        border-color: var(--primary-blue);

    }

    .tech-icon {
        font-size: 2.5rem;
    }

    .contato-title {
        font-size: 2rem;
    }
}

@media (max-width: 460px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .navbar-menu {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    .social-icons {
        max-width: 100%;
        gap: 0.75rem;
        margin-top: 0rem;
    }

    .social-icons-rodape {
        padding: 0;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .aula-title {
        font-size: 1.2rem;
    }

    .contato-title {
        font-size: 1.5rem;
    }

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

    .tech-card {
        padding: 1rem;
        min-height: 120px;
        border-color: var(--primary-blue);
    }

    .tech-icon {
        font-size: 2rem;
    }

    .tech-card h3 {
        font-size: 0.85rem;
    }
}

@media (max-width: 326px) {
    .navbar {
        padding: 0.5rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.2rem;
    }

    .logo-text {
        font-size: 0.7rem;
        font-weight: 400;
    }

    .navbar-menu {
        flex-direction: row;
        gap: 0.2rem;
        width: 100%;
        font-size: 0.5rem;
        font-weight: 400;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .tecnologias-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ========================================================================== */
/* ESTILOS ESPECÍFICOS DO GUIA.HTML */
/* ========================================================================== */

/* Layout Principal - Sem menu lateral */
.main-content {
    margin: 0 auto;
    /* Centraliza o conteúdo */
    flex: 1;
    background: var(--background-white);
    min-height: 100vh;
}

/* Estilo para o cabeçalho do guia, adaptado ao estilo do site principal */
.content-header {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 2rem;
    text-align: center;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: var(--font-title);
}

.h1link {
    color: var(--background-white);
}

.content-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Estilo para o corpo do conteúdo, centralizado como as seções do index.html */
.content-body {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo para as seções */
.section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #EEEEEE;
    scroll-margin-top: 70px;
    /* Ajuste para o navbar fixo */
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: var(--font-title);
    padding-bottom: 0;
    border-bottom: none;
}

.section-line-guia {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    border-radius: 2px;
    max-width: 1200px;
}

/* Estilo para a Navegação por Cards (Substituindo a lista de capítulos) */
.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 3px solid var(--primary-blue);
    border-radius: 12px;
    background-color: var(--background-white);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none !important;
    /* Remove sublinhado */
    color: var(--text-dark);
    min-height: 150px;
}

/* Ajuste do Hover para ser mais sutil (apenas sombra e cor do ícone/texto) */
.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* Sombra mais evidente */
    border-color: var(--primary-dark);
    /* Borda mais escura */
    color: var(--primary-dark);
    /* Texto mais escuro */
    background-color: var(--background-white);
    /* Mantém o fundo branco */
}

.nav-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.nav-card:hover .nav-card-icon {
    color: var(--primary-dark);
    /* Ícone mais escuro no hover */
}

.nav-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-title);
}

/* Estilo para o Acordeão (Tool Card) */
.tool-card {
    background: var(--background-white);
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    overflow: hidden;
}

.tool-card-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-light);
    border-left: 4px solid var(--primary-blue);
    transition: background-color 0.3s ease;
}

.tool-card-header:hover {
    background-color: #E8E8E8;
}

.tool-card-header.active {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-left-color: var(--primary-dark);
}

.tool-card-header.active h3 {
    color: var(--text-light);
}

.tool-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    font-family: var(--font-title);
    transition: color 0.3s ease;
}

.tool-card-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tool-card-header.active .tool-card-icon {
    transform: rotate(180deg);
    color: var(--text-light);
}

.tool-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding: 0 25px;
}

.tool-card-content.open {
    max-height: 2000px;
    /* Valor alto para garantir que abra */
    padding: 25px;
    border-top: 1px solid #ddd;
}

.tool-card-content h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 15px 0 5px 0;
    font-weight: 600;
}

.tool-card-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Estilo para as caixas de exemplo e dica, adaptado ao index.html */
.example-box,
.tip-box {
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
}

.example-box {
    background: #E8EEF2;
    /* Cor similar ao sobre do index.html */
    border-left: 4px solid var(--primary-blue);
}

.tip-box {
    background: #E8EEF2;
    border-left: 4px solid var(--primary-purple);
}

.example-box h4,
.tip-box h4 {
    color: var(--primary-dark);
    margin-top: 0;
}

.conclusion-box {
    background: var(--primary-blue);
    color: var(--text-light);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--primary-dark);
    text-align: center;
}

.conclusion-box h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.conclusion-box p {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Links e Destaques */
.content-body a {
    color: var(--primary-blue);
    text-decoration: none;
    /* Remove sublinhado padrão de links */
    transition: color 0.3s ease;
}

.content-body a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    /* Mantém o sublinhado apenas no hover de links internos */
}

/* Remove sublinhado de links dentro dos cards de navegação */
.nav-card a:hover {
    text-decoration: none;
}

.content-body strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.content-body em {
    color: var(--primary-blue);
    font-style: italic;
}

.section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.section ul li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Estilo para o botão "Voltar ao Topo" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(70, 130, 160, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 160, 0.4);
    background: var(--primary-dark);
}

/* Responsividade */
@media (max-width: 768px) {
    .content-header {
        padding: 2rem 1rem;
    }

    .content-header h1 {
        font-size: 2rem;
    }

    .content-body {
        padding: 2rem 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .nav-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}