/* Golnaz.RoughCut - Blog Styles */
/* Inspired by minimal GitHub Pages themes */

:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #4078c0;
    --background-color: #fff;
    --border-color: #e5e5e5;
    --code-bg: #f4f4f4;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Banner Styles */
.banner {
    margin-bottom: 40px;
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Header Styles */
header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: none;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

header h1 a:hover {
    color: var(--accent-color);
}

.tagline {
    color: var(--secondary-color);
    font-size: 1.1em;
    margin: 0 0 15px 0;
    font-style: italic;
}

.bio {
    color: var(--secondary-color);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

.bio strong {
    color: var(--primary-color);
}

.social-links {
    margin: 0;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.social-links a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.75em;
    color: #999;
    font-style: italic;
    margin-top: 20px;
}

/* Post List Styles */
.posts {
    margin-bottom: 50px;
}

.post-preview {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview time {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.post-preview h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.post-preview h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-preview h2 a:hover {
    color: var(--accent-color);
}

.post-preview p {
    margin: 0;
    color: var(--secondary-color);
}

/* Post Link (clickable card) */
.post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.post-link:hover {
    transform: translateX(5px);
}

.post-link:hover h2 {
    color: var(--accent-color);
}

.post-excerpt {
    color: var(--secondary-color);
    margin: 10px 0 15px 0;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.95em;
}

.post-link:hover .read-more {
    text-decoration: underline;
}

/* Single Post Styles */
.post {
    margin-bottom: 50px;
}

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

.post-header time {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.post-header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.3;
}

.post-content {
    font-size: 1.1em;
}

.post-content p {
    margin: 0 0 1.5em 0;
}

.post-content h2 {
    margin: 2em 0 1em 0;
    font-size: 1.4em;
    font-weight: 600;
}

.post-content h3 {
    margin: 1.5em 0 0.75em 0;
    font-size: 1.2em;
    font-weight: 600;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.5em 0;
    padding-left: 2em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.post-content blockquote {
    margin: 1.5em 0;
    padding: 0 0 0 1.5em;
    border-left: 4px solid var(--accent-color);
    color: var(--secondary-color);
    font-style: italic;
}

.post-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background-color: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
}

.post-content pre {
    background-color: var(--code-bg);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5em 0;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95em;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link::before {
    content: "← ";
}

/* Footer Styles */
footer {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 0.9em;
}

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .wrapper {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 2em;
    }

    .post-header h1 {
        font-size: 1.6em;
    }

    .post-preview h2 {
        font-size: 1.3em;
    }
}

/* 404 Error Page */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.error-page a {
    color: var(--accent-color);
    text-decoration: none;
}

.error-page a:hover {
    text-decoration: underline;
}
