/*
Theme Name: FatherJokes Classic
Theme URI: https://fatherjokes.com/
Author: Environmental Apps LLC
Description: A clean classic two-column theme inspired by vintage forum layouts, built for FatherJokes.com.
Version: 1.0
Text Domain: fatherjokes-classic
*/

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #dae0e6; /* reddit-ish gray */
    color: #222;
}

/* Header bar */

.fj-header {
    background: #cee3f8;
    border-bottom: 1px solid #5f99cf;
}

.fj-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fj-logo a {
    font-weight: 700;
    font-size: 20px;
    color: #222;
    text-decoration: none;
}

.fj-logo a span {
    color: #ff4500; /* reddit orange accent */
}

.fj-main-nav a {
    margin-left: 16px;
    text-decoration: none;
    color: #336699;
    font-size: 13px;
}

.fj-main-nav a:hover {
    text-decoration: underline;
}

/* Layout */

.fj-content-wrapper {
    max-width: 1000px;
    margin: 12px auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 12px;
}

/* Main list */

.fj-main {
    background: #f5f5f5;
    border: 1px solid #c5c5c5;
}

.fj-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fj-post {
    display: grid;
    grid-template-columns: 40px 1fr;
    padding: 8px 8px 10px;
    border-bottom: 1px solid #e5e5e5;
    background: #fcfcfc;
}

.fj-post:nth-child(odd) {
    background: #fbfbfb;
}

/* Voting stub (non-functional for now) */

.fj-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 4px;
    font-size: 13px;
    color: #888;
}

.fj-vote button {
    background: #d7d7d7;
    border: 1px solid #b2b2b2;
    padding: 2px 4px;
    margin: 1px 0;
    cursor: pointer;
    font-size: 12px;
}

.fj-vote button:hover {
    background: #e3e3e3;
}

/* Post body */

.fj-post-body {
    font-size: 13px;
}

.fj-post-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.fj-post-title a {
    color: #1a0dab;
    text-decoration: none;
}

.fj-post-title a:hover {
    text-decoration: underline;
}

.fj-post-meta {
    font-size: 11px;
    color: #777;
    margin-bottom: 4px;
}

.fj-post-setup {
    margin: 4px 0;
}

.fj-post-punchline {
    margin: 0 0 4px;
    font-weight: 700;
}

/* Sidebar */

.fj-sidebar {
    font-size: 13px;
}

.fj-sidebar-box {
    background: #f5f5f5;
    border: 1px solid #c5c5c5;
    padding: 8px;
    margin-bottom: 12px;
}

.fj-sidebar-box h3 {
    font-size: 13px;
    margin-top: 0;
}

/* Single joke */

.fj-single {
    padding: 10px;
}

.fj-single h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.fj-single-setup {
    margin: 8px 0;
}

.fj-single-punchline {
    font-weight: 700;
    margin-bottom: 10px;
}

/* Footer */

.fj-footer {
    max-width: 1000px;
    margin: 12px auto 24px;
    font-size: 11px;
    color: #777;
    text-align: center;
}

.fj-ad-wrapper {
    margin: 20px 0;
    padding: 14px;
    background: #f6f7f8;
    border: 1px solid #d3d6da;
    border-radius: 4px;
    text-align: center;
    position: relative;
}

.fj-ad-label {
    position: absolute;
    top: -9px;
    left: 12px;
    background: #f6f7f8;
    color: #7d7d7d;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fj-ad-wrapper .adsbygoogle {
    display: block !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .fj-ad-wrapper {
        padding: 12px;
    }
    .fj-ad-wrapper .adsbygoogle {
        width: 100% !important;
        height: auto !important;
    }
}

.fj-ad-sidebar {
    margin-bottom: 20px;
}

.fj-sidebar .fj-ad-wrapper {
    margin-top: 0;
    margin-bottom: 20px;
}
