/* BlumPoker — shared site styles */

:root {
    --felt-dark: #0b3d2e;
    --felt: #0f4c3a;
    --felt-light: #146c50;
    --gold: #d4af37;
    --gold-light: #e8cc6b;
    --cream: #f7f3e8;
    --ink: #1c1c1c;
    --muted: #6b6b6b;
    --danger: #b3261e;
    --danger-bg: #fdecea;
    --success: #1e6b3a;
    --success-bg: #e8f5ec;
    --border: #ddd6c3;
    --radius: 10px;
    --max-width: 780px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--felt);
}
a:hover {
    color: var(--felt-light);
}

/* Header */
.site-header {
    background: var(--felt-dark);
    border-bottom: 4px solid var(--gold);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 18px 20px;
}
.brand {
    color: var(--cream) !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}
.main-nav a {
    color: var(--cream);
    text-decoration: none;
    margin-left: 22px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
}
.main-nav a:hover {
    color: var(--gold-light);
}

/* Hero */
.hero {
    text-align: center;
    padding: 50px 0 20px;
}
.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 6px;
    color: var(--felt-dark);
}
.hero p {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
}

/* Main */
.page-main {
    min-height: 60vh;
    padding: 30px 20px 60px;
}

/* Post list / cards */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 20px;
}
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.post-card-image img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}
.post-card-body {
    padding: 20px 24px;
}
.post-card-body h2 {
    margin: 0 0 6px;
}
.post-card-body h2 a {
    text-decoration: none;
    color: var(--ink);
}
.post-meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 12px;
}
.post-excerpt {
    margin: 0 0 12px;
}
.read-more {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-decoration: none;
}

.empty-state {
    color: var(--muted);
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    font-family: Arial, Helvetica, sans-serif;
}
.pagination-current {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Single post */
.post-full h1 {
    color: var(--felt-dark);
    margin-bottom: 6px;
}
.post-cover {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    margin: 18px 0;
}
.post-content {
    margin-top: 20px;
}
.post-content h2, .post-content h3 {
    color: var(--felt-dark);
}
.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}
.post-content pre {
    background: #1c1c1c;
    color: #f2f2f2;
    padding: 14px 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}
.post-content code {
    background: #eee7d3;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}
.post-content pre code {
    background: none;
    padding: 0;
}
.post-content blockquote {
    border-left: 4px solid var(--gold);
    margin: 16px 0;
    padding: 2px 18px;
    color: var(--muted);
}
.back-link {
    margin-top: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

/* Comments */
.comments-section {
    margin-top: 50px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
    font-family: Arial, Helvetica, sans-serif;
}
.comment-note {
    color: var(--muted);
    font-size: 0.9rem;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.comment {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.comment-author {
    font-weight: bold;
}
.comment-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 8px;
}

/* Forms (shared) */
.form-row {
    margin-bottom: 16px;
}
.form-row label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.form-row .field-hint {
    font-weight: normal;
    color: var(--muted);
    font-size: 0.8rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    background: #fff;
}
textarea {
    font-family: 'Courier New', monospace;
    resize: vertical;
}
button, .button {
    display: inline-block;
    background: var(--felt-dark);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .button:hover {
    background: var(--felt-light);
    color: #fff;
}
button.small, .button.small {
    padding: 6px 14px;
    font-size: 0.85rem;
}
.link-button {
    background: none;
    border: none;
    color: var(--felt);
    text-decoration: underline;
    padding: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.9rem;
}
.link-button.danger {
    color: var(--danger);
}
.inline-form {
    display: inline;
}
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
}
.alert p, .alert ul {
    margin: 0;
}
.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #bfe3cb;
}
.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #f3c6c2;
}

/* Static pages */
.static-page h1 {
    color: var(--felt-dark);
}
.contact-form, .comment-form {
    max-width: 520px;
}
.contact-alt {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background: var(--felt-dark);
    color: var(--cream);
    margin-top: 40px;
    border-top: 4px solid var(--gold);
}
.footer-inner {
    padding: 40px 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.footer-subscribe h3 {
    margin: 0 0 6px;
    color: var(--gold-light);
}
.footer-subscribe p {
    color: #cfe3da;
    font-size: 0.9rem;
    margin: 0 0 14px;
}
.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
    flex: 1;
    min-width: 180px;
}
.subscribe-form button {
    background: var(--gold);
    color: var(--ink);
}
.subscribe-form button:hover {
    background: var(--gold-light);
}
.subscribe-message {
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 1em;
    color: var(--gold-light);
}
.subscribe-message.is-error {
    color: #f2a8a2;
}
.footer-links {
    margin: 26px 0 14px;
}
.footer-links a {
    color: var(--cream);
    text-decoration: none;
    margin-right: 18px;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--gold-light);
}
.footer-copy {
    font-size: 0.8rem;
    color: #9db8ac;
    margin: 0;
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .main-nav a {
        margin-left: 0;
        margin-right: 16px;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
}
