/* apps.css — estilos do portal de ferramentas clínicas (apps.html) */
/* Depende de: base.css, index.css */

/* ===== PAGE HEADER ===== */
.apps-page-header {
  background: linear-gradient(135deg, #0d2633 0%, var(--az) 55%, #163240 100%);
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}
.apps-page-header::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border: 70px solid rgba(1, 169, 206, .06);
  border-radius: 50%;
  pointer-events: none;
}
.apps-page-header .tag { color: var(--ci); }
.apps-page-header .title { color: #fff; margin: 0; }
.apps-page-header .title span { color: var(--ci); }
.apps-page-header .subtitle { color: rgba(255, 255, 255, .65); margin: 14px 0 0; max-width: 560px; }
.apps-page-header .divider { margin-bottom: 0; }

/* ===== CATEGORY HEADER ===== */
.cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 20px;
}
.cat-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--az);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.cat-line {
  flex: 1;
  height: 1px;
  background: var(--bd);
}
.cat-count {
  font-size: 9px;
  font-weight: 700;
  color: var(--ci);
  background: rgba(1, 169, 206, .1);
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .05em;
}

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

/* ===== APP CARD ===== */
.app-card {
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
  background: #fff;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shh);
  border-color: var(--ci);
}
.app-card-head {
  background: linear-gradient(135deg, var(--az), #2c6080);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.app-card-icon {
  font-size: 22px;
  color: var(--ci);
  flex-shrink: 0;
  margin-top: 3px;
}
.app-card-head-text { flex: 1; min-width: 0; }
.app-card-head-text h3 {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px;
}
.app-card-head-text p {
  font-size: 10px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.4;
  margin-bottom: 7px;
}
.app-card-age {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(1, 169, 206, .22);
  border: 1px solid rgba(1, 169, 206, .4);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 9px;
  font-weight: 700;
  color: var(--ci);
  letter-spacing: .04em;
}
.app-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-card-desc {
  font-size: 12px;
  color: var(--ci2);
  line-height: 1.65;
  flex: 1;
}
.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.app-tag {
  display: inline-block;
  background: rgba(1, 169, 206, .1);
  color: var(--ci);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.app-tag-admin {
  background: rgba(30, 65, 82, .1);
  color: var(--az);
}
.app-tag-public {
  background: rgba(60, 130, 92, .1);
  color: var(--ve);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .apps-page-header { padding: 110px 0 40px; }
  .apps-grid { grid-template-columns: 1fr; }
  .cat-header { margin-top: 36px; }
}
