/*
Theme Name: Journal Baby
Author: Darkury
Description: A bloat-free, classic journaling theme with a LiveJournal feel.
Version: 1.1
*/

/* Reset & Base Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bj-bg-color, #f5f5f5);
    color: var(--bj-text-color, #333333);
}

a {
    color: var(--bj-link-color, #005580);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

.site-container {
    max-width: 960px;
    margin: 20px auto;
    background: #ffffff;
    padding: 20px;
    box-sizing: border-box;
}

/* Optional Header */
.site-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

/* Flexbox Layout for Sidebar Options */
.main-content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.content-main {
    flex: 1;
    min-width: 300px;
}

.sidebar-primary {
    width: 250px;
}

/* LiveJournal Icon Feature */
.post-entry {
    margin-bottom: 40px;
    overflow: hidden; /* Clears the floated image */
}

.lj-userpic {
    float: left;
    margin: 0 15px 10px 0;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    padding: 2px;
    background: #fff;
}

/* Pretty, Simple Forms */
input[type="text"], input[type="email"], input[type="url"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: var(--bj-link-color, #005580);
    outline: none;
}

input[type="submit"] {
    background: var(--bj-link-color, #005580);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

input[type="submit"]:hover {
    opacity: 0.9;
}

/* Comments Section */
.comment-list { list-style: none; padding: 0; }
.comment-body {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* 2-Column Footer Widgets */
.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 20px;
}

/* Pagination Styling */
.pagination {
    margin: 40px 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: var(--bj-text-color, #333333);
}

.pagination .page-numbers:hover {
    border-color: var(--bj-link-color, #005580);
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: var(--bj-link-color, #005580);
    color: #fff;
    border-color: var(--bj-link-color, #005580);
}