/* ============================================================
   VISUAL PADRÃO - TGO TOOLS (usado também pelo TGO Conecta)
   ============================================================ */

body.tgo-tools-active {
  background: #f5f5f5 !important;
}

/* ============================================================
   CONTAINER PRINCIPAL
   ============================================================ */
.tgo-tools-wrapper {
  width: 100%;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
}

.tgo-tools-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  padding: 56px 64px;
  max-width: 1280px;
  width: 100%;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.tgo-breadcrumb {
  font-size: 14px;
  margin-bottom: 16px;
  color: #777;
}
.tgo-breadcrumb a {
  color: #2271b1;
  text-decoration: none;
}
.tgo-breadcrumb a:hover {
  text-decoration: underline;
}
.tgo-breadcrumb span {
  margin: 0 6px;
  color: #aaa;
}

/* ============================================================
   CABEÇALHO
   ============================================================ */
.tgo-tool-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tgo-tool-thumb {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.tgo-tool-thumb img {
  width: 100%;
  height: 100%;
  object-fit: auto;
}

.tgo-tool-header h1 {
  font-size: 32px;
  margin: 0 0 8px;
  color: #136738;
  font-weight: 700;
}

.tgo-tool-header p {
  margin: 0;
  color: #536075;
  font-size: 15px;
  line-height: 1.4;
}

/* ============================================================
   CONTEÚDO
   ============================================================ */
.tgo-tool-content {
  margin-top: 20px;
  line-height: 1.7;
  color: #444;
}

.tgo-tool-content iframe,
.tgo-tool-content embed {
  width: 100%;
  border: none;
  border-radius: 8px;
  margin-top: 15px;
}

.tgo-tool-content img {
  max-width: 100%;
  border-radius: 10px;
  height: auto;
}

/* ============================================================
   AÇÕES / BOTÕES
   ============================================================ */
.tgo-tool-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tgo-tool-actions a,
.tgo-tool-actions button {
  border-radius: 6px;
  font-size: 15px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tgo-btn-back {
  background: #fff;
  border: 1px solid #cfd6e4;
  color: #2b3a55;
}
.tgo-btn-back:hover {
  background: #f4f5f8;
}

.tgo-btn-main {
  background: #2271b1;
  border: none;
  color: #fff;
}
.tgo-btn-main:hover {
  background: #1a5b8a;
}

/* ============================================================
   GRID DE ITENS (LISTA)
   ============================================================ */
.tgo-tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.tgo-tool-item {
  flex: 0 0 30%;
  min-width: 260px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tgo-tool-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tgo-tool-thumb img {
  width: 80%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.tgo-tool-body {
  padding: 14px 16px;
}

.tgo-tool-body h5 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #1ea050;
  font-weight: 600;
}

.tgo-tool-body p {
  font-size: 13px;
  color: #555;
  margin: 0 0 10px;
  line-height: 1.4;
}

.tgo-tool-body a {
  background: #2271b1;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}

.tgo-tool-body a:hover {
  background: #1a5b8a;
}

/* ============================================================
   BLOQUEADO (cards restritos)
   ============================================================ */
.tgo-conecta-locked {
  opacity: 0.85;
  text-align: center;
}
.tgo-conecta-locked .tgo-btn-primary {
  background: #0b5cc4;
  border-color: #0b5cc4;
}
.tgo-conecta-locked .tgo-conecta-body p {
  color: #666;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .tgo-tool-item {
    flex: 0 0 47%;
  }
}

@media (max-width: 768px) {
  .tgo-tools-box {
    padding: 36px 28px;
  }

  .tgo-tool-header h1 {
    font-size: 26px;
  }

  .tgo-tool-item {
    flex: 0 0 100%;
  }

  .tgo-tool-thumb {
    width: 80px;
    height: 80px;
  }

  .tgo-tool-header {
    gap: 16px;
  }
}
/* ============================================================
   CONECTA CARDS
   ============================================================ */
.tgo-conecta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.tgo-conecta-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  overflow: hidden;
  flex: 0 0 30%;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .25s ease;
}

.tgo-conecta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.tgo-conecta-card .thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.tgo-conecta-card .body {
  padding: 14px 16px 20px;
}

.tgo-conecta-card .body h5 {
  font-size: 16px;
  margin: 0 0 5px;
  color: #117a3b;
  font-weight: 600;
}

.tgo-conecta-card .body p {
  font-size: 14px;
  color: #555;
  margin: 0 0 12px;
  min-height: 40px;
}

.tgo-conecta-card .btn-conecta {
  display: inline-block;
  background: #1ea050;
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .25s;
}

.tgo-conecta-card .btn-conecta:hover {
  background: #168840;
}

.tgo-conecta-card.bloqueado {
  opacity: 0.7;
  filter: grayscale(100%);
  position: relative;
}

.tgo-conecta-card .btn-bloqueado {
  background: #999;
  cursor: not-allowed;
}

/* Responsivo */
@media (max-width:768px){
  .tgo-conecta-card { flex: 0 0 100%; }
}
