/*
Theme Name: Minimal Blog
Author: Gemini
Description: A minimalist blog theme based on a React design.
Version: 1.0
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    background: #fff;
}

a {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.site-logo {
    width: 40px;
    height: 40px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 8px;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.main-navigation {
    display: flex;
    flex-grow: 1; /* Make navigation take up available space */
    justify-content: flex-end; /* Push menu to the right */
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1; /* Make menu take up available space within nav */
    justify-content: flex-end; /* Push menu items to the right */
    align-items: stretch; /* Make all items same height */
}

.primary-menu li {
    flex-grow: 1; /* Distribute available space equally among items */
}

.primary-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px; /* Add padding for button-like appearance */
    text-decoration: none;
    font-size: 14px;
    font-weight: bold; /* Make the text bold */
    height: 100%; /* Make link fill the height of its parent li */
    box-sizing: border-box; /* Include padding in height calculation */
}

.main-navigation a {
    text-decoration: none;
    font-size: 14px;
}

.admin-button {
    padding: 5px 12px;
    background: #666;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
}

/* Content Layout */
.site-content .container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.content-area {
    flex: 1 1 700px;
    min-width: 0;
}

.widget-area {
    flex: 0 0 300px;
    min-width: 250px;
}

/* Posts */
.post-excerpt {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.post-thumbnail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.entry-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
}

.entry-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.entry-meta .post-date,
.entry-meta .post-categories {
    margin-right: 10px;
}

.entry-summary {
    color: #666;
    font-size: 15px;
    margin-bottom: 10px;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
}

/* Single Post */
.single .entry-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.single .entry-meta {
    margin-bottom: 30px;
}

.single .post-thumbnail img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 30px;
}

.single .entry-content {
    font-size: 16px;
    line-height: 1.8;
}

/* Sidebar */
.widget {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for a "box" effect */
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 12px;
}

.widget ul li a {
    font-size: 14px;
    text-decoration: none;
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.comments-title, .comment-reply-title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author .fn {
    font-size: 15px;
    font-weight: bold;
}

.comment-metadata a {
    font-size: 13px;
    color: #999;
    margin-left: 10px;
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
}

.form-submit .submit {
    padding: 12px 30px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
}


/* Footer */
.site-footer {
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
}

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

.nav-links .page-numbers {
    display: block;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.nav-links .dots {
    padding: 10px 0;
}

/* Contact Form */
#contact-form {
    margin-top: 30px;
    max-width: 500px;
}

#contact-form p {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    font-family: inherit;
}

#contact-form button[type="submit"] {
    padding: 12px 30px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.contact-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.contact-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Search Form */
.searchBox {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 5px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.searchInput {
    flex-grow: 1;
    border: none;
    background: none;
    padding: 8px 10px;
    font-size: 15px;
    color: #333;
    outline: none;
}

.searchInput::placeholder {
    color: #888;
}

.searchButton {
    background-color: #333;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.searchButton:hover {
    background-color: #555;
}

.searchButton .dashicons {
    line-height: 1;
    vertical-align: middle;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important; /* Many WordPress themes set this to break-word by default. */
}

.top-posts-section {
    margin: 40px 0;
}

.top-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.top-post-item {
    text-align: center;
}

.top-post-item img {
    max-width: 100%;
    height: auto;
}

/* Category Navigation */
.category-nav {
    background-color: transparent; /* Changed to transparent */
    padding: 0px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px; /* Added for spacing between categories and posts */
}

.category-button {
    display: inline-block;
    background-color: #f0f0f0; /* Light grey background for buttons */
    color: #333; /* Dark text for contrast */
    padding: 8px 15px; /* Button padding */
    margin: 5px; /* Spacing between buttons */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.category-button:hover {
    background-color: #ddd; /* Slightly darker grey on hover */
    color: #333;
    text-decoration: none;
}
