/* VybQuotes Hero */
.quotes-hero { text-align: center; padding: 70px 24px 40px; }
.quotes-hero h1 { font-family: var(--heading-font); font-size: 48px; font-weight: 400; color: var(--text); }
.quotes-hero > p { color: var(--text-muted); font-size: 16px; }
.quotes-count { margin-top: 8px; }
.quotes-count strong { font-family: var(--mono-font); color: var(--text-secondary); font-size: 18px; }
.quotes-hero.compact { padding: 24px 24px 16px; }
.quotes-hero.compact h1 { font-size: 28px; }
.quotes-hero.compact > p, .quotes-hero.compact .quotes-count { display: none; }

.quotes-search {
  max-width: 500px; margin: 28px auto 0; display: flex; align-items: center;
  border: 2px solid var(--border); border-radius: 28px; padding: 4px 6px 4px 18px;
  background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s;
}
.quotes-search:focus-within { border-color: #059669; box-shadow: 0 2px 16px rgba(217,119,6,0.15); }
.quotes-search .search-icon { color: var(--text-muted); margin-right: 10px; flex-shrink: 0; }
.quotes-search input { flex: 1; border: none; outline: none; font-size: 16px; padding: 12px 4px; background: transparent; color: var(--text); font-family: var(--body-font); }
.quotes-search input::placeholder { color: var(--text-muted); }
.quotes-search button { background: #059669; color: #fff; border: none; padding: 10px 24px; border-radius: 22px; font-size: 14px; font-weight: 600; cursor: pointer; }
.quotes-search button:hover { background: #047857; }

/* Categories */
.quotes-categories { max-width: 900px; margin: 0 auto; padding: 10px 24px 50px; }
.quotes-categories h2 { font-family: var(--heading-font); font-size: 20px; font-weight: 400; text-align: center; margin-bottom: 20px; color: var(--text-secondary); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 16px; text-align: center; cursor: pointer; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #059669; opacity: 0; transition: opacity 0.25s; }
.cat-card:hover { border-color: #059669; transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.cat-card:hover::before { opacity: 1; }
.cat-icon { font-size: 32px; margin-bottom: 8px; }
.cat-card h3 { font-size: 14px; font-weight: 600; color: var(--text); }

/* Results */
.search-results { max-width: 800px; margin: 0 auto; padding: 20px 24px 50px; }
.search-results h2 { font-family: var(--heading-font); font-size: 22px; font-weight: 400; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.results-grid { display: flex; flex-direction: column; gap: 10px; }
.result-item {
  padding: 16px 20px; border-radius: 10px; cursor: pointer; transition: all 0.2s;
  background: var(--bg); border: 1px solid var(--border); position: relative;
}
.result-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #059669; opacity: 0; transition: opacity 0.2s; border-radius: 4px 0 0 4px; }
.result-item:hover { border-color: #059669; transform: translateX(4px); }
.result-item:hover::before { opacity: 1; }
.result-item .tag { font-size: 11px; color: #fff; background: #059669; padding: 2px 10px; border-radius: 10px; display: inline-block; margin-bottom: 6px; font-weight: 600; }
.result-item h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.result-item:hover h3 { color: #059669; }
.result-item p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Document View */
.doc-layout { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
#doc-sidebar { align-self: start; }
.sidebar-sticky { position: sticky; top: 70px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px; max-height: calc(100vh - 90px); overflow-y: auto; }
.collection-name { font-family: var(--heading-font); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #059669; }
#sidebar-nav { display: flex; flex-direction: column; gap: 1px; }
#sidebar-nav a { font-size: 13px; color: var(--text-secondary); padding: 7px 10px; text-decoration: none; border-radius: 6px; transition: all 0.15s; }
#sidebar-nav a:hover { background: var(--bg-secondary); color: #059669; text-decoration: none; }
#sidebar-nav a.active { background: #05966915; color: #059669; font-weight: 600; }

#doc-article { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 36px 44px; min-height: 400px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { color: #059669; text-decoration: none; }
#doc-title { font-family: var(--heading-font); font-size: 30px; font-weight: 400; border-bottom: 2px solid #059669; padding-bottom: 8px; margin-bottom: 20px; }
#doc-body { font-family: var(--heading-font); font-size: 16px; line-height: 2; }
#doc-body p { margin-bottom: 16px; text-indent: 24px; }
#doc-body h2 { font-size: 22px; font-weight: 400; border-bottom: 1px solid var(--border); padding-bottom: 4px; margin: 28px 0 14px; text-indent: 0; }

/* Footer */
#footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 28px; text-align: center; margin-top: 50px; }
.footer-inner p { font-size: 13px; color: var(--text-muted); }
.footer-inner a { color: #059669; text-decoration: none; }
.small { font-size: 11px; margin-top: 4px; }

@media (max-width: 800px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-layout { grid-template-columns: 1fr; }
  #doc-sidebar { display: none; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-hero h1 { font-size: 32px; }
}
