/* =========================================================
   COMPONENTS.CSS - Botões, cards, badges, tabelas, accordions
   ========================================================= */

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--t);
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn [data-lucide] { width: 18px; height: 18px; }

.btn-primary {
  background: var(--su-red);
  color: var(--su-white);
}
.btn-primary:hover { background: var(--su-red-dark); color: var(--su-white); }

.btn-yellow {
  background: var(--su-yellow);
  color: var(--su-blue-dark);
}
.btn-yellow:hover { background: var(--su-yellow-dark); color: var(--su-blue-dark); }

.btn-blue {
  background: var(--su-blue);
  color: var(--su-white);
}
.btn-blue:hover { background: var(--su-blue-dark); color: var(--su-white); }

.btn-outline {
  background: transparent;
  color: var(--su-blue-dark);
  border-color: var(--su-blue-dark);
}
.btn-outline:hover { background: var(--su-blue-dark); color: var(--su-white); }

.btn-outline-white {
  background: transparent;
  color: var(--su-white);
  border-color: var(--su-white);
}
.btn-outline-white:hover { background: var(--su-white); color: var(--su-blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--su-blue-dark);
}
.btn-ghost:hover { background: var(--su-bg); transform: none; box-shadow: none; }

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.125rem; }
.btn-block { width: 100%; }

.btn-cta {
  background: linear-gradient(135deg, var(--su-red), var(--su-yellow));
  color: var(--su-white);
  box-shadow: 0 8px 24px rgba(225, 37, 27, 0.35);
}
.btn-cta:hover {
  background: linear-gradient(135deg, var(--su-red-dark), var(--su-yellow-dark));
  box-shadow: 0 12px 32px rgba(225, 37, 27, 0.45);
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}
.badge-yellow { background: var(--su-yellow); color: var(--su-blue-dark); }
.badge-blue   { background: var(--su-blue); color: var(--su-white); }
.badge-red    { background: var(--su-red); color: var(--su-white); }
.badge-soft   { background: rgba(0, 60, 113, 0.08); color: var(--su-blue-dark); }
.badge-success{ background: #DCFCE7; color: #166534; }
.badge-warning{ background: #FEF3C7; color: #92400E; }
.badge [data-lucide] { width: 14px; height: 14px; }

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s infinite;
  display: inline-block;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--su-white);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--su-border);
  transition: all var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--su-blue-light);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--su-blue-dark), var(--su-blue));
  color: var(--su-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon [data-lucide] { width: 28px; height: 28px; stroke-width: 2.25; }

.card-icon.yellow {
  background: linear-gradient(135deg, var(--su-yellow), var(--su-yellow-dark));
  color: var(--su-blue-dark);
}
.card-icon.red {
  background: linear-gradient(135deg, var(--su-red), var(--su-red-dark));
}
.card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.card p { color: var(--su-text-muted); font-size: 0.95rem; }

/* Card de plano */
.plan-card {
  background: var(--su-white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--su-border);
  position: relative;
  transition: all var(--t);
}
.plan-card.featured {
  border-color: var(--su-yellow);
  transform: scale(1.04);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.featured:hover { transform: scale(1.04) translateY(-6px); }

.plan-card .ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--su-yellow);
  color: var(--su-blue-dark);
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.plan-card h3 { font-size: 1.35rem; color: var(--su-blue-dark); }
.plan-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--su-blue-dark);
  margin: 16px 0 4px;
  line-height: 1;
}
.plan-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--su-text-muted);
}
.plan-card .price-from {
  font-size: 0.8rem;
  color: var(--su-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.plan-card ul li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--su-border);
}
.plan-card ul li:last-child { border-bottom: none; }
.plan-card ul li [data-lucide] {
  width: 18px; height: 18px;
  color: #16A34A;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- ACCORDION / FAQ ---------- */
.accordion { margin: 0; padding: 0; }
.accordion-item {
  background: var(--su-white);
  border: 1px solid var(--su-border);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--t);
}
.accordion-item:hover { box-shadow: var(--shadow-sm); }
.accordion-item[open] { box-shadow: var(--shadow); }
.accordion-item summary {
  padding: 18px 24px;
  font-weight: 700;
  color: var(--su-blue-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: '+';
  font-size: 1.75rem;
  color: var(--su-blue);
  transition: transform var(--t);
  font-weight: 300;
  line-height: 1;
}
.accordion-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.accordion-content {
  padding: 0 24px 20px;
  color: var(--su-text);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ---------- TABELAS ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--su-border);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--su-white);
  font-size: 0.95rem;
}
table.data th {
  background: var(--su-blue-dark);
  color: var(--su-white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
}
table.data td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--su-border);
}
table.data tr:nth-child(even) td { background: var(--su-bg); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--su-bg-alt); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--su-text-muted);
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; margin: 0; }
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--su-divider);
}
.breadcrumb a { color: var(--su-text-muted); }
.breadcrumb a:hover { color: var(--su-blue-dark); }
.breadcrumb [aria-current="page"] { color: var(--su-blue-dark); font-weight: 600; }

/* ---------- FORMULÁRIOS ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--su-blue-dark);
  font-size: 0.95rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--su-border);
  border-radius: var(--r-sm);
  font-size: 1rem;
  background: var(--su-white);
  transition: border var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--su-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 156, 0.15);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--su-text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- ALERTS ---------- */
.alert {
  padding: 16px 20px;
  border-radius: var(--r);
  border-left: 4px solid;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.alert [data-lucide] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert-info     { background: #EFF6FF; border-color: var(--su-blue); color: #1E40AF; }
.alert-warning  { background: #FEF3C7; border-color: var(--su-yellow); color: #92400E; }
.alert-success  { background: #DCFCE7; border-color: #16A34A; color: #166534; }
.alert-danger   { background: #FEE2E2; border-color: var(--su-red); color: #991B1B; }

/* ---------- GRID UTILITIES ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- TEXT UTILITIES ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--su-text-muted); }
.text-blue { color: var(--su-blue-dark); }
.text-yellow { color: var(--su-yellow-dark); }
.text-red { color: var(--su-red); }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

/* ---------- IMAGE PLACEHOLDER (para prompts Gemini) ---------- */
.img-placeholder {
  background: linear-gradient(135deg, var(--su-bg) 0%, var(--su-bg-alt) 100%);
  border: 2px dashed var(--su-divider);
  border-radius: var(--r-md);
  padding: 40px 20px;
  text-align: center;
  color: var(--su-text-muted);
  font-size: 0.85rem;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.img-placeholder strong { color: var(--su-blue-dark); display: block; margin-bottom: 4px; }
.img-placeholder code {
  display: block;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  border-radius: var(--r-sm);
  text-align: left;
  white-space: pre-wrap;
  font-family: monospace;
  max-width: 600px;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--su-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--su-text-muted); }
