/*
Theme Name: Clean Dark
Theme URI:
Author:
Description: A clean, minimal dark theme with responsive single-column layout.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: clean-dark
*/

/* ──────────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    background-color: #242424;
    color: #aaaaaa;
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

/* ──────────────────────────────────────────────
   TYPOGRAPHY
────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1.2em;
}

a {
    color: #5b9bd5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #82b8e8;
    text-decoration: underline;
}

ul, ol {
    margin: 0 0 1.2em 1.5em;
}

blockquote {
    border-left: 3px solid #5b9bd5;
    margin: 1.5em 0;
    padding: 0.5em 1.2em;
    color: #888;
    font-style: italic;
}

code, pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    background: #1a1a1a;
    border-radius: 3px;
}

code {
    padding: 0.15em 0.4em;
}

pre {
    padding: 1.2em;
    overflow-x: auto;
    margin-bottom: 1.2em;
}

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

hr {
    border: none;
    border-top: 1px solid #333;
    margin: 2em 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ──────────────────────────────────────────────
   LAYOUT
────────────────────────────────────────────── */
.site-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ──────────────────────────────────────────────
   HEADER & NAV
────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #1c1c1c;
    border-bottom: 1px solid #333;
}

.site-header-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-title:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Desktop nav */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.8rem;
}

.main-nav a {
    color: #aaaaaa;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: #ffffff;
    text-decoration: none;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #aaaaaa;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #1c1c1c;
        border-bottom: 1px solid #333;
        padding: 1rem 1.5rem;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #2e2e2e;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 0;
    }
}

/* ──────────────────────────────────────────────
   MAIN CONTENT
────────────────────────────────────────────── */
.site-main {
    padding: 3rem 0 4rem;
}

/* ──────────────────────────────────────────────
   POST LIST (archive / home)
────────────────────────────────────────────── */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-list-item {
    padding: 2rem 0;
    border-bottom: 1px solid #333;
}

.post-list-item:first-child {
    padding-top: 0;
}

.post-meta {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-list-item h2 {
    font-size: 1.4rem;
    margin-bottom: 0.4em;
}

.post-list-item h2 a {
    color: #ffffff;
    text-decoration: none;
}

.post-list-item h2 a:hover {
    color: #5b9bd5;
    text-decoration: none;
}

.post-excerpt {
    margin-bottom: 0.8em;
}

.read-more {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────
   SINGLE POST / PAGE
────────────────────────────────────────────── */
.entry-header {
    margin-bottom: 2rem;
}

.entry-header .post-meta {
    margin-top: 0.5em;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.8em;
}

/* ──────────────────────────────────────────────
   PAGINATION
────────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.4em 0.85em;
    border: 1px solid #333;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #aaaaaa;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.pagination a:hover {
    border-color: #5b9bd5;
    color: #5b9bd5;
    text-decoration: none;
}

.pagination .current {
    border-color: #5b9bd5;
    color: #5b9bd5;
}

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
.site-footer {
    background-color: #1c1c1c;
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: #555;
}

/* ──────────────────────────────────────────────
   COMMENTS
────────────────────────────────────────────── */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

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

.comment {
    padding: 1.2rem 0;
    border-bottom: 1px solid #2e2e2e;
}

.comment-meta {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 0.5em;
}

.comment-author-name {
    color: #ccc;
    font-weight: 600;
}

/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    color: #aaaaaa;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.6em 0.8em;
    margin-bottom: 1em;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #5b9bd5;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.3em;
}

.comment-form input[type="submit"],
button[type="submit"] {
    background: #5b9bd5;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6em 1.4em;
    transition: background 0.2s;
}

.comment-form input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #4a8bc4;
}
