/* RTGEO — Design System & Estilos da Central de Inteligência e Playbooks */

.intelligence-container {
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px;
  background: var(--bg-app);
}

.intel-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 232, 240, 0.6);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.intel-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.intel-tab-btn:hover {
  color: var(--text-main);
}

.intel-tab-btn.active {
  color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.intel-module-view {
  display: none;
}

.intel-module-view.active {
  display: block;
}

/* Header Banner */
.intel-hero-banner {
  background: linear-gradient(135deg, #1b3562, #274c8a);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.intel-hero-banner h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.intel-hero-banner p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 800px;
}

/* Filter & Search Bar */
.intel-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.intel-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: 320px;
}

.intel-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  font-family: inherit;
  width: 100%;
}

/* City Grid Layout */
.city-matrix-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .city-matrix-layout {
    grid-template-columns: 1fr;
  }
}

.city-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.city-card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.city-card-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.city-card-item.active {
  border-color: var(--primary);
  border-width: 2px;
  background: #fafcff;
  box-shadow: var(--shadow-card);
}

.city-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.city-card-header b {
  font-size: 14px;
  color: var(--primary);
}

.city-state-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.city-state-badge.go {
  background: #dbeafe;
  color: #1e40af;
}

.city-state-badge.mg {
  background: #ffe4e6;
  color: #9f1239;
}

.city-card-profile {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  font-size: 11px;
}

.city-card-stats span {
  color: var(--text-muted);
}

.city-card-stats b {
  display: block;
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* Detail Box (Right Column) */
.city-detail-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 24px;
}

.city-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.city-detail-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.tag-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-pill {
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-app);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.typology-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 16px;
}

.typology-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-muted);
}

.typology-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
}

/* Legal & Tax Guides Layout */
.legal-guides-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1000px) {
  .legal-guides-grid {
    grid-template-columns: 1fr;
  }
}

.legal-topic-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 10px;
}

.legal-topic-item:hover {
  border-color: var(--primary);
  background: #fafcff;
}

.legal-topic-item.active {
  border-color: var(--primary);
  border-width: 2px;
  background: #f0f5fc;
}

.legal-detail-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.problem-solution-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.issue-box {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.issue-box h5 {
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 4px;
}

.issue-box p {
  font-size: 12.5px;
  color: #7f1d1d;
  line-height: 1.5;
}

.solution-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.solution-box h5 {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 4px;
}

.solution-box p {
  font-size: 12.5px;
  color: #14532d;
  line-height: 1.5;
}

/* Video Script 4-Block Cards */
.video-scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 20px;
}

@media (max-width: 600px) {
  .video-scripts-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.video-block-row {
  background: var(--bg-app);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
}

.video-block-row.hook { border-left-color: var(--primary); }
.video-block-row.agitation { border-left-color: #f59e0b; }
.video-block-row.solution { border-left-color: #3b82f6; }
.video-block-row.cta { border-left-color: #26a25c; }

.video-block-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}

.video-block-text {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
}
