/**
 * Wiki-Lyrical Engine Stylesheet
 * CNL-TN-2025-018
 * 
 * Contemplative theme matching Quotes Collection
 * Path: /Library/WebServer/Documents/michaelphamilton/quotes/WLE/css/style.css
 */

:root {
    --bg: #f7f3ed;
    --bg-warm: #f0ebe3;
    --paper: #fffef9;
    --text: #3d3632;
    --accent: #6b7c5e;
    --accent-dark: #4a5840;
    --muted: #7a746d;
    --border: #d9d2c7;
    --border-light: #e8e3db;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 0.02em;
    color: var(--text);
}

header h1 a {
    color: var(--text);
    text-decoration: none;
}

header h1 a:hover {
    color: var(--accent-dark);
}

.subtitle {
    color: var(--muted);
    font-style: italic;
    margin-top: 0.5rem;
}

nav {
    margin-top: 1.5rem;
}

nav a {
    color: var(--muted);
    margin: 0 1rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--accent-dark);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

/* Status Bar */
.status-bar {
    background: var(--paper);
    padding: 1rem 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-bar .state {
    color: var(--muted);
}

.status-bar .ready {
    color: var(--accent-dark);
    font-weight: 500;
}

.status-bar .last-wake {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

section h3 {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Dream Cards */
.dream-card {
    background: var(--paper);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
}

.dream-card .dream-header {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.dream-card .dream-header a {
    color: var(--accent-dark);
}

.dream-card .dream-header a:hover {
    text-decoration: underline;
}

.dream-card .output-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.5rem;
}

.dream-card .output-label:first-of-type {
    margin-top: 0;
}

.dream-card .limerick {
    white-space: pre-line;
    margin-bottom: 0.5rem;
}

.dream-card .haiku {
    font-style: italic;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    margin-bottom: 0.5rem;
    white-space: pre-line;
}

.dream-card .what-if {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.dream-card .feasibility {
    background: var(--bg-warm);
    border-left: 2px solid var(--accent);
    padding: 1rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.dream-card .feasibility-sources {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.dream-card .feasibility-sources .sources-label {
    color: var(--muted);
    margin-right: 0.5rem;
}

.dream-card .feasibility-sources a {
    color: var(--accent-dark);
}

.dream-card .feasibility-sources a:hover {
    text-decoration: underline;
}

.dream-card .meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.dream-card .featured-badge {
    color: var(--accent);
}

/* Sources */
.sources {
    background: var(--paper);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    margin-top: 1.5rem;
}

.source-count {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.source-list {
    list-style: none;
}

.source-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.source-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.source-list .extract {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Sample Grid (Buffer View) */
.buffer-status {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.sample-card {
    background: var(--paper);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    position: relative;
}

.sample-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.sample-card h4 {
    font-size: 0.9rem;
    font-weight: normal;
    margin-bottom: 0.35rem;
}

.sample-card h4 a {
    color: var(--accent-dark);
}

.sample-card p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.sample-card .set-number {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--bg-warm);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    font-size: 0.7rem;
    color: var(--muted);
}

/* About Section */
.about p {
    margin-bottom: 1rem;
    color: var(--text);
}

.about p:last-child {
    margin-bottom: 0;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

.pagination a {
    margin: 0 1rem;
    color: var(--accent-dark);
}

.pagination .page-num {
    color: var(--muted);
}

/* Utility */
.empty {
    text-align: center;
    color: var(--muted);
    padding: 3rem;
    font-style: italic;
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: var(--muted);
}

.back-link a:hover {
    color: var(--accent-dark);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0 2rem;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

footer .stats {
    margin-bottom: 0.5rem;
}

footer .links a {
    color: var(--muted);
}

footer .links a:hover {
    color: var(--accent-dark);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 2rem 0;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    nav a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    .status-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .dream-card {
        padding: 1.25rem;
    }
    
    .sample-grid {
        grid-template-columns: 1fr;
    }
}