/* App-specific extensions layered on top of the Conceptboard base theme (styles.css). */

/* ---- Landing / hero ---- */
.hero { max-width: 720px; margin: 8vh auto; padding: 0 24px; }
.hero .logo { display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.1; font-size: 18px; margin-bottom: 32px; }
.hero .logo-mark {
  width: 40px; height: 40px; background: var(--primary); color: white;
  border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px;
}
.hero h1 { font-size: 2.25rem; margin: 0 0 12px 0; }
.hero .lead { font-size: 1.05rem; color: var(--text-muted); margin: 0 0 28px 0; line-height: 1.6; }
.config-card { background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-top: 28px; }
.config-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; font-size: 13px; }
.config-card dt { color: var(--text-muted); }
.config-card dd { margin: 0; }

/* ---- Generic helpers ---- */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wrap-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* method pills for the API console / endpoint tables */
.method { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.03em; }
.method.get { background: var(--primary-light); color: var(--primary-dark); }
.method.post { background: var(--success-bg); color: var(--success); }
.method.patch { background: #fff3e0; color: #b26a00; }
.method.delete { background: var(--danger-bg); color: var(--danger); }

/* JSON viewer */
.json-view {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--primary-dark); color: #e7e9f7;
  padding: 16px 18px; border-radius: var(--radius); margin: 0; max-height: 560px; overflow: auto;
}
.json-view .k { color: #9fb4ff; }
.json-view .s { color: #b9e6c4; }
.json-view .n { color: #ffd58a; }
.json-view .b { color: #ff9e9e; }

/* token panel */
.token-box { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.scope-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scope-chips .badge { text-transform: none; }

/* board card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.board-card { display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: white; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.board-card:hover { border-color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.board-card h3 { margin: 0 0 6px 0; font-size: 1rem; font-weight: 600; }
.board-card .meta-line { font-size: 12px; color: var(--text-muted); }
.board-card .id { font-family: ui-monospace, monospace; font-size: 11px; color: var(--text-subtle); margin-top: 10px; overflow-wrap: anywhere; }

/* inline table action forms */
.table td form { display: inline; }
.inline-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.btn-xs { padding: 3px 10px; font-size: 12px; line-height: 1.4; }

/* empty state */
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-muted); }
.empty-state .big { font-size: 32px; margin-bottom: 8px; }

/* detail header */
.detail-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.detail-head .grow { flex: 1; min-width: 0; }
.detail-head h1 { margin: 0; }

/* definition grid for resource attributes */
.attr-grid { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; font-size: 14px; }
.attr-grid dt { color: var(--text-muted); }
.attr-grid dd { margin: 0; overflow-wrap: anywhere; }

/* sub-tabs inside a page */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.subtabs a { padding: 8px 14px; font-size: 13px; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a:hover { color: var(--text); }
.subtabs a.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

/* sidebar footer (logged-in user / logout) */
.sidebar .nav-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.sidebar .nav-footer .who { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; overflow-wrap: anywhere; }

/* flash messages float at the top of content */
.flash { margin-bottom: 20px; }
