/* ============================================================
   LIDERAIA LIBRARY — STYLE.CSS
   Layout geral, reset, fontes, seções, responsivo
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-dark-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ---- Scrollbar global ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--radius-full); }

/* ---- @font-face ---- */
@font-face {
  font-family: "Just Sans Variable";
  src: url("../assets/fonts/JUST Sans Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Just Sans Variable";
  src: url("../assets/fonts/JUST Sans Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Just Sans Variable";
  src: url("../assets/fonts/JUST Sans Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Just Sans Variable";
  src: url("../assets/fonts/JUST Sans SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Just Sans Variable";
  src: url("../assets/fonts/JUST Sans Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---- Layout raiz ---- */
.page-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

main { width: 100%; }

/* ---- Seções ---- */
.section {
  padding: var(--space-16) var(--space-12);
  max-width: var(--content-max);
  margin: 0 auto;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section-header { margin-bottom: var(--space-8); }

.section-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-section);
  font-weight: 700;
  color: var(--color-dark-2);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-title .lucide {
  width: 28px;
  height: 28px;
  color: var(--color-orange);
  flex-shrink: 0;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-light);
  line-height: 1.5;
  max-width: 600px;
  margin-top: var(--space-2);
}

.section-counter {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-light);
  background: var(--color-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ---- Grid de prompts ---- */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

/* ---- Como Usar steps ---- */
.como-usar-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-orange);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content { flex: 1; }

.step-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark-2);
  margin-bottom: var(--space-2);
}

.step-text { font-size: var(--text-sm); color: var(--color-mid); line-height: 1.5; }

.step-list {
  font-size: var(--text-sm);
  color: var(--color-mid);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ---- Especialistas list ---- */
.especialistas-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* ---- Search results ---- */
.search-results {
  padding: var(--space-6) var(--space-12);
  max-width: var(--content-max);
  margin: 0 auto;
}

.search-results-header {
  font-size: var(--text-sm);
  color: var(--color-light);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-2);
}

.search-area-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: var(--space-8) 0 var(--space-4);
}

.search-empty {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--color-light);
}

.search-empty-hint {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2);
}

/* ---- Empty state ---- */
.empty-state {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  padding: var(--space-10) 0;
}

/* ---- Footer ---- */
.footer-watermark {
  text-align: center;
  padding: var(--space-8);
  font-size: var(--text-xs);
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* ---- Mobile Header ---- */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--sidebar-bg);
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-3);
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-logo {
  color: var(--color-orange);
  font-weight: 700;
  font-size: var(--text-base);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-base);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}

.sidebar-overlay.active { display: block; }

/* ---- Focus global ---- */
:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Responsivo ---- */
@media (max-width: 1024px) {
  .como-usar-steps { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--space-12) var(--space-8); }
}

@media (max-width: 767px) {
  .mobile-header { display: flex; }
  .page-wrapper { margin-left: 0; padding-top: 56px; }
  .section { padding: var(--space-8) var(--space-4); }
  .prompts-grid { grid-template-columns: 1fr; }
  .como-usar-steps { grid-template-columns: 1fr; }
  .search-results { padding: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
