/* Mochin Theme - Main CSS */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    transition: color 0.2s ease;
}

.no-underline {
    text-decoration: none;
}

/* Post Content Typography */
.post-content,
.page-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.post-content p,
.page-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3,
.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content h4,
.page-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content ul,
.page-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content ol,
.page-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content li,
.page-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.dark .post-content blockquote,
.dark .page-content blockquote {
    border-left-color: #4b5563;
    color: #9ca3af;
}

.post-content code,
.page-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.875em;
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.dark .post-content code,
.dark .page-content code {
    background-color: #374151;
}

.post-content pre,
.page-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code,
.page-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-content a,
.page-content a {
    color: #2563eb;
    text-decoration: underline;
}

.dark .post-content a,
.dark .page-content a {
    color: #60a5fa;
}

.post-content a:hover,
.page-content a:hover {
    color: #1d4ed8;
}

.dark .post-content a:hover,
.dark .page-content a:hover {
    color: #93c5fd;
}

/* Navigation Menu */
.menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0;
}

/* Pagination */
.pagination a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pagination a:hover {
    color: #111827;
}

.dark .pagination a {
    color: #9ca3af;
}

.dark .pagination a:hover {
    color: #f9fafb;
}

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

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .comment {
    border-bottom-color: #374151;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-content {
    color: #4b5563;
}

.dark .comment-content {
    color: #9ca3af;
}

.comment-reply-link {
    font-size: 0.875rem;
    color: #6b7280;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    background-color: #fff;
    color: #111827;
}

.dark .comment-form input[type="text"],
.dark .comment-form input[type="email"],
.dark .comment-form input[type="url"],
.dark .comment-form textarea {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.comment-form input[type="submit"] {
    background-color: #111827;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: #374151;
}

.dark .comment-form input[type="submit"] {
    background-color: #f9fafb;
    color: #111827;
}

.dark .comment-form input[type="submit"]:hover {
    background-color: #e5e7eb;
}

/* Tags */
.post-tags a {
    color: #6b7280;
    text-decoration: none;
}

.post-tags a:hover {
    color: #111827;
}

.dark .post-tags a {
    color: #9ca3af;
}

.dark .post-tags a:hover {
    color: #f9fafb;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress Alignments */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Captions */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

.dark .wp-caption-text {
    color: #9ca3af;
}
