/*
Theme Name: Minimalist Theme
Theme URI: https://example.com/minimalist-theme
Author: Antigravity
Author URI: https://example.com
Description: A minimalist WordPress theme with a dark blue sidebar and generous whitespace.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimalist-theme
*/

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    /* Slate 700 */
    background-color: #f8fafc;
    /* Slate 50 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: #0f172a;
    /* Slate 900 - Dark Blue */
    color: #e2e8f0;
    /* Slate 200 */
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    flex-shrink: 0;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
    color: #fff;
}

.sidebar-header a {
    color: #fff;
    text-decoration: none;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav li {
    margin-bottom: 1rem;
}

.category-nav a {
    text-decoration: none;
    color: #94a3b8;
    /* Slate 400 */
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
    padding: 0.5rem 0;
}

.category-nav a:hover,
.category-nav .current-cat a {
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.875rem;
    color: #64748b;
    /* Slate 500 */
}

/* Content Area Styling */
.content-area {
    flex: 1;
    padding: 5rem 8rem;
    /* Generous whitespace */
    max-width: 1200px;
    /* Limit line length for readability */
}

.post {
    margin-bottom: 6rem;
    max-width: 750px;
    /* Optimal reading width */
}

.post-header {
    margin-bottom: 2rem;
}

.post-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #3b82f6;
    /* Blue 500 */
    margin-bottom: 0.5rem;
    display: block;
}

.post-category a {
    color: #3b82f6;
    text-decoration: none;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    /* Slate 800 */
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.post-title a {
    color: #1e293b;
    text-decoration: none;
}

.post-meta {
    font-size: 0.875rem;
    color: #64748b;
    /* Slate 500 */
}

/* Typography & Content Styling */
.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: #475569;
    /* Slate 600 */
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #1e293b;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #334155;
}

/* Code Block Styling */
pre {
    background-color: #1e293b;
    /* Slate 800 */
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    /* Slate 200 */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 2rem;
    }

    .content-area {
        padding: 3rem 2rem;
    }

    .post-title {
        font-size: 2rem;
    }
}