/* css/stack-finder.css — Learn › Stack Finder: AI-builder tools directory (VibeLab design language) */

.sf-page { padding: 40px 0 80px; background: var(--bg); min-height: 60vh; }
.sf-page .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.sf-hero { margin-bottom: 4px; }
.sf-eyebrow {
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent-dark); background:var(--accent-soft); padding:4px 12px; border-radius:999px; margin-bottom:14px;
}
.sf-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight:800; line-height:1.1; margin:0 0 10px; color:var(--text); }
.sf-sub { font-size:16px; color:var(--text-secondary); max-width:640px; line-height:1.5; margin:0; }

/* Learn page tab strip (Articles & Courses / Stack Finder) */
.learn-maintabs-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.learn-maintabs { display: inline-flex; gap: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.learn-maintab { border: none; background: none; cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); padding: 9px 20px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.learn-maintab:hover { color: var(--text); }
.learn-maintab.active { background: var(--text); color: #fff; }
.learn-tabpanel[hidden] { display: none; }

/* Coming-soon banner (replaces the chat composer) */
.sf-coming { display:flex; align-items:center; gap:12px; padding:14px 18px; background:var(--bg-alt); border:1px solid var(--border); border-radius:14px; margin:22px 0 8px; }
.sf-coming-mark { width:34px; height:34px; border-radius:9px; background:var(--text); color:var(--accent); display:flex; align-items:center; justify-content:center; font-size:17px; flex:0 0 auto; }
.sf-coming-meta { flex:1; min-width:0; }
.sf-coming-title { font-weight:700; font-size:14px; color:var(--text); }
.sf-coming-sub { font-size:12.5px; color:var(--text-secondary); }
.sf-coming-pill { flex:0 0 auto; font-size:11px; font-weight:700; color:#5c6b00; background:rgba(200,255,0,.28); padding:6px 12px; border-radius:999px; }

/* Directory sections */
.sf-directory { margin-top:8px; }
.sf-stack-sec { margin-top:34px; }
.sf-stack-label { font-size:20px; font-weight:800; margin:0 0 2px; color:var(--text); }
.sf-stack-blurb { font-size:13px; color:var(--text-secondary); margin:0 0 14px; }

/* Grid — mirrors Explore's .project-grid breakpoints */
.sf-grid { display:grid; grid-template-columns:repeat(5, 1fr); gap:14px; }
@media (max-width:1100px) { .sf-grid { grid-template-columns:repeat(4, 1fr); } }
@media (max-width:900px)  { .sf-grid { grid-template-columns:repeat(3, 1fr); } }
@media (max-width:680px)  { .sf-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width:480px)  { .sf-grid { grid-template-columns:1fr; } }

/* Tool card */
.sf-card { position:relative; text-align:left; display:flex; flex-direction:column; gap:9px; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:15px; cursor:pointer; font:inherit; transition:border-color .15s, box-shadow .15s, transform .15s; }
.sf-card:hover { border-color:var(--accent); box-shadow:0 6px 18px rgba(0,0,0,.07); transform:translateY(-1px); }
.sf-card:focus-visible { outline:2px solid var(--accent-dark); outline-offset:2px; }
.sf-card-link { position:absolute; top:13px; right:13px; color:var(--text-muted); font-size:13px; }
.sf-card-ic { width:36px; height:36px; border-radius:10px; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.sf-card-fav { width:36px; height:36px; object-fit:contain; padding:6px; background:transparent; }
.sf-card-name { font-weight:700; font-size:14px; color:var(--text); line-height:1.15; }
.sf-card-what { font-size:12px; color:var(--text-secondary); line-height:1.35; flex:1; }

/* Letter-mark fallback (favicon load failure) */
.sf-letter { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:17px; }

/* Tier pills */
.sf-pill { align-self:flex-start; font-size:10px; font-weight:700; letter-spacing:.3px; text-transform:uppercase; padding:3px 9px; border-radius:999px; }
.sf-pill-freemium { background:rgba(200,255,0,.2); color:#5c6b00; }
.sf-pill-free { background:rgba(200,255,0,.34); color:#4f5d00; }
.sf-pill-paid { background:#f0f0f3; color:var(--text-secondary); }

/* Slide-in detail panel */
.sf-backdrop { position:fixed; inset:0; background:rgba(17,17,17,.34); opacity:0; transition:opacity .2s; z-index:1000; }
.sf-backdrop.open { opacity:1; }
.sf-panel { position:fixed; top:0; right:0; height:100%; width:380px; max-width:92vw; background:#fff; border-left:1px solid var(--border); box-shadow:-14px 0 36px rgba(0,0,0,.12); transform:translateX(100%); transition:transform .22s ease; z-index:1001; padding:24px; overflow-y:auto; }
.sf-panel.open { transform:translateX(0); }
.sf-panel-close { position:absolute; top:16px; right:16px; width:30px; height:30px; border:none; background:transparent; color:var(--text-muted); font-size:16px; cursor:pointer; border-radius:8px; }
.sf-panel-close:hover { background:var(--bg-alt); color:var(--text); }
.sf-panel-ic { width:48px; height:48px; border-radius:12px; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.sf-panel-fav { width:48px; height:48px; object-fit:contain; padding:9px; background:transparent; }
.sf-panel .sf-letter { width:48px; height:48px; border-radius:12px; font-size:22px; }
.sf-panel-head { display:flex; align-items:center; gap:10px; margin-top:14px; }
.sf-panel-head h3 { font-size:20px; font-weight:800; margin:0; color:var(--text); }
.sf-panel-label { font-size:12px; font-weight:700; color:var(--text); margin-top:18px; }
.sf-panel-text { font-size:13px; color:var(--text-secondary); line-height:1.55; margin:5px 0 0; }
.sf-panel-visit { display:block; text-align:center; margin-top:24px; background:var(--accent); color:var(--text); border-radius:12px; padding:13px; font-weight:700; font-size:13.5px; text-decoration:none; }
.sf-panel-visit:hover { background:var(--accent-dark); }
@media (max-width:480px) { .sf-panel { width:100%; max-width:100%; } }
