/* Tema do site sobre o Bootstrap 5.3: papel claro, tinta escura e um único verde de destaque. */
:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --ink: #1d2125;
  --muted: #5d6166;
  --rule: #ddd8cc;
  --accent: #006b9e;
  --accent-dark: #004e78;
  --accent-soft: #e1f3fa;
  --warn: #9a5b13;
  --warn-soft: #f6ead9;
  /* Fonte do próprio sistema (Segoe UI no Windows, San Francisco no Mac, Roboto no Android). */
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--sans);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--rule);
  --bs-link-color: var(--accent);
  --bs-link-color-rgb: 0, 107, 158;
  --bs-link-hover-color: var(--accent-dark);
  --bs-link-hover-color-rgb: 23, 70, 54;
  --bs-primary: var(--accent);
  --bs-primary-rgb: 0, 107, 158;
  --bs-border-radius: .375rem;
  --bs-focus-ring-color: rgba(0, 107, 158, .25);
}

body { font-size: 1rem; line-height: 1.65; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.25; }
h3 { font-size: 1.15rem; }
.text-muted, .text-body-secondary { color: var(--muted) !important; }
::selection { background: var(--accent-soft); }

.btn-primary {
  --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent);
}
.btn-outline-primary {
  --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark);
}
.form-control, .form-select { background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--accent); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.btn-check:checked + .btn-outline-primary { background: var(--accent); color: #fff; }

/* Navegação */
.admin-strip { background: var(--ink); color: #e9e7e1; font-size: .85rem; }
.admin-strip a { color: #fff; }
.site-nav { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-nav .navbar-brand { font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.site-nav .nav-link { color: var(--ink); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--accent); }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 0 .25rem; }
.lang-switch a.active { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Seções */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-alt { background: var(--paper-2); }
.section-lead { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.hero h1 { max-width: 16em; }
.hero .lead { max-width: 36rem; color: var(--muted); }
.hero-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.hero-list li { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.hero-list strong { display: block; }
.hero-list span { color: var(--muted); font-size: .92rem; }

/* Cards */
.card { --bs-card-border-color: var(--rule); --bs-card-bg: #fff; }
/* Posts vêm do InstaPilot em formato de feed (em pé): mostra a imagem inteira, sem corte. */
.post-card img { height: auto; }
.project-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .card-title a { color: var(--ink); text-decoration: none; }
.post-card .card-title a::after { content: ''; position: absolute; inset: 0; }
.post-card .post-admin { position: relative; z-index: 2; }
.post-card:hover .card-title a { color: var(--accent); }
.service h3 { margin-bottom: .4rem; }
.service p { color: var(--muted); margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .75rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 600; font-size: .9rem; }
.steps p { color: var(--muted); margin: 0; }

/* Notícias (home, blog e página da notícia): coluna PT e coluna EN */
.news-heading { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.news-grid { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.news-grid li { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.news-grid .news-title { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.news-grid .news-title:hover { color: var(--accent); text-decoration: underline; }
.news-grid small { color: var(--muted); font-size: .82rem; }
.news-grid small a { color: var(--muted); }
.news-grid small a:hover { color: var(--accent); }
.news-grid-compact .news-title { font-weight: 500; }
.news-tags { display: flex; gap: .35rem; }
.news-lang, .news-topic { padding: .1rem .45rem; border-radius: 1rem; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.news-lang { border: 1px solid var(--rule); color: var(--muted); }
.news-topic { background: var(--paper-2); color: var(--muted); }
.news-topic-dotnet { background: #ece6f6; color: #512bd4; }
.news-topic-azure { background: #e3eefa; color: #0b5cad; }
.news-topic-databricks { background: #fbe7e2; color: #b2361b; }
.news-topic-ai { background: var(--accent-soft); color: var(--accent-dark); }

/* Artigo */
.article { max-width: 44rem; }
.article p { font-size: 1.08rem; }
.article .cover { display: block; width: 100%; max-width: 34rem; height: auto; margin-inline: auto; border-radius: var(--bs-border-radius); }
/* Carrossel das imagens do post (Insta4Experts), uma por vez, arrastando para o lado. */
.article .post-gallery { display: flex; gap: 1rem; max-width: 34rem; margin-inline: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.article .post-gallery img { flex: 0 0 100%; width: 100%; height: auto; scroll-snap-align: center; border-radius: var(--bs-border-radius); }
.article .post-gallery-hint { max-width: 34rem; margin: .5rem auto 0; color: var(--muted); font-size: .9rem; text-align: center; }
.article-meta { color: var(--muted); font-size: .92rem; }

.example-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); text-decoration: none; }
.example-link:hover { color: var(--accent); }
.example-link small { color: var(--muted); }

.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); }

/* Painel */
.admin-page { background: var(--paper); min-height: 100vh; }
.admin-nav { background: var(--ink); }
.admin-nav .navbar-brand { color: #fff; }
.admin-nav a, .admin-nav .btn-link { color: #e9e7e1; }
.nav-tabs { --bs-nav-tabs-link-active-bg: var(--paper); --bs-nav-tabs-link-active-border-color: var(--rule) var(--rule) var(--paper); --bs-nav-tabs-border-color: var(--rule); }
.nav-tabs .nav-link { color: var(--muted); }
.nav-tabs .nav-link.active { color: var(--ink); font-weight: 600; }
.table { --bs-table-bg: transparent; }
.table th { color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.thumb { width: 96px; height: 60px; object-fit: cover; border-radius: .25rem; }
.stat { border-left: 3px solid var(--accent); padding-left: .9rem; }
.stat strong { display: block; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.badge-status { font-weight: 500; }
.badge-todo { background: #e8e6e1; color: var(--ink); }
.badge-doing { background: var(--accent); color: #fff; }
.badge-review { background: var(--warn-soft); color: var(--warn); }
.badge-done { background: var(--accent-soft); color: var(--accent-dark); }
.badge-archived { background: #e8e6e1; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.timeline time { color: var(--muted); }
.login-card { max-width: 400px; }

/* Redes sociais */
.social-link { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--rule); border-radius: 50%; color: var(--muted); background: #fff; transition: color .15s, border-color .15s; }
.social-link:hover, .social-link:focus-visible { color: var(--ink); border-color: var(--ink); }
.social-youtube:hover, .social-youtube:focus-visible { color: #ff0000; border-color: #ff0000; }

/* Aviso de cookies */
.cookie-banner { position: fixed; z-index: 1080; left: 1rem; right: 1rem; bottom: 1rem; max-width: 46rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--bs-border-radius); box-shadow: 0 .5rem 1.5rem rgba(29, 33, 37, .12); font-size: .92rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 18rem; }

/* Relatório e mapa de calor (painel) */
.report-bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; }
.report-bars span { flex: 1; min-width: 2px; background: var(--accent); border-radius: 2px 2px 0 0; opacity: .85; }
.report-bars span:hover { opacity: 1; }
.report-meter { height: .4rem; background: var(--paper-2); border-radius: 1rem; overflow: hidden; }
.report-meter span { display: block; height: 100%; background: var(--accent); }
.heatmap-stage { position: relative; margin-inline: auto; background: #fff; border: 1px solid var(--rule); transform-origin: top left; }
.heatmap-stage iframe { display: block; border: 0; width: 100%; pointer-events: none; }
.heatmap-stage canvas { position: absolute; inset: 0; pointer-events: none; }


/* Identidade pessoal: software, integração e cloud. */
.site-nav .navbar-brand { display:flex; align-items:center; gap:.65rem; font-size:1.05rem; }
.navbar-brand small { display:block; color:var(--muted); font-size:.7rem; font-weight:400; margin-top:.1rem; }
.brand-logo { object-fit:contain; flex-shrink:0; border-radius:50%; }
.data-hero { background:radial-gradient(ellipse at 85% 30%,#0b4261 0,transparent 50%),#071a35; color:#f0f8ff; padding-block:4.5rem; }
.data-hero h1 { max-width:19ch; font-size:clamp(2.25rem,4.2vw,3.75rem); letter-spacing:-.035em; line-height:1.08; margin-bottom:1.5rem; }
.data-hero p:not(.data-eyebrow) { max-width:62ch; color:#ccdeeb; }
.data-intro { font-size:clamp(1.1rem,1.5vw,1.3rem); }
.data-eyebrow { color:var(--accent); font-size:.75rem; text-transform:uppercase; letter-spacing:.13em; font-weight:700; margin-bottom:1rem; }
.data-hero .data-eyebrow { color:#66dcf5; }
.data-logo { width:100%; max-width:350px; height:auto; filter:drop-shadow(0 0 25px #00cfff20); }
.data-skills { display:flex; flex-wrap:wrap; gap:.5rem; padding:0; margin:1.5rem 0 0; list-style:none; }
.data-skills li { border:1px solid #2c617d; border-radius:2rem; padding:.35rem .8rem; color:#d3f5ff; font-size:.82rem; }
.data-expertise { border-top:3px solid var(--accent); background:white; padding:1.75rem; border-radius:0 0 .6rem .6rem; }
.data-number { display:block; color:var(--muted); font-size:.76rem; margin-bottom:1rem; }
.data-expertise h3 { margin-bottom:1rem; }
.data-expertise p { color:var(--muted); margin:0; }
.data-lab { border:1px solid var(--rule); border-radius:.6rem; padding:1.5rem; background:var(--paper); }
.data-lab h3 { margin-top:1.25rem; }
.data-status { font-size:.72rem; padding:.25rem .55rem; background:var(--accent-soft); color:var(--accent-dark); border-radius:1rem; }
.data-stack { font-size:.78rem; color:var(--accent); font-weight:600; }
.news-carousel { padding:1.25rem 0 1.5rem; background:#e8f1f7; border-bottom:1px solid #cedfe9; }
.news-carousel-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.news-carousel-header p { color:#4d6374; }
.news-controls { display:flex; gap:.4rem; flex-shrink:0; }
.news-controls[hidden] { display:none; }
.news-control { border:1px solid #aec4d3; color:#15364e; background:transparent; border-radius:.35rem; padding:.25rem .65rem; font-size:.8rem; min-height:36px; }
.news-control:hover { background:white; }
.news-control:focus-visible,.news-track:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.news-track { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 2rem)/3); gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; margin-top:1rem; padding-bottom:.65rem; scrollbar-width:thin; }
.news-slide { scroll-snap-align:start; display:flex; flex-direction:column; gap:.7rem; background:#fff; border:1px solid #d2e1eb; border-radius:.5rem; padding:1.1rem; min-width:0; }
.news-slide h3 { font-size:.96rem; line-height:1.4; margin:0; }
.news-slide h3 a { color:#17364f; text-decoration:none; }
.news-slide h3 a:hover { color:var(--accent); text-decoration:underline; }
.news-slide-meta { display:flex; flex-wrap:wrap; gap:.3rem .65rem; margin-top:auto; color:#576c7b; font-size:.72rem; }
@media (max-width:991px) { .news-track { grid-auto-columns:calc((100% - 1rem)/2); } .data-hero { padding-block:3rem; } .data-logo { max-width:260px; } }
@media (max-width:575px) { .news-track { grid-auto-columns:90%; } .news-carousel-header { align-items:flex-start; flex-direction:column; } .data-hero h1 { font-size:2.3rem; } .site-nav .navbar-brand { font-size:.94rem; } }
@media (prefers-reduced-motion:reduce) { .news-track { scroll-behavior:auto; } }

/* Curadoria de dados: fonte e formato visíveis em cada referência. */
.data-resource { display:flex; flex-direction:column; align-items:flex-start; gap:.85rem; background:#fff; border:1px solid var(--rule); border-radius:.6rem; padding:1.4rem; }
.data-resource h3 { margin:0; font-size:1.05rem; }
.data-resource p { color:var(--muted); font-size:.92rem; margin:0; }
.data-resource small { color:var(--muted); margin-top:auto; }
.data-resource a { font-size:.85rem; font-weight:600; }

/* Banner compacto para o perfil público do GitHub. */
.github-banner { display:block; width:min(100%,480px); margin-inline:auto; border-radius:.6rem; overflow:hidden; }
.github-banner img { display:block; width:100%; height:auto; }
.github-banner:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.github-banner:hover { box-shadow:0 4px 18px #071a3526; }

.latest-post-image { width:100%; max-height:340px; object-fit:cover; }
.latest-post h3 a { color:var(--ink); }

/* Apresentação profissional de Guilherme Sant’Anna. */
.brand-monogram { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:#071a35; color:#66dcf5; font-size:1rem; font-weight:800; flex-shrink:0; letter-spacing:-.05em; }
.professional-card { border:1px solid #366079; border-radius:18px; background:linear-gradient(145deg,#12364d,#091d33); padding:2rem; box-shadow:0 24px 50px #0002; }
.professional-monogram { display:grid; place-items:center; width:82px; height:82px; border:1px solid #4ab9da; border-radius:20px; background:#0d2c43; color:#8ce7ff; font-size:2.6rem; font-weight:800; letter-spacing:-.07em; margin-bottom:1.5rem; }
.data-hero .professional-name { font-size:1.4rem; color:#fff; font-weight:700; margin-bottom:.3rem; }
.professional-role { font-size:.85rem; }
.professional-facts { margin:1.5rem 0 0; }
.professional-facts div { border-top:1px solid #365368; padding:1rem 0; }
.professional-facts div:last-child { padding-bottom:0; }
.professional-facts dt { font-size:1.2rem; color:#8ce7ff; }
.professional-facts dd { margin:0; font-size:.85rem; color:#ccdeeb; }
.professional-cert dt { display:flex; align-items:center; gap:.75rem; }
.professional-cert img { width:72px; height:auto; border-radius:10px; flex:none; }
.professional-cert dd { margin-left:calc(72px + .75rem); }
.professional-bio p { max-width:78ch; }
@media (max-width:575px) { .navbar-brand small { font-size:.63rem; } .professional-card { padding:1.5rem; } }

.channel-card { display:grid; grid-template-columns:200px minmax(0,1fr); align-items:center; gap:2.5rem; }
.channel-logo-link { display:block; border-radius:50%; overflow:hidden; width:200px; }
.channel-logo-link img { display:block; width:100%; height:auto; }
.channel-logo-link:focus-visible { outline:3px solid var(--accent); outline-offset:6px; }
@media(max-width:767px) { .channel-card { grid-template-columns:1fr; gap:1.5rem; } .channel-logo-link { width:180px; margin-inline:auto; } }

.study-planner { max-width:1100px; }
.study-week-day { border:1px solid var(--rule); border-radius:8px; padding:1rem; }
.study-week-day summary { cursor:pointer; }
.study-note { white-space:pre-wrap; overflow-wrap:anywhere; }
.study-planner .card { overflow-wrap:anywhere; }

/* Sistemas: banner no topo da home (views/partials/systems.php) e página /sistemas (views/systems-page.php). */
.systems-banner { background:linear-gradient(135deg,var(--accent-soft) 0%,var(--paper) 70%); padding:2.5rem 0; }
.systems-banner-carousel { position:relative; }
.systems-banner-slide { display:flex; align-items:center; justify-content:space-between; gap:2rem; min-height:220px; padding-top:1rem; padding-bottom:3rem; }
.systems-banner-text { max-width:620px; }
.systems-banner-text h3 { font-size:clamp(1.6rem,3vw,2.2rem); margin-bottom:.5rem; }
.systems-banner-summary { font-size:1.05rem; margin-bottom:.5rem; }
.systems-banner-image { width:min(200px,30%); height:auto; aspect-ratio:1/1; object-fit:contain; border-radius:20px; background:#fff; box-shadow:0 10px 30px rgba(0,40,70,.08); padding:.75rem; }
.systems-banner-carousel .carousel-indicators { bottom:.5rem; margin-bottom:0; }
.systems-banner-carousel .carousel-indicators [data-bs-target] { background-color:var(--accent); }
.systems-banner-carousel .carousel-control-prev, .systems-banner-carousel .carousel-control-next { width:3rem; }
.systems-banner-carousel .carousel-control-prev-icon, .systems-banner-carousel .carousel-control-next-icon { filter:invert(1) grayscale(1) brightness(.4); }
.system-card-category { color:var(--accent); font-size:.75rem; text-transform:uppercase; letter-spacing:.12em; font-weight:700; margin-bottom:.35rem; }
.system-card-price { font-weight:700; color:var(--accent-dark); font-size:1.1rem; }
.system-page-card { background:#fff; border:1px solid var(--rule); border-radius:18px; padding:2rem; box-shadow:0 10px 30px rgba(0,40,70,.08); margin-bottom:2rem; }
.system-page-card h2 { margin-bottom:.75rem; }
.system-gallery { position:relative; max-width:420px; }
.system-gallery .carousel-inner { border-radius:12px; overflow:hidden; background:var(--paper); }
.system-gallery-image { aspect-ratio:4/3; object-fit:contain; background:var(--paper); }
.system-gallery-thumbs { position:static; justify-content:flex-start; flex-wrap:wrap; gap:.5rem; margin:.75rem 0 0; }
.system-gallery-thumbs [data-bs-target] { width:60px; height:45px; margin:0; padding:0; border:2px solid transparent; border-radius:8px; overflow:hidden; opacity:.6; background-color:transparent; }
.system-gallery-thumbs [data-bs-target].active { opacity:1; border-color:var(--accent); }
.system-gallery-thumbs img { width:100%; height:100%; object-fit:cover; display:block; }
.system-gallery .carousel-control-prev-icon, .system-gallery .carousel-control-next-icon { filter:invert(1) grayscale(1) brightness(.4); }
@media (max-width:767px) { .systems-banner-slide { flex-direction:column-reverse; text-align:center; min-height:0; padding-bottom:3rem; } .systems-banner-text { margin-inline:auto; } .systems-banner-image { width:120px; } .system-page-card { padding:1.25rem; } }
