
:root {
    --bg-color: #fdfbf7;
    --card-bg: #ffffff;
    --text-color: #2d2d2d;
    --text-dim: #6b6b6b;
    --accent-color: #8b4513;
    --accent-gold: #d4af37;
    --accent-light: #f5f1e9;
    --border-color: #e5e1d8;
    --header-height: 450px;
    --container-width: 1100px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

header {
    height: var(--header-height);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #1a1a1a;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: none;
}


.header-content {
    position: relative;
    z-index: 100;
    padding: 30px;
    width: 100%;
}

h1.site-title {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.header-content p {
    font-size: 1.2rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 500;
}

.container {
    max-width: var(--container-width);
    margin: -80px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.card {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 60px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.thread-list { list-style: none; }

.thread-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.thread-item:last-child { border-bottom: none; }

.thread-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    transition: color 0.2s;
}

.thread-link:hover { color: var(--accent-color); }

.metadata {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-badge {
    color: var(--accent-color);
    font-weight: 600;
}

.post {
    margin-bottom: 60px;
    padding: 40px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.post:last-child { border-bottom: none; }

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.username {
    color: var(--accent-color);
    font-weight: 700;
}

.post-content {
    font-size: 1.2rem;
    color: #333;
    font-family: 'Georgia', serif;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-gold);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--accent-light);
    font-style: italic;
    font-size: 1.1rem;
}

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
}

.bc-sep { margin: 0 10px; color: var(--accent-gold); }

footer {
    text-align: center;
    padding: 100px 20px;
    background: #1a1a1a;
    color: #888;
}

footer a { color: var(--accent-gold); text-decoration: none; }

.search-container {
    margin: 30px auto 0;
    max-width: 700px;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 2px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 2px;
    margin-top: 5px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    max-height: 450px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    text-align: left;
}

.search-result-item {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.search-result-item:hover { background: var(--accent-light); }
.search-result-title { font-weight: 700; display: block; font-family: 'Playfair Display', serif; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tag {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.tag:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

/* Enriched Content Styling */
.enriched-content {
    line-height: 1.8;
    color: #2c2c2c;
}

.enriched-content h1 {
    font-size: 2.2rem;
    margin: 40px 0 20px;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.enriched-content h2 {
    font-size: 1.8rem;
    margin: 35px 0 15px;
    color: var(--accent-color);
}

.enriched-content h3 {
    font-size: 1.4rem;
    margin: 25px 0 10px;
    color: var(--accent-color);
}

.enriched-content h4, .enriched-content h5, .enriched-content h6 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: var(--accent-color);
    font-weight: 600;
}

.enriched-content p {
    margin-bottom: 20px;
}

.enriched-content ul, .enriched-content ol {
    margin: 20px 0 20px 30px;
}

.enriched-content li {
    margin-bottom: 10px;
}

.enriched-content strong {
    color: var(--accent-color);
    font-weight: 600;
}

.enriched-content blockquote {
    font-style: italic;
    background: var(--accent-light);
    border-left: 4px solid var(--accent-gold);
    padding: 20px;
    margin: 20px 0;
}

.enriched-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}
