/*
Theme Name: Linkadu Blog
Template: twentytwentyfive
Author: Linkadu
Description: Tema do blog do Linkadu — paleta, tipografia e componentes visuais compatíveis com o produto principal (linkadu.com.br). Blog isolado do núcleo da aplicação (WordPress separado, conforme regras do produto).
Version: 1.0.6
Text Domain: linkadu-blog
*/

:root {
  --lk-bg: #fffaf0;
  --lk-ink: #22302a;
  --lk-muted: #5f6d67;
  --lk-accent: #146b48;
  --lk-line: #dde6df;
  --lk-card: #ffffff;
}

html, body {
  background-color: var(--lk-bg) !important;
  color: var(--lk-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Arial, sans-serif;
}

.wp-site-blocks {
  background-color: var(--lk-bg);
}

a {
  color: var(--lk-accent);
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.entry-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lk-ink);
}

.wp-block-post-excerpt,
.entry-content,
p {
  color: var(--lk-muted);
}

/* Cartões de post no formato usado no preview /blog do app principal — só na grade
   (arquivo/home), não em listas como a barra lateral da matéria. */
.wp-block-post-template.is-layout-grid .wp-block-post,
article {
  background: var(--lk-card);
  border: 1px solid var(--lk-line);
  border-radius: 18px;
}

.wp-block-button__link,
button,
input[type="submit"] {
  background: var(--lk-accent) !important;
  border-radius: 999px !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
}

/* Rótulo pequeno em maiúsculas, no estilo "CONTEÚDO PARA UMA VIDA DIGITAL MELHOR" do preview */
.linkadu-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--lk-accent);
  text-transform: uppercase;
}

.linkadu-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--lk-accent) !important;
  text-decoration: none !important;
  font-size: 14px;
}

/* Grade de posts (arquivo/página inicial) em 3 colunas, com cartões no
   estilo do preview /blog do app principal. */
.wp-block-post-template.is-layout-grid {
  gap: 32px 28px;
}

.wp-block-post-template.is-layout-grid .wp-block-post {
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.wp-block-post-template.is-layout-grid .wp-block-post:hover {
  box-shadow: 0 10px 28px rgba(20, 107, 72, 0.14);
  transform: translateY(-3px);
}

.wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-post-featured-image {
  margin: 0 0 16px 0;
}

.wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-post-featured-image img {
  display: block;
}

.wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-post-title,
.wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-post-excerpt,
.wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-post-date {
  margin-left: 20px;
  margin-right: 20px;
}

.wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-post-date {
  margin-bottom: 20px;
  color: var(--lk-muted);
}

.wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-post-title a {
  color: var(--lk-ink);
  text-decoration: none;
}

.wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-post-excerpt {
  color: var(--lk-muted);
}

@media (max-width: 781px) {
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Topo fixo da página de matéria: logo + relógio + data, no estilo do
   utility-bar do workspace principal (app/LinkaduHome.tsx: .top-clock/.top-date). */
.linkadu-article-topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(22px, calc((100vw - 1200px) / 2));
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--lk-line);
}

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

.linkadu-article-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.linkadu-article-topbar-time {
  display: flex;
  align-items: center;
  gap: 28px;
}

.linkadu-article-clock,
.linkadu-article-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.linkadu-article-clock span,
.linkadu-article-date span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lk-muted);
  white-space: nowrap;
}

.linkadu-article-clock strong {
  font-family: "DS-Digital", "Digital-7", "DSEG7 Classic", "Segment7", "Quartz", Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--lk-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.linkadu-article-date strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--lk-ink);
  text-transform: capitalize;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .linkadu-article-date { display: none; }
}

/* Barra lateral da matéria: "+ Posts" com imagem, e espaço reservado
   para widgets futuros. */
.linkadu-article-sidebar {
  border-left: 1px solid var(--lk-line);
  padding-left: 32px;
}

.linkadu-article-sidebar .wp-block-post {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.linkadu-sidebar-post {
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--lk-line);
}

.linkadu-sidebar-post:last-of-type {
  border-bottom: none;
}

.linkadu-sidebar-post .wp-block-post-featured-image {
  flex: 0 0 auto;
  margin: 0;
}

.linkadu-sidebar-post .wp-block-post-featured-image img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: 20% 48%;
  border-radius: 10px;
  display: block;
}

.linkadu-sidebar-post .wp-block-post-title {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 4px;
}

.linkadu-sidebar-post .wp-block-post-title a {
  color: var(--lk-ink);
  text-decoration: none;
}

.linkadu-sidebar-post .wp-block-post-date {
  color: var(--lk-muted);
}

.linkadu-sidebar-excerpt {
  font-size: 13px;
  line-height: 1.4;
  color: var(--lk-muted);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.linkadu-widget-slot {
  margin-top: 28px;
  padding: 24px 18px;
  border: 1px dashed var(--lk-line);
  border-radius: 14px;
  text-align: center;
}

.linkadu-widget-slot p {
  margin: 0;
  color: var(--lk-muted);
}

@media (max-width: 781px) {
  .linkadu-article-sidebar {
    border-left: none;
    border-top: 1px solid var(--lk-line);
    padding-left: 0;
    padding-top: 32px;
    margin-top: 32px;
  }
}


/* Convite pra criar conta, ao final de toda matéria (template single.html). */
.linkadu-cta {
  margin: var(--wp--preset--spacing--60, 48px) 0;
  padding: 40px;
  background: linear-gradient(135deg, #174f39, var(--lk-accent));
  border-radius: 18px;
  text-align: left;
}

.linkadu-cta-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--lk-soft, #c9f36b);
  text-transform: uppercase;
}

.linkadu-cta-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.linkadu-cta-text {
  margin: 0 0 22px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
}

.linkadu-cta-button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #c9f36b;
  color: #143529;
  font-weight: 800;
  text-decoration: none !important;
}

.linkadu-cta-button:hover {
  filter: brightness(1.05);
}

@media (max-width: 600px) {
  .linkadu-cta { padding: 28px 22px; }
  .linkadu-cta-title { font-size: 21px; }
}


/* Carrossel de funcionalidades do Workspace, logo abaixo do bloco de CTA.
   Reaproveita o card verde do .linkadu-cta como base, com 4 cores alternadas. */
.linkadu-feature-slider {
  margin: 0 0 var(--wp--preset--spacing--60, 48px);
}

.linkadu-feature-slider-track {
  position: relative;
  min-height: 190px;
}

.linkadu-feature-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  margin: 0;
}

.linkadu-feature-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.linkadu-feature-slide.theme-green {
  background: linear-gradient(135deg, #174f39, #146b48);
}

.linkadu-feature-slide.theme-orange {
  background: linear-gradient(135deg, #7a3b0f, #d9772e);
}

.linkadu-feature-slide.theme-brown {
  background: linear-gradient(135deg, #3d2515, #8b4f2f);
}

.linkadu-feature-slide.theme-purple {
  background: linear-gradient(135deg, #2f1f4a, #6a4c93);
}

.linkadu-feature-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.linkadu-feature-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--lk-line);
  background: #fff;
  color: var(--lk-accent);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.linkadu-feature-arrow:hover {
  background: var(--lk-accent);
  color: #fff;
}

.linkadu-feature-dots {
  display: flex;
  gap: 7px;
}

.linkadu-feature-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lk-line);
  cursor: pointer;
}

.linkadu-feature-dot.is-active {
  background: var(--lk-accent);
}

@media (max-width: 600px) {
  .linkadu-feature-slider-track { min-height: 230px; }
}
