/* =============================================
   GTA Bank — Portal de Negócios GTA Online
   Design: Maze Bank Dark Theme
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Variáveis de design ---- */
:root {
  --bg:           #0a0a0f;
  --bg-card:      #12121a;
  --bg-card2:     #1a1a26;
  --border:       #252535;
  --primary:      #00d4aa;
  --primary-dim:  #00b491;
  --gold:         #f5c518;
  --gold-dim:     #d4a800;
  --danger:       #ff4444;
  --purple:       #7b2fbe;
  --text:         #e0e0ee;
  --muted:        #888899;
  --nav-h:        64px;
  --radius:       10px;
  --shadow:       0 4px 24px rgba(0,0,0,.5);
}

/* ---- Reset + Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 60px 0; }
.section-sm { padding: 36px 0; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.nav-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card2);
}

.nav-links a.active { color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav-admin-link {
  font-size: .8rem;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.nav-admin-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,170,.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245,197,24,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--primary); }
.hero h1 .gold   { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover { background: var(--primary-dim); color: #000; }

.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover { background: var(--gold-dim); color: #000; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 7px 16px; font-size: .82rem; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
  background: var(--bg-card2);
}

.card-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-card2) 0%, #1e1e30 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 20px; }
.card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.card-title { font-size: 1.2rem; font-family: 'Rajdhani', sans-serif; margin-bottom: 8px; }
.card-text  { color: var(--muted); font-size: .9rem; }

/* ---- Negócio Card ---- */
.negocio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .2s;
}
.negocio-card:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.negocio-card .negocio-nome {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.negocio-card .negocio-stats {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; }
.stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.stat-value { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--primary); }
.stat-value.gold { color: var(--gold); }

/* Barra de rentabilidade */
.rent-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 8px 0 12px;
  overflow: hidden;
}
.rent-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s ease;
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-success   { background: rgba(0,212,170,.15); color: var(--primary); border: 1px solid rgba(0,212,170,.3); }
.badge-warning   { background: rgba(245,197,24,.15); color: var(--gold); border: 1px solid rgba(245,197,24,.3); }
.badge-danger    { background: rgba(255,68,68,.15); color: var(--danger); border: 1px solid rgba(255,68,68,.3); }
.badge-secondary { background: var(--bg-card2); color: var(--muted); border: 1px solid var(--border); }
.badge-purple    { background: rgba(123,47,190,.2); color: #b06eff; border: 1px solid rgba(123,47,190,.4); }

.badge-pulse {
  animation: pulse-border 1.5s ease-in-out infinite;
}
@keyframes pulse-border {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,212,170,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(0,212,170,0); }
}

/* ---- Grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; }

/* ---- Section Header ---- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-title span { color: var(--primary); }

/* ---- Tabela ---- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  font-family: 'Rajdhani', sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.table th:hover { color: var(--primary); }
.table th.sorted { color: var(--primary); }
.table th .sort-icon { margin-left: 4px; opacity: .5; }
.table tbody tr:hover td { background: var(--bg-card2); }
.table td.money { font-family: 'Rajdhani', sans-serif; color: var(--primary); font-weight: 600; }

/* ---- Calculadora ---- */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-control {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}
.form-control option { background: var(--bg-card); }

.result-box {
  background: rgba(0,212,170,.05);
  border: 1px solid rgba(0,212,170,.2);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.result-item .result-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.result-item .result-val.gold { color: var(--gold); }
.result-item .result-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ---- Post / Notícia ---- */
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.post-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card .post-img { height: 200px; object-fit: cover; width: 100%; background: var(--bg-card2); }
.post-card .post-body { padding: 20px; }
.post-card .post-tipo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.post-card .post-tipo.noticia { color: var(--gold); }
.post-card .post-tipo.guia    { color: var(--primary); }
.post-card .post-title { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; margin: 8px 0 6px; }
.post-card .post-resumo { color: var(--muted); font-size: .875rem; }
.post-card .post-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border); }
.post-card .post-date { font-size: .78rem; color: var(--muted); }

/* ---- Filtros ---- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filtro-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.filtro-btn:hover,
.filtro-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,212,170,.08);
}

/* ---- Stat tiles (hero/destaques) ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.stat-tile {
  background: var(--bg-card);
  padding: 20px 24px;
  text-align: center;
}
.stat-tile .tile-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-tile .tile-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---- Destaque (featured post) ---- */
.featured-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 300px;
}
@media (max-width: 700px) { .featured-post { grid-template-columns: 1fr; } }
.featured-post .fp-img { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.featured-post .fp-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-post .fp-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 12px; }
.featured-post .fp-title { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 12px; }
.featured-post .fp-resumo { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

/* ---- Page header ---- */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-header p  { color: var(--muted); margin-top: 8px; font-size: 1rem; }

/* ---- Content (artigo) ---- */
.content-body { max-width: 780px; }
.content-body h2 { font-size: 1.6rem; margin: 32px 0 12px; color: var(--primary); }
.content-body h3 { font-size: 1.25rem; margin: 24px 0 10px; }
.content-body p  { margin-bottom: 16px; color: var(--text); }
.content-body ul, .content-body ol { padding-left: 24px; margin-bottom: 16px; }
.content-body li { margin-bottom: 6px; color: var(--text); }
.content-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.content-body table th, .content-body table td { padding: 10px 14px; border: 1px solid var(--border); }
.content-body table th { background: var(--bg-card2); font-family: 'Rajdhani', sans-serif; }
.content-body strong { color: var(--gold); }
.content-body em     { color: var(--primary); font-style: normal; }

/* ---- Admin ---- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--bg-card); border-right: 1px solid var(--border); padding: 24px 0; }
.admin-sidebar .sidebar-logo { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; color: var(--primary); }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--muted); font-size: .9rem; transition: all .2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--text); background: var(--bg-card2); }
.admin-main { padding: 32px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.admin-title { font-size: 1.5rem; }

/* ---- Footer ---- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.footer-logo span { color: var(--gold); }
.footer-desc { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.footer-heading { font-family: 'Rajdhani', sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text); font-size: .875rem; opacity: .7; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap-12; font-size: .8rem; color: var(--muted); }
.footer-disclaimer { font-size: .75rem; color: var(--muted); opacity: .6; margin-top: 8px; }

/* ---- Utilitários ---- */
.text-primary { color: var(--primary) !important; }
.text-gold    { color: var(--gold) !important; }
.text-muted   { color: var(--muted) !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.gap-2 { gap: 8px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.hidden { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
