/* ─── USE CASES DIRECTORY ─── */

.uc-hero {
  max-width: 1180px;
  margin: 100px auto 0;
  padding: 60px 24px 40px;
  text-align: center;
}

.uc-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.uc-hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ─── HERO BAR: Search + Submit pill ─── */
.uc-hero-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.uc-search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.uc-search-pill:focus-within {
  border-color: var(--accent);
}

.uc-search-pill svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.uc-search-pill input {
  width: 100%;
  padding: 0;
  font-family: var(--font);
  font-size: 15px;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
}

.uc-search-pill input::placeholder {
  color: var(--text-muted);
}

.submit-pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.submit-pill:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── CATEGORY PILLS ─── */
.uc-categories {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
}

.cat-browse-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.cat-pill:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.cat-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ─── HUB LIST (use case cards on hub) ─── */
.hub-list {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.uc-card .uc-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uc-niche-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
  background: var(--bg-card-alt, rgba(255,255,255,0.06));
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.uc-card .uc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.uc-card .uc-author {
  font-size: 12px;
  color: var(--text-muted);
}

.uc-card .uc-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.uc-card .uc-card-link:hover {
  opacity: 0.8;
}

/* ─── LEGACY SEARCH (keep for compat) ─── */
.uc-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.uc-search-inline {
  width: 320px;
}

.uc-search-inline input {
  width: 100%;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.uc-search-inline input::placeholder {
  color: var(--text-muted);
}

.uc-search-inline input:focus {
  border-color: var(--accent);
}

/* ─── STATS BAR (category pages) ─── */
.uc-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin: 0 auto 24px;
  max-width: 700px;
}

.uc-stats .stat {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.uc-stats .stat strong {
  color: var(--accent);
  font-weight: 700;
}

/* ─── SEARCH BAR (legacy) ─── */
.uc-search {
  max-width: 480px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.uc-search input {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.uc-search input::placeholder {
  color: var(--text-muted);
}

.uc-search input:focus {
  border-color: var(--accent);
}

/* ─── CATEGORY GRID (HUB) ─── */
.uc-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.uc-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uc-cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.uc-cat-card .cat-icon {
  font-size: 32px;
  line-height: 1;
}

.uc-cat-card .cat-name {
  font-size: 18px;
  font-weight: 700;
}

.uc-cat-card .cat-count {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.uc-cat-card .cat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── BREADCRUMBS ─── */
.uc-breadcrumb {
  max-width: 1180px;
  margin: 80px auto 0;
  padding: 20px 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.uc-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.uc-breadcrumb a:hover {
  color: var(--accent);
}

.uc-breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ─── CATEGORY PAGE HEADER ─── */
.uc-cat-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.uc-cat-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.uc-cat-hero .subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ─── TOOL FILTER BAR ─── */
.uc-tool-filter {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-filter-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.tool-filter-btn:hover,
.tool-filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ─── USE CASE CARDS ─── */
.uc-list {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.uc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uc-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.uc-card .uc-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uc-card .uc-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.uc-card .uc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.uc-card .uc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.uc-card .uc-results {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-xs);
  line-height: 1.4;
}

.uc-card .uc-quote {
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 14px;
  line-height: 1.5;
}

.uc-card .uc-source {
  font-size: 12px;
  color: var(--text-muted);
}

.uc-card .uc-source a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.uc-card .uc-source a:hover {
  color: var(--accent);
}

/* ─── RELATED CATEGORIES ─── */
.uc-related {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.uc-related h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.uc-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.uc-related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s var(--ease);
  text-align: center;
}

.uc-related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.uc-related-card .rel-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.uc-related-card .rel-name {
  font-size: 14px;
  font-weight: 600;
}

/* ─── CTA SECTION ─── */
.uc-cta {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.uc-cta h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.uc-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.uc-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ─── FAQ SECTION (Category pages) ─── */
.uc-faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.uc-faq h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.uc-faq .faq-q {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.uc-faq .faq-q:hover {
  border-color: var(--accent);
}

.uc-faq .faq-q::before {
  content: '+';
  margin-right: 12px;
  font-weight: 700;
  color: var(--accent);
}

.uc-faq .faq-q.open::before {
  content: '−';
}

.uc-faq .faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.uc-faq .faq-a.open {
  display: block;
}

/* ─── SUBMISSION FORM ─── */
.uc-submit {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.uc-submit h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.uc-submit .submit-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.submit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.submit-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submit-form .form-group.full-width {
  grid-column: 1 / -1;
}

.submit-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.submit-form label .required {
  color: var(--accent);
  margin-left: 2px;
}

.submit-form input,
.submit-form textarea,
.submit-form select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.submit-form input:focus,
.submit-form textarea:focus,
.submit-form select:focus {
  border-color: var(--accent);
}

.submit-form input::placeholder,
.submit-form textarea::placeholder {
  color: var(--text-muted);
}

.submit-form textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-form select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.submit-form select option {
  background: var(--bg-card);
  color: var(--text);
}

.submit-btn {
  grid-column: 1 / -1;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  margin-top: 8px;
}

.submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.loading {
  position: relative;
  color: transparent;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-msg {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: none;
}

.submit-msg.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.submit-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ─── INDIVIDUAL USE CASE PAGE ─── */
.uc-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.uc-detail-header {
  margin-bottom: 32px;
}

.uc-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.uc-detail-meta .uc-niche-tag {
  text-decoration: none;
  transition: all 0.2s;
}

.uc-detail-meta .uc-niche-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.uc-detail h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.uc-detail-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.uc-detail-author strong {
  color: var(--text);
}

.uc-detail-date {
  color: var(--text-muted);
}

.uc-detail-body {
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.uc-detail-body .lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
}

.uc-detail-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  line-height: 1.3;
}

.uc-detail-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.uc-detail-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
  line-height: 1.4;
}

.uc-detail-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.uc-detail-body strong {
  color: var(--text);
}

.uc-detail-body ul {
  margin: 16px 0 24px 20px;
  list-style: disc;
}

.uc-detail-body ul li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.uc-detail-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.uc-detail-body a:hover {
  opacity: 0.8;
}

.uc-detail-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.uc-detail-results {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  padding: 16px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius-xs);
  line-height: 1.5;
  margin-bottom: 20px;
}

.uc-detail-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent);
  padding: 16px 0 16px 20px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.uc-detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.uc-detail-related {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.uc-detail-related h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.uc-detail-related .uc-list {
  grid-template-columns: repeat(2, 1fr);
}

/* Make card links work as block */
a.uc-card {
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

a.uc-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .uc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .uc-list {
    grid-template-columns: 1fr;
  }
  .uc-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .submit-form {
    grid-template-columns: 1fr;
  }
  .uc-submit {
    padding: 0 16px 40px;
  }
  .uc-hero {
    padding: 48px 16px 32px;
    margin-top: 80px;
  }
  .uc-hero .subtitle {
    font-size: 16px;
  }
  .uc-hero-bar {
    flex-direction: column;
    gap: 10px;
  }
  .uc-search-pill {
    width: 100%;
  }
  .submit-pill {
    width: 100%;
    justify-content: center;
  }
  .uc-categories {
    padding: 0 16px 32px;
  }
  .cat-pills {
    gap: 8px;
  }
  .cat-pill {
    padding: 8px 14px;
    font-size: 12px;
  }
  .hub-list {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }
  .uc-detail {
    padding: 16px 16px 32px;
  }
  .uc-detail-related .uc-list {
    grid-template-columns: 1fr;
  }
  .uc-detail-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .uc-hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .uc-search-inline {
    width: 100%;
  }
  .uc-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }
  .uc-list {
    padding: 0 16px 40px;
  }
  .uc-cat-hero {
    padding: 16px 16px 32px;
  }
  .uc-breadcrumb {
    padding: 16px 16px 0;
  }
  .uc-stats {
    gap: 16px;
    padding: 16px;
  }
  .uc-search {
    padding: 0 16px;
  }
  .uc-related {
    padding: 0 16px 40px;
  }
  .uc-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .uc-cta {
    padding: 40px 16px 60px;
  }
  .uc-faq {
    padding: 0 16px 40px;
  }
  .uc-tool-filter {
    padding: 0 16px;
  }
  .uc-card {
    padding: 20px;
  }
}

/* Submit CTA link in hero (category pages) */
.submit-cta-link {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.submit-cta-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Stats + Submit inline on category pages */
.uc-cat-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.uc-cat-actions .stat {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.uc-cat-actions .stat strong {
  color: var(--accent);
  font-weight: 700;
}
.action-sep {
  color: var(--text-muted);
  font-size: 14px;
}

