/* ============================================
   CUSTOM CSS - MARCA PESSOAL
   Fabio Fogliarini Brolesi
   ============================================ */

/* CSS Variables - Paleta de Cores */
:root {
    /* Cores Primárias */
    --azul-confianca: #1E3A8A;
    --azul-tecnologia: #3B82F6;
    --cinza-neutro: #64748B;

    /* Cores Secundárias */
    --verde-crescimento: #10B981;
    --laranja-energia: #F59E0B;
    --roxo-inovacao: #8B5CF6;

    /* Cores de Apoio */
    --branco-puro: #FFFFFF;
    --cinza-claro: #F8FAFC;
    --cinza-escuro: #1E293B;
    --cinza-divisor: #E2E8F0;

    /* Tipografia */
    --font-principal: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-codigo: 'Source Code Pro', monospace;

    /* Espaçamentos (Grid 8px) */
    --space-micro-1: 4px;
    --space-micro-2: 8px;
    --space-small-1: 16px;
    --space-small-2: 24px;
    --space-medium-1: 32px;
    --space-medium-2: 48px;
    --space-large-1: 64px;
    --space-large-2: 96px;

    /* Border Radius */
    --radius-default: 8px;
    --radius-large: 12px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    font-size: 16px;
    line-height: 1.7;
    color: var(--cinza-escuro);
    background-color: var(--branco-puro);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.subtitle {
    font-family: var(--font-principal);
}

h1,
.title.is-1 {
    font-weight: 700;
    font-size: 36px;
    color: var(--azul-confianca);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h2,
.title.is-2 {
    font-weight: 600;
    font-size: 24px;
    color: var(--azul-confianca);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h3,
.title.is-3 {
    font-weight: 600;
    font-size: 20px;
    color: var(--cinza-escuro);
}

.text-secondary {
    font-size: 14px;
    color: var(--cinza-neutro);
}

.text-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--cinza-neutro);
}

/* Links */
a {
    color: var(--azul-tecnologia);
    transition: color var(--transition-fast);
    text-decoration: none;
}

a:hover {
    color: var(--azul-confianca);
}

.content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Code */
code,
pre {
    font-family: var(--font-codigo);
}

pre {
    background-color: var(--cinza-claro);
    border-radius: var(--radius-default);
    padding: var(--space-small-1);
    overflow-x: auto;
}

code {
    background-color: var(--cinza-claro);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Mobile Typography */
@media screen and (max-width: 768px) {

    h1,
    .title.is-1 {
        font-size: 28px;
    }

    h2,
    .title.is-2 {
        font-size: 20px;
    }

    h3,
    .title.is-3 {
        font-size: 18px;
    }

    .text-lead {
        font-size: 16px;
    }
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
    max-width: 1200px;
    padding-left: var(--space-small-2);
    padding-right: var(--space-small-2);
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .container {
        padding-left: var(--space-small-1);
        padding-right: var(--space-small-1);
    }
}

.section {
    padding: var(--space-large-1) var(--space-small-2);
}

.section-alt {
    background-color: var(--cinza-claro);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background-color: var(--branco-puro);
    box-shadow: 0 1px 0 var(--cinza-divisor);
    min-height: 72px;
}

.navbar-brand .navbar-item {
    font-weight: 700;
    font-size: 16px;
    color: var(--azul-confianca);
    gap: var(--space-micro-2);
}

.navbar-brand .navbar-item:hover {
    background-color: transparent;
    color: var(--azul-tecnologia);
}

.navbar-item {
    font-weight: 500;
    font-size: 15px;
    color: var(--cinza-escuro);
    transition: color var(--transition-fast);
}

.navbar-item:hover {
    background-color: transparent;
    color: var(--azul-tecnologia);
}

.navbar-burger span {
    background-color: var(--azul-confianca);
    height: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */

.button {
    font-family: var(--font-principal);
    font-weight: 500;
    border-radius: var(--radius-default);
    transition: all var(--transition-fast);
    border: none;
    height: auto;
    padding: 12px 24px;
}

.button.is-primary {
    background-color: var(--azul-confianca);
    color: var(--branco-puro);
}

.button.is-primary:hover {
    background-color: #162d6e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.button.is-link {
    background-color: var(--azul-tecnologia);
    color: var(--branco-puro);
}

.button.is-link:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.button.is-outlined {
    background-color: transparent;
    border: 2px solid var(--azul-confianca);
    color: var(--azul-confianca);
}

.button.is-outlined:hover {
    background-color: var(--azul-confianca);
    color: var(--branco-puro);
}

.button.is-ghost {
    background-color: transparent;
    color: var(--cinza-neutro);
    padding: 8px 12px;
}

.button.is-ghost:hover {
    background-color: var(--cinza-claro);
    color: var(--azul-confianca);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(160deg, var(--azul-confianca) 0%, #1a3278 50%, #162d6e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Geometric accent */
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-body {
    padding: var(--space-large-2) var(--space-small-2);
    position: relative;
    z-index: 1;
}

.hero .title {
    color: var(--branco-puro);
    font-size: 44px;
    font-weight: 700;
    margin-bottom: var(--space-micro-2);
    letter-spacing: -0.03em;
}

.hero .tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 26px;
    font-weight: 500;
    margin-bottom: var(--space-small-2);
    letter-spacing: -0.01em;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    font-weight: 400;
    max-width: 560px;
    line-height: 1.7;
}

@media screen and (max-width: 768px) {
    .hero .title {
        font-size: 32px;
    }

    .hero .tagline {
        font-size: 20px;
    }

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

    .hero-body {
        padding: var(--space-large-1) var(--space-small-1);
    }
}

.hero-body {
    background-image: URL('/theme/img/001.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--branco-puro);
    border-radius: var(--radius-large);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--cinza-divisor);
    transition: all var(--transition-normal);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-content {
    padding: var(--space-small-2);
}

/* ============================================
   CREDENTIALS LIST
   ============================================ */

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credentials-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cinza-divisor);
    font-size: 15px;
    color: var(--cinza-escuro);
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list .icon {
    color: var(--azul-tecnologia);
    flex-shrink: 0;
    margin-top: 2px;
}

.credentials-list a {
    color: var(--azul-tecnologia);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================
   EXPERTISE BOXES
   ============================================ */

.expertise-box {
    padding: var(--space-small-2);
    border-radius: var(--radius-large);
    background-color: var(--branco-puro);
    border: 1px solid var(--cinza-divisor);
    height: 100%;
}

.expertise-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-default);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-small-1);
}

.expertise-icon.is-primary {
    background-color: rgba(30, 58, 138, 0.08);
    color: var(--azul-confianca);
}

.expertise-icon.is-tech {
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--azul-tecnologia);
}

.expertise-icon.is-growth {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--verde-crescimento);
}

.expertise-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--azul-confianca);
    margin-bottom: var(--space-micro-2);
}

.expertise-text {
    color: var(--cinza-neutro);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   CONTACT LINKS
   ============================================ */

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--branco-puro);
    border: 1px solid var(--cinza-divisor);
    border-radius: var(--radius-default);
    color: var(--cinza-escuro);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    border-color: var(--azul-tecnologia);
    color: var(--azul-tecnologia);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.contact-link .icon {
    color: var(--cinza-neutro);
    transition: color var(--transition-fast);
}

.contact-link:hover .icon {
    color: var(--azul-tecnologia);
}

/* ============================================
   TAGS
   ============================================ */

.tag {
    font-family: var(--font-principal);
    font-weight: 500;
    font-size: 12px;
    border-radius: 6px;
    padding: 4px 10px;
    height: auto;
}

.tag.is-primary {
    background-color: rgba(30, 58, 138, 0.08);
    color: var(--azul-confianca);
}

.tag.is-link {
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--azul-tecnologia);
}

.tag.is-success {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--verde-crescimento);
}

.tag.is-purple {
    background-color: rgba(139, 92, 246, 0.08);
    color: var(--roxo-inovacao);
}

/* ============================================
   BLOCKQUOTE / HIGHLIGHT
   ============================================ */

.highlight-box {
    background-color: var(--cinza-claro);
    border-left: 3px solid var(--azul-tecnologia);
    padding: var(--space-small-2);
    border-radius: 0 var(--radius-default) var(--radius-default) 0;
    margin: var(--space-small-2) 0;
}

.highlight-box p {
    color: var(--cinza-escuro);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--cinza-escuro);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-medium-2) var(--space-small-2);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: var(--branco-puro);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.has-text-primary {
    color: var(--azul-confianca) !important;
}

.has-text-tech {
    color: var(--azul-tecnologia) !important;
}

.has-text-neutral {
    color: var(--cinza-neutro) !important;
}

.gap-1 {
    gap: var(--space-micro-1);
}

.gap-2 {
    gap: var(--space-micro-2);
}

.gap-3 {
    gap: var(--space-small-1);
}

.gap-4 {
    gap: var(--space-small-2);
}

hr {
    background-color: var(--cinza-divisor);
    height: 1px;
    margin: var(--space-medium-1) 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* ============================================
   CONTENT STYLES (for articles)
   ============================================ */

.content {
    color: var(--cinza-escuro);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: var(--azul-confianca);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.content h1 {
    font-size: 2em;
}

.content h2 {
    font-size: 1.5em;
}

.content h3 {
    font-size: 1.25em;
}

.content blockquote {
    background-color: var(--cinza-claro);
    border-left: 4px solid var(--azul-tecnologia);
    padding: var(--space-small-1) var(--space-small-2);
    margin: var(--space-small-2) 0;
    font-style: italic;
}

.content ul,
.content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-default);
    margin: var(--space-small-2) 0;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-small-2) 0;
}

.content table th,
.content table td {
    border: 1px solid var(--cinza-divisor);
    padding: var(--space-micro-2) var(--space-small-1);
    text-align: left;
}

.content table th {
    background-color: var(--cinza-claro);
    font-weight: 600;
    color: var(--azul-confianca);
}

/* ============================================
   NAVBAR DROPDOWN
   ============================================ */

.navbar-dropdown {
    border-top: 2px solid var(--azul-tecnologia);
}

.navbar-dropdown .navbar-item {
    padding: 0.5rem 1rem;
}

.navbar-dropdown .navbar-item:hover {
    background-color: var(--cinza-claro);
    color: var(--azul-tecnologia);
}

.navbar-link:not(.is-arrowless)::after {
    border-color: var(--azul-confianca);
}

.navbar-item.has-dropdown:hover .navbar-link {
    background-color: transparent;
    color: var(--azul-tecnologia);
}

figure {
    width: 33%;
    margin: 0 1rem 1rem 0;
    padding: 0 1.5rem 1rem;
    float: left;
    border: solid 1px var(--cinza-divisor);
    border-radius: var(--radius-default);
}

figcaption {
    text-align: center;
    font-size: small;
    color: var(--cinza-neutro);
    margin-top: 0.5rem;
}

sup {
    display: inline-block;
    min-width: 1rem;
    min-height: 1rem;
    text-align: center;
    font-weight: bolder;
}

sup::before {
    content: '[';
}

sup::after {
    content: ']';
}

.footnote-back {
    display: inline-block;
    min-width: 1rem;
    min-height: 1rem;
    text-align: center;
    margin-left: .5rem;
}

/* ============================================
   TABLE OF CONTENTS (TOC)
   ============================================ */

.toc-box {
    background: linear-gradient(135deg, var(--cinza-claro) 0%, var(--branco-puro) 100%);
    border: 2px solid var(--cinza-divisor);
    border-radius: var(--radius-large);
    padding: var(--space-small-1);
    margin: var(--space-small-2) 0;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08);
    transition: all var(--transition-normal);
}

.toc-box:hover {
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.12);
    border-color: var(--azul-tecnologia);
}

.toc-box button {
    width: 100%;
    background: var(--azul-tecnologia);
    color: var(--branco-puro);
    border: none;
    border-radius: var(--radius-default);
    padding: var(--space-micro-2) var(--space-small-1);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
    position: relative;
}

.toc-box button::before {
    content: '📖';
    margin-right: var(--space-micro-2);
    font-size: 20px;
}

.toc-box button::after {
    content: '▼';
    font-size: 12px;
    transition: transform var(--transition-normal);
}

.toc-box.collapsed button::after {
    transform: rotate(-90deg);
}

.toc-box button:hover {
    background: var(--azul-confianca);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

.toc-box button:active {
    transform: translateY(0);
}

.toc-box>div {
    margin-top: var(--space-small-1);
    padding: var(--space-small-1);
    background: var(--branco-puro);
    border-radius: var(--radius-default);
    border: 1px solid var(--cinza-divisor);
}

.toc-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-box li {
    padding: var(--space-micro-1) 0;
    position: relative;
}

.toc-box li::before {
    content: '→';
    color: var(--azul-tecnologia);
    margin-right: var(--space-micro-2);
    font-weight: bold;
}

.toc-box a {
    color: var(--cinza-escuro);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.toc-box a:hover {
    color: var(--azul-tecnologia);
    transform: translateX(4px);
    text-decoration: none;
}

/* Nested list items */
.toc-box ul ul {
    padding-left: var(--space-small-1);
    margin-top: var(--space-micro-1);
}

.toc-box ul ul li::before {
    content: '•';
    color: var(--cinza-neutro);
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .toc-box button {
        font-size: 16px;
        padding: var(--space-micro-2);
    }

    .toc-box button::before {
        font-size: 18px;
    }

    .toc-box a {
        font-size: 13px;
    }
}