/* PeptiWiki — Core Styles */
/* Supplements Tailwind CSS CDN */

:root {
    --primary: #58c7e3;
    --primary-light: #8ddaee;
    --surface: #161b22;
    --bg: #0d1117;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
}

/* Fonts */
html, body { font-family: 'Satoshi', system-ui, -apple-system, sans-serif; }
h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #58c7e3; }

/* Focus outline */
*:focus-visible { outline: 2px solid #58c7e3; outline-offset: 2px; }

/* Text selection */
::selection { background: #58c7e3; color: #0d1117; }

/* Search input clear button */
input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth transitions */
a, button { transition: color 150ms, background-color 150ms, border-color 150ms, box-shadow 150ms; }

/* Admin specific */
.admin-sidebar { width: 240px; }

/* Prose-like styling for peptide rich text sections */
.prose-section { margin-bottom: 2rem; }
.prose-section h2 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 1rem; }
.prose-section h3 { font-weight: 600; color: #e6edf3; margin-top: 1rem; margin-bottom: 0.5rem; }
.prose-section p  { color: #8b949e; line-height: 1.7; margin-bottom: 0.75rem; }
.prose-section ul { list-style: none; padding: 0; margin: 0.75rem 0; }
.prose-section ul li { display: flex; align-items: flex-start; gap: 0.5rem; color: #8b949e; margin-bottom: 0.5rem; }
.prose-section ul li::before { content: '→'; color: #58c7e3; flex-shrink: 0; }
.prose-section ol { padding-left: 1.25rem; color: #8b949e; }
.prose-section ol li { margin-bottom: 0.5rem; }
.prose-section strong { color: #c9d1d9; }
.prose-section a { color: #58c7e3; }
.prose-section a:hover { text-decoration: underline; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #161b22 25%, #1c2128 50%, #161b22 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* Autocomplete dropdown */
#search-dropdown .search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    text-decoration: none;
    transition: background 150ms;
}
#search-dropdown .search-item:hover { background: rgba(88,199,227,0.08); }
#search-dropdown .search-item-name { font-weight: 600; color: #e6edf3; font-size: 0.875rem; }
#search-dropdown .search-item-cat  { font-size: 0.75rem; color: #58c7e3; }
