/* © 2026 Think! Design and Planning, LLC. All rights reserved.
   Granted! Modular Feature Styles (Readiness Studio & Live Opportunities) */

/* ── Shared Sub-Tabs ── */
.mod-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.mod-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mod-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary, #f8fafc);
}

.mod-tab.active {
  background: rgba(253, 185, 39, 0.14);
  border-color: var(--aggie-gold, #fdb927);
  color: var(--aggie-gold, #fdb927);
}

.mod-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Readiness Studio Layout ── */
.gs-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.gs-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  margin-bottom: 5px;
}

.gs-field select,
.gs-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text-primary, #f8fafc);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.14));
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.88rem;
}

.gs-textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.55;
}

.gs-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.gs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.gs-card {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 16px;
}

.gs-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-primary, #f8fafc);
}

/* ── Score Ring & Criteria Bars ── */
.gs-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gs-score-pill {
  font-size: 1.4rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 10px;
}

.gs-score-pill.strong { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.gs-score-pill.needs-work { background: rgba(250, 204, 21, 0.18); color: #fde047; }
.gs-score-pill.gap { background: rgba(248, 113, 113, 0.18); color: #f87171; }

.gs-crit-row {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gs-crit-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.gs-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.gs-bar-fill { height: 100%; border-radius: 99px; }
.gs-bar-fill.strong { background: #22c55e; }
.gs-bar-fill.needs-work { background: #facc15; }
.gs-bar-fill.gap { background: #ef4444; }

.gs-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary, #cbd5e1);
}

.gs-sub-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 3px;
}

.gs-pass { color: #4ade80; }
.gs-warn { color: #fde047; }
.gs-fail { color: #f87171; }

/* ── Compliance & Trigger Badges ── */
.gs-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gs-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;
}

.gs-check-item.pass { border-left-color: #22c55e; }
.gs-check-item.warn { border-left-color: #facc15; }
.gs-check-item.fail { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.08); }

.gs-flag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.gs-flag-chip {
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(253, 185, 39, 0.14);
  color: #fde68a;
  border: 1px solid rgba(253, 185, 39, 0.35);
}

.gs-ai-output {
  margin-top: 16px;
  white-space: pre-wrap;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-primary, #f8fafc);
}

.gs-verify-tag {
  background: #facc15;
  color: #0f172a;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Live Grants.gov Card Enhancements ── */
.opp-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.opp-filter-row select {
  background: rgba(15, 23, 42, 0.78);
  color: var(--text-primary, #f8fafc);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.14));
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.opp-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
