/* public/shared/style.css — base visual do FestaPIX */

:root {
  --primary: #5e3023;
  --primary-light: #8b4f3a;
  --accent: #d97706;
  --bg: #fdfaf6;
  --surface: #fff;
  --border: #e5e1da;
  --text: #2a1a14;
  --muted: #6b5d54;
  --success: #16a34a;
  --danger: #dc2626;
  --warn: #d97706;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 10px;
  --maxw: 720px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 16px; }

header.app-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}
header.app-header h1 { margin: 0; font-size: 18px; font-weight: 600; }
header.app-header .sub { font-size: 12px; opacity: 0.85; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  width: 100%;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn.danger { background: var(--danger); }
.btn.warn { background: var(--warn); }
.btn.success { background: var(--success); }

input, select, textarea {
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  background: #fff;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

label { display: block; margin: 8px 0 4px; font-weight: 500; font-size: 14px; }

.muted { color: var(--muted); font-size: 13px; }

.flex { display: flex; gap: 10px; align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--border);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge.ok { background: var(--success); color: #fff; }
.badge.pending { background: var(--warn); color: #fff; }
.badge.err { background: var(--danger); color: #fff; }

.center { text-align: center; }
.spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 80px;
  transform: translateX(-50%);
  background: var(--text); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; z-index: 1000;
  box-shadow: var(--shadow);
}

.hidden { display: none !important; }

@media (max-width: 480px) {
  .container { padding: 12px; }
}

/* === Tema customizável === */

header.app-header {
  position: relative;
}
header.app-header.com-banner {
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  padding: 28px 16px;
}

.tema-logo {
  max-height: 38px;
  width: 38px;
  height: 38px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

footer.tema-footer {
  text-align: center;
  padding: 20px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
footer.tema-footer .tema-rodape {
  display: block;
}
