/* UI/UX Pro Max Optimization - Geek/Technical Edition (Light Mode Only) */

/* Root Variables - Technical/Brutalist Palette */
:root {
    --primary: #0057FF; /* International Klein Blue / Tech Blue */
    --primary-hover: #00308F;
    --text-main: #111111;
    --text-muted: #4B5563;
    --text-light: #6B7280;
    --bg-body: #FFFFFF;
    --bg-card: #FFFFFF;
    --border-color: #000000;
    --border-width: 2px;
    --shadow-offset: 4px;
    --shadow-color: #000000;
    
    /* Fonts */
    --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", Consolas, Monaco, "Andale Mono", monospace;
}

/* 1. Global Typography & Reset */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 700;
    margin-top: 1.5em; /* Breathing room */
    margin-bottom: 0.75em;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.15s ease-in-out;
}

a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
    text-decoration: none;
}

/* 2. Technical Card Layout for Posts */
.post-preview {
    background-color: var(--bg-card);
    border: var(--border-width) solid var(--border-color);
    border-radius: 0; /* Sharp corners */
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--shadow-color); /* Hard Shadow */
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-preview:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 0 var(--shadow-color);
}

.post-title {
    font-family: var(--font-mono);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-main);
}

.post-subtitle {
    font-size: 16px; /* Slightly smaller for hierarchy */
    margin-bottom: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.post-content-preview {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #E5E7EB; /* Tech divider */
}

/* Hide Separators */
hr {
    display: none;
}

/* 3. Navigation - "System Bar" Style */
.navbar-custom {
    background: #FFFFFF;
    border-bottom: var(--border-width) solid var(--border-color);
    box-shadow: none;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-mono);
    color: var(--text-main) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.navbar-custom .nav li a {
    font-family: var(--font-mono);
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

.navbar-custom .nav li a:hover {
    color: var(--primary) !important;
    background-color: #F3F4F6;
    text-decoration: underline;
}

/* 4. Header Blocks */
header.intro-header .site-heading h1,
header.intro-header .post-heading h1 {
    font-family: var(--font-mono);
    text-shadow: 2px 2px 0 #000; /* Retro shadow */
    background-color: #000; /* High contrast background block */
    color: #fff;
    display: inline-block; /* Hug content */
    padding: 10px 20px;
}

header.intro-header .site-heading .subheading,
header.intro-header .post-heading .subheading {
    font-family: var(--font-sans);
    text-shadow: none;
    background-color: #fff;
    color: #000;
    display: inline-block;
    padding: 5px 15px;
    margin-top: 10px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 0 #000;
    font-weight: 600;
}

header.intro-header .post-heading .meta {
    background-color: #fff;
    color: #000;
    padding: 5px 10px;
    margin-top: 15px;
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    border: 2px solid #000;
}

header.intro-header .post-heading .tags .tag {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    box-shadow: 2px 2px 0 0 #000;
    font-family: var(--font-mono);
    font-size: 12px;
    border-radius: 0;
    font-weight: 700;
}

header.intro-header .post-heading .tags .tag:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 0 #000;
    text-decoration: none;
    color: var(--primary);
}

/* 5. Pagination - "Terminal Buttons" */
.pager li > a, .pager li > span {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    color: #000;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 10px 25px;
    box-shadow: 3px 3px 0 0 #000;
    transition: all 0.1s;
}

.pager li > a:hover, .pager li > a:focus {
    background-color: #000;
    color: #fff;
    border-color: #000;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 0 rgba(0,0,0,0.5);
}

/* 6. Footer */
footer {
    background-color: #FAFAFA;
    border-top: 2px solid #000;
    padding: 50px 0;
    font-family: var(--font-mono);
}

footer .copyright {
    color: var(--text-main);
    font-size: 12px;
}

/* 7. Article Content */
.post-container {
    font-size: 17px;
    color: #111;
}

.post-container p {
    margin-bottom: 1.5em;
}

/* Blockquotes: Terminal Style */
.post-container blockquote {
    border-left: 4px solid #000;
    background: #F3F4F6;
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-style: normal;
    color: #374151;
    margin: 2rem 0;
    border-radius: 0;
    box-shadow: inset 4px 0 0 0 #000; /* Double line effect */
}

.post-container img {
    border: 2px solid #000;
    border-radius: 0;
    padding: 5px;
    background: #fff;
    box-shadow: 4px 4px 0 0 #000;
    margin: 2rem auto;
}

/* 8. Code Blocks - "Notepad" Style */
pre {
    background-color: #F8F9FA; /* Light gray */
    border: 2px solid #000;
    border-radius: 0;
    color: #111;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    box-shadow: 4px 4px 0 0 #E5E7EB;
}

code {
    font-family: var(--font-mono);
}

p code {
    background-color: #E5E7EB;
    color: #000;
    padding: 2px 6px;
    border-radius: 0;
    font-weight: 500;
    border: 1px solid #D1D5DB;
}

