/* Classic Early 2000s Blog CSS */
/* No gradients, no shadows, no animations - just simple, clean styling */

/* ===== BASE STYLES ===== */

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFF0; /* ivory */
    padding: 20px;
}

/* ===== LAYOUT ===== */

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FEFEFE;
    padding: 20px;
    border: 1px solid #CCC;
}

/* ===== TYPOGRAPHY ===== */

h1 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #999;
    color: #222;
}

h2 {
    font-size: 24px;
    font-weight: normal;
    margin: 20px 0 10px 0;
    color: #333;
}

h3 {
    font-size: 20px;
    font-weight: normal;
    margin: 15px 0 10px 0;
    color: #333;
}

p {
    margin: 0 0 15px 0;
    line-height: 1.7;
}

/* ===== LINKS ===== */

a {
    color: #003366;
    text-decoration: underline;
}

a:visited {
    color: #660099;
}

a:hover {
    color: #0055AA;
}

/* ===== HEADER ===== */

header {
    margin-bottom: 30px;
}

.site-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 5px;
    padding-bottom: 0;
    border-bottom: none;
}

.site-title a {
    color: #222;
    text-decoration: none;
}

.site-tagline {
    font-style: italic;
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* ===== NAVIGATION ===== */

nav {
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    text-align: center;
}

nav a {
    margin: 0 10px;
}

nav .sep {
    color: #999;
}

/* ===== CONTENT ===== */

main {
    margin-bottom: 30px;
}

/* ===== POSTS ===== */

.post {
    margin-bottom: 30px;
}

.post-title {
    font-size: 28px;
    margin-bottom: 8px;
    border-bottom: none;
}

.post-title a {
    color: #222;
    text-decoration: none;
}

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

.post-meta {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.post-content {
    margin-top: 15px;
}

.post-footer {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Separator between posts on homepage */
hr {
    border: none;
    border-top: 1px dotted #999;
    margin: 30px 0;
}

.post-separator {
    border-top: 1px solid #CCC;
}

/* ===== IMAGES ===== */

img {
    max-width: 100%;
    height: auto;
    border: 1px solid #999;
}

/* ===== BLOCKQUOTES ===== */

blockquote {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid #999;
    font-style: italic;
    color: #555;
}

/* ===== CODE ===== */

code {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    background-color: #F0F0F0;
    padding: 2px 5px;
    border: 1px solid #DDD;
}

pre {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    background-color: #F0F0F0;
    padding: 10px;
    border: 1px solid #DDD;
    overflow-x: auto;
    margin: 15px 0;
}

pre code {
    background: none;
    border: none;
    padding: 0;
}

/* ===== LISTS ===== */

ul, ol {
    margin: 15px 0 15px 30px;
}

li {
    margin-bottom: 5px;
}

/* ===== FOOTER ===== */

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #999;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.powered-by {
    font-style: italic;
    margin-top: 10px;
}

/* ===== FLASH MESSAGES ===== */

.flash {
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid;
}

.flash.success {
    background-color: #E7F4E7;
    border-color: #5A8F5A;
    color: #2D5F2D;
}

.flash.error {
    background-color: #F4E7E7;
    border-color: #8F5A5A;
    color: #5F2D2D;
}

.flash.info {
    background-color: #E7EEF4;
    border-color: #5A6F8F;
    color: #2D3F5F;
}

/* ===== ADMIN SECTION ===== */

.admin-section {
    margin: 20px 0;
}

.admin-section h2 {
    border-bottom: 1px solid #CCC;
    padding-bottom: 5px;
}

/* ===== TABLES ===== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    border: 1px solid #999;
}

th {
    background-color: #E0E0E0;
    padding: 8px;
    text-align: left;
    border: 1px solid #999;
    font-weight: bold;
}

td {
    padding: 8px;
    border: 1px solid #CCC;
}

tr:nth-child(even) {
    background-color: #F5F5F5;
}

tr:hover {
    background-color: #EEE;
}

/* ===== FORMS ===== */

form {
    margin: 20px 0;
}

fieldset {
    border: 1px solid #999;
    padding: 15px;
    margin: 20px 0;
}

legend {
    font-weight: bold;
    color: #333;
    padding: 0 10px;
}

label {
    display: block;
    margin: 15px 0 5px 0;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 5px;
    border: 1px solid #999;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
}

input[type="file"] {
    padding: 3px;
}

textarea {
    min-height: 200px;
    font-family: "Courier New", Courier, monospace;
}

input[type="submit"],
button {
    background-color: #EEE;
    color: #333;
    padding: 8px 20px;
    border: 1px solid #999;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
    margin-top: 10px;
}

input[type="submit"]:hover,
button:hover {
    background-color: #DDD;
}

.button-group {
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background-color: #EEE;
    color: #333;
    padding: 5px 15px;
    border: 1px solid #999;
    text-decoration: none;
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn:hover {
    background-color: #DDD;
    color: #333;
}

.btn-small {
    padding: 3px 10px;
    font-size: 12px;
}

.btn-danger {
    background-color: #F4E7E7;
    border-color: #8F5A5A;
}

.btn-danger:hover {
    background-color: #F0D0D0;
}

/* ===== DETAILS/SUMMARY ===== */

details {
    margin: 15px 0;
    border: 1px solid #CCC;
    padding: 10px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    margin: -10px;
    padding: 10px;
    background-color: #F5F5F5;
    border-bottom: 1px solid #CCC;
}

details[open] summary {
    margin-bottom: 10px;
}

/* ===== IMAGE GRID (Admin) ===== */

.image-grid {
    margin: 20px 0;
}

.image-item {
    display: inline-block;
    margin: 10px;
    text-align: center;
    vertical-align: top;
}

.image-item img {
    max-width: 150px;
    max-height: 150px;
}

.image-item .image-name {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    word-break: break-all;
}

.image-item .image-actions {
    margin-top: 5px;
}

/* ===== UTILITIES ===== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.small {
    font-size: 14px;
}

.muted {
    color: #666;
}

.error {
    color: #8F5A5A;
}

/* ===== PAGINATION ===== */

.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
}

/* ===== COMMENTS (if implemented) ===== */

.comments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dotted #999;
}

.comment {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #DDD;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-date {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.comment-body {
    margin-top: 8px;
}

/* ===== LOGIN PAGE ===== */

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #FFF;
    border: 2px solid #999;
}

.login-container h1 {
    margin-top: 0;
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.error-message {
    background: #FDD;
    border: 1px solid #C00;
    color: #C00;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== FEATURED IMAGES ===== */

.featured-image,
.featured-image-large {
    margin: 15px 0;
}

.featured-image img,
.featured-image-large img {
    display: block;
    margin: 0 auto;
}

/* ===== POST PREVIEW ===== */

.post-preview {
    margin-bottom: 30px;
}

.read-more {
    font-weight: bold;
}

/* ===== FORM GROUPS ===== */

.form-group {
    margin-bottom: 15px;
}

/* ===== UPLOAD SECTION ===== */

.upload-section {
    background: #F5F5F5;
    padding: 20px;
    border: 1px solid #DDD;
    margin-bottom: 20px;
}

/* ===== IMPORTED PUBLIC BLOG CONTENT ===== */

.latest-post {
    padding-bottom: 10px;
    border-bottom: 1px dotted #999;
}

.home-about {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #999;
}

.post-full {
    margin-bottom: 30px;
}

.post-content h1 {
    font-size: 28px;
}

.post-content figure {
    margin: 20px 0;
}

.post-content figcaption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.post-navigation {
    margin-top: 20px;
}

.error-page {
    border: 1px solid #8F5A5A;
    background: #F4E7E7;
    color: #5F2D2D;
    padding: 20px;
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .site-title {
        font-size: 32px;
    }

    nav a {
        margin: 0 5px;
    }
}
