/**
 * Akeno Interno — Frontend v3.0.0
 *
 * 3 Formatos: cards, pills, stacked
 * 3 Estilos cada: varia por formato
 * + Legado: variantes antigas mapeadas via PHP
 */

/* ── NOTA RODAPÉ ─────────────────────────────────────────── */
.akeno-note {
  max-width: 920px;
  margin: 10px auto 0;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.1;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   FORMATO 1: CARDS — Botões individuais empilhados
   ═══════════════════════════════════════════════════════════ */
.akeno-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  font-family: system-ui, -apple-system, sans-serif;
}
@media (min-width: 768px) {
  .akeno-cards { padding: 0; gap: 12px; }
}

.akeno-cards__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
  touch-action: manipulation;
  cursor: pointer;
}
.akeno-cards__btn:active { transform: scale(0.99); }
.akeno-cards__btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.akeno-cards__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.akeno-cards__icon { font-size: 18px; flex-shrink: 0; }
.akeno-cards__text { overflow: hidden; text-overflow: ellipsis; }
.akeno-cards__caret { opacity: 0.5; font-size: 20px; font-weight: 300; flex-shrink: 0; margin-left: 8px; }

/* Cards — Inverse (branco) */
.akeno-cards--inverse .akeno-cards__btn {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.2);
  box-shadow: 0 2px 12px rgba(29, 78, 216, 0.06);
}
.akeno-cards--inverse .akeno-cards__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.12);
}

/* Cards — CTA (verde) */
.akeno-cards--cta .akeno-cards__btn {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #16a34a;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15);
}
.akeno-cards--cta .akeno-cards__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
  background: #15803d;
}
.akeno-cards--cta .akeno-cards__caret { opacity: 0.7; }

/* Cards — Soft (azul claro) */
.akeno-cards--soft .akeno-cards__btn {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  box-shadow: none;
}
.akeno-cards--soft .akeno-cards__btn:hover {
  background: #dbeafe;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   FORMATO 2: PILLS — Tags compactas em linha
   ═══════════════════════════════════════════════════════════ */
.akeno-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  font-family: system-ui, -apple-system, sans-serif;
}
@media (min-width: 768px) {
  .akeno-pills { padding: 0; }
}
@media (max-width: 500px) {
  .akeno-pills {
    flex-direction: column;
  }
  .akeno-pills__btn {
    justify-content: space-between;
  }
}

.akeno-pills__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  transition: all 0.15s ease;
  cursor: pointer;
  touch-action: manipulation;
}
.akeno-pills__btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.akeno-pills__icon { font-size: 15px; flex-shrink: 0; }
.akeno-pills__text { white-space: nowrap; }
.akeno-pills__arrow { opacity: 0.4; font-size: 14px; margin-left: 2px; flex-shrink: 0; }

/* Pills — Inverse (branco) */
.akeno-pills--inverse .akeno-pills__btn {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.akeno-pills--inverse .akeno-pills__btn:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.2);
}

/* Pills — CTA (verde) */
.akeno-pills--cta .akeno-pills__btn {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #16a34a;
}
.akeno-pills--cta .akeno-pills__btn:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}
.akeno-pills--cta .akeno-pills__arrow { opacity: 0.7; }

/* Pills — Outline (borda) */
.akeno-pills--outline .akeno-pills__btn {
  background: transparent;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}
.akeno-pills--outline .akeno-pills__btn:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   FORMATO 3: STACKED — Lista agrupada (estilo iOS)
   ═══════════════════════════════════════════════════════════ */
.akeno-stacked {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

.akeno-stacked__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  transition: background 0.12s ease;
  cursor: pointer;
  touch-action: manipulation;
}
.akeno-stacked__btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.akeno-stacked__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.akeno-stacked__icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.akeno-stacked__text { overflow: hidden; text-overflow: ellipsis; }

.akeno-stacked__arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Stacked — Default (cinza claro) */
.akeno-stacked--default {
  border: 1px solid #e2e8f0;
}
.akeno-stacked--default .akeno-stacked__btn {
  background: #fafbfc;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
}
.akeno-stacked--default .akeno-stacked__btn:last-child { border-bottom: none; }
.akeno-stacked--default .akeno-stacked__btn:hover { background: #eff6ff; }
.akeno-stacked--default .akeno-stacked__icon { background: #f1f5f9; }
.akeno-stacked--default .akeno-stacked__arrow { background: #eff6ff; color: #3b82f6; }

/* Stacked — Blue (azul tint) */
.akeno-stacked--blue {
  border: 1px solid #bfdbfe;
}
.akeno-stacked--blue .akeno-stacked__btn {
  background: #eff6ff;
  color: #0f172a;
  border-bottom: 1px solid #dbeafe;
}
.akeno-stacked--blue .akeno-stacked__btn:last-child { border-bottom: none; }
.akeno-stacked--blue .akeno-stacked__btn:hover { background: #dbeafe; }
.akeno-stacked--blue .akeno-stacked__icon { background: #dbeafe; }
.akeno-stacked--blue .akeno-stacked__arrow { background: #1d4ed8; color: #ffffff; }

/* Stacked — Elevated (sombra) */
.akeno-stacked--elevated {
  border: 1px solid transparent;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.akeno-stacked--elevated .akeno-stacked__btn {
  background: #ffffff;
  color: #0f172a;
  border-bottom: 1px solid #f8fafc;
}
.akeno-stacked--elevated .akeno-stacked__btn:last-child { border-bottom: none; }
.akeno-stacked--elevated .akeno-stacked__btn:hover { background: #f8fafc; }
.akeno-stacked--elevated .akeno-stacked__icon { background: #f1f5f9; }
.akeno-stacked--elevated .akeno-stacked__arrow { background: #f1f5f9; color: #64748b; }

/* ═══════════════════════════════════════════════════════════
   LEGADO — Variantes antigas (mapeadas via PHP mas CSS fica)
   ═══════════════════════════════════════════════════════════ */
.akeno-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
}
.akeno-button {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(29, 78, 216, 0.35);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
}
.akeno-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.15); }
.akeno-inner { display: flex; align-items: center; justify-content: space-between; font-weight: 800; }
.akeno-icon { margin-right: 10px; font-size: 1.1em; flex-shrink: 0; }
.akeno-text { display: flex; align-items: center; gap: 10px; flex: 1; }
.akeno-caret { opacity: 0.75; flex-shrink: 0; }

/* Legado variantes (mantido para posts antigos) */
.variant-inverse .akeno-button { background: #fff; color: #1d4ed8; }
.variant-primary .akeno-button { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.variant-cta .akeno-button { background: #16a34a; color: #fff; border-color: #16a34a; }
.variant-secondary .akeno-button { background: #111827; color: #fff; border-color: #111827; }
.variant-outline .akeno-button { background: transparent; color: #1d4ed8; border-color: #1d4ed8; }
.variant-pill .akeno-button { border-radius: 999px; background: #fff; color: #0f172a; border-color: #cbd5e1; }
.variant-gradient .akeno-button { background: linear-gradient(90deg, #1d4ed8, #8b5cf6); color: #fff; border-color: transparent; }
.variant-shadow .akeno-button { background: #fff; color: #0f172a; border-color: #e5e7eb; box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.variant-soft .akeno-button { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.variant-flat .akeno-button { border-color: transparent; background: #e5e7eb; color: #0f172a; }
.variant-accent .akeno-button { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }
.variant-horizontal .akeno-wrapper { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.variant-horizontal .akeno-button { flex: 1 1 30%; }
.variant-large .akeno-button { padding: 18px; font-size: 1.08rem; }

/* ═══════════════════════════════════════════════════════════
   ACESSIBILIDADE & PRINT
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .akeno-cards__btn,
  .akeno-pills__btn,
  .akeno-stacked__btn,
  .akeno-button { transition: none; }
  .akeno-cards__btn:hover,
  .akeno-button:hover { transform: none; }
}

@media (prefers-contrast: high) {
  .akeno-cards__btn,
  .akeno-pills__btn,
  .akeno-stacked__btn,
  .akeno-button { border-width: 2px; }
}

@media print {
  .akeno-cards__btn,
  .akeno-pills__btn,
  .akeno-stacked__btn,
  .akeno-button { box-shadow: none; border: 1px solid #000; }
  .akeno-note { display: none; }
}

/* RTL */
[dir='rtl'] .akeno-cards__icon,
[dir='rtl'] .akeno-pills__icon { margin-right: 0; margin-left: 10px; }
[dir='rtl'] .akeno-cards__caret,
[dir='rtl'] .akeno-stacked__arrow { transform: scaleX(-1); }
