/* Client theme overrides. The core stylesheets load before this file. */

/* ==========================================
   RESET & GLOBAL TYPOGRAPHY
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --text-color: #222222;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --accent-color: #111111;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding: 40px 20px;
}

/* Force 16px sans-serif across all common typography elements */
p, a, span, li, button, input, h2, h3, h4, h5, h6 {
    font-family: inherit !important;
    font-size: 16px !important;
}

/* Clear floating elements */
.clear, .pull-right, .pull-left, .flush-right, .flush-left {
    float: none !important;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
#container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
}

/* ==========================================
   HEADER & USER NAV
   ========================================== */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

#logo img {
    max-height: 32px;
    width: auto;
}

#header p {
    color: var(--text-muted);
}

#header a {
    color: var(--text-color);
    text-decoration: underline;
}

/* ==========================================
   NAVIGATION
   ========================================== */
#nav {
    display: flex;
    gap: 20px;
    list-style: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

#nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

#nav a:hover,
#nav a.active {
    color: var(--text-color);
    font-weight: 600;
}

/* ==========================================
   PAGE CONTENT & TITLE
   ========================================== */
/* Page Title (Georgia, Larger Size) */
.thread-body h1 {
    font-family: Georgia, serif !important;
    font-size: 32px !important;
    font-weight: normal;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.main-content p {
    color: var(--text-muted);
}

/* ==========================================
   SIDEBAR & BUTTONS
   ========================================== */
#landing_page {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
}

.sidebar {
    width: 100%;
}

.front-page-button {
    display: flex;
    gap: 12px;
}

.front-page-button p {
    flex: 1;
}

/* Minimalist Button Styling */
a.button,
.button {
    display: block !important;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--border-color) !important;
    background: transparent !important;
    color: var(--text-color) !important;
}

a.button.blue {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    border-color: var(--accent-color) !important;
}

a.button:hover {
    opacity: 0.85;
}

/* ==========================================
   FOOTER & MODALS
   ========================================== */
#footer {
    max-width: 800px;
    margin: 32px auto 0;
    text-align: center;
    color: var(--text-muted);
}

#footer p, #footer a {
    font-size: 14px !important; /* Slightly reduced for subtle footer display */
    color: var(--text-muted);
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* Overlay & Loading State */
#overlay {
    background-color: #ffffff !important;
    opacity: 0.8 !important;
}

#loading {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
