/**
 * Stephen Nickerson - Shared Styles
 * Base styles and CSS variables for site-wide consistency
 */

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #4a9eff;
    --accent-glow: rgba(74, 158, 255, 0.15);
    --max-width: 800px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   Site Header / Navigation
   ═══════════════════════════════════════════════════════════ */

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-header .site-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.site-header .site-name:hover {
    color: var(--accent);
}

.site-header .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.site-header .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   Site Footer
   ═══════════════════════════════════════════════════════════ */

.site-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   Page Header (for article/whitepaper pages)
   ═══════════════════════════════════════════════════════════ */

.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.page-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.page-header .breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    color: var(--accent);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-header .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   Content Sections
   ═══════════════════════════════════════════════════════════ */

section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   Article/Content Styles
   ═══════════════════════════════════════════════════════════ */

.content {
    padding: 2rem 0;
}

.content h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.content h3 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
}

.content p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.content p:last-child {
    margin-bottom: 0;
}

.content ul, 
.content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.content a {
    color: var(--accent);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content code {
    background: var(--surface);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content pre code {
    background: none;
    padding: 0;
}

.content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* ═══════════════════════════════════════════════════════════
   Clarity Verification Badge
   ═══════════════════════════════════════════════════════════ */

.clarity-verified {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(74, 158, 255, 0.06) 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.clarity-verified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.clarity-verified-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.clarity-verified-indicator {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow);
    animation: clarity-pulse 2s ease-in-out infinite;
}

@keyframes clarity-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow); }
}

.clarity-verified-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.clarity-verified-status {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.clarity-verified-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
    margin-bottom: 1rem;
}

.clarity-verified-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.clarity-verified-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clarity-verified-meta-label {
    color: var(--text-muted);
    opacity: 0.7;
}

.clarity-verified-meta-value {
    color: var(--accent);
}

/* Terminal-style agent list */
.clarity-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.clarity-agent-tag {
    font-size: 0.65rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    padding: 0.25rem 0.5rem;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 4px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   Article List (index pages)
   ═══════════════════════════════════════════════════════════ */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.article-item:hover {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.05);
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.article-title {
    font-weight: 500;
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════════════════════ */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.card-accent {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(74, 158, 255, 0.08) 100%);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   Coming Soon / Placeholder
   ═══════════════════════════════════════════════════════════ */

.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.coming-soon h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════════════ */

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

