/* =========================================
   FOLLOW ADVISOR — CASES DE SUCESSO
   Author: Daniel Honorato & ChatGPT-5
   Estrutura de design modular, tema escuro neon
   ========================================= */

/* ---------- VARIÁVEIS DE TEMA ---------- */
:root {
  --bg: #0b0b0b;
  --panel: #111;
  --text: #f3f4f6;
  --muted: #9aa0a6;
  --brand: #00aaff;
  --brand-2: #0088ff;
  --radius: 14px;
  --shadow-brand: 0 0 0 2px rgba(0,170,255,0.35), 0 8px 30px rgba(0,170,255,0.15);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Ubuntu, sans-serif;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   HEADER
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #000 0%, #0a0a0a 50%, #000 100%);
  border-bottom: 1px solid #111;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

header img {
  height: 38px;
  filter: drop-shadow(0 0 6px rgba(0,170,255,0.7));
}

header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textFlow 6s linear infinite;
}

@keyframes textFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* =========================================
   CONTAINER E LAYOUT BASE
   ========================================= */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* =========================================
   ABAS / TABS
   ========================================= */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab {
  border: 1px solid #1a1a1a;
  background: #0e0e0e;
  color: #cbd5e1;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab:hover {
  box-shadow: var(--shadow-brand);
}

.tab.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(0,170,255,0.25), rgba(0,136,255,0.25));
  box-shadow: var(--shadow-brand);
  border-color: transparent;
}

/* =========================================
   BARRA DE BUSCA
   ========================================= */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f1115;
  border: 1px solid #1c1f26;
  border-radius: 999px;
  padding: 8px 12px;
}

.search input {
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  width: 100%;
  font-size: 14px;
}

.pill {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #1c1f26;
  background: #0f1115;
}

/* =========================================
   GRID DE CARDS
   ========================================= */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid #171717;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,170,255,0.18);
}

/* Imagem de fundo e overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% 10%, rgba(0,170,255,0.18), transparent 40%),
              linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.9));
}

.card .media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.2) contrast(1.05) brightness(0.9);
  transition: transform 0.3s ease;
}

.card:hover .media {
  transform: scale(1.05);
}

/* Conteúdo dos cards */
.content {
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,18,25,0.7);
  backdrop-filter: blur(6px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.title {
  font-weight: 700;
  font-size: 16px;
}

.desc {
  color: #cbd5e1;
  font-size: 13px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.btn {
  appearance: none;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s ease;
  box-shadow: 0 6px 20px rgba(0,170,255,0.2);
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

/* =========================================
   MODAL DOS CASES
   ========================================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 50;
  padding: 24px;
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(720px, 96vw);
  background: #0f1115;
  border: 1px solid #1c1f26;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  animation: pop 0.2s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-media {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, rgba(0,170,255,0.22), rgba(0,136,255,0.18)),
                    linear-gradient(180deg, #0d1520, #0b0b0b);
}

.modal-body {
  padding: 18px 18px 20px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.modal-close {
  background: #131720;
  color: #e5e7eb;
  border: 1px solid #1f2430;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .modal-grid { grid-template-columns: 1fr; }
}

/* KPI boxes */
.kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.kpi {
  background: #0c0f16;
  border: 1px solid #182031;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

.kpi .v {
  font-size: 18px;
  font-weight: 800;
}

.kpi .l {
  font-size: 12px;
  color: var(--muted);
}

/* Info list */
.list {
  background: #0c0f16;
  border: 1px solid #182031;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.list .row .label {
  color: var(--muted);
}

/* Mensagem vazia */
.empty {
  border: 1px dashed #1f2330;
  background: #0f1115;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  margin-top: 20px;
}

/* =========================================
   MODAL DE LOGIN
   ========================================= */
.modal-login {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-login-content {
  background: #111;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
  text-align: center;
  color: #fff;
  width: 300px;
}

.modal-login-content h3 {
  color: var(--brand);
  margin-bottom: 15px;
}

.modal-login-content input {
  width: 90%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  text-align: center;
}

.modal-login-content button {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border: none;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.modal-login-content button:hover {
  opacity: 0.85;
}
