* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #d4d4d4;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #000;
    padding: 10px 0;
    border-bottom: 1px solid #2e2e2e;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

nav a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #1a1a1a;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #f0f0f0;
}

.hero p {
    font-size: 16px;
    color: #888;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    color: #aaa;
    transition: color 0.3s, transform 0.2s;
}

.social-links a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* Categories */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.category-tag {
    background-color: #2e2e2e;
    color: #aaa;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* Posts Section */
.posts {
    padding: 40px 20px;
}

.post-card {
    background-color: #242424;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.post-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.post-card h2 a {
    color: #e0e0e0;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #007bff;
}

.post-meta {
    color: #777;
    font-size: 13px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

/* Single Post */
.post {
    padding: 60px 20px;
}

.post-header {
    background-color: #242424;
    padding: 40px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.post-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #f0f0f0;
}

.post-content {
    background-color: #242424;
    padding: 40px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    color: #d4d4d4;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #007bff;
}

.post-content code {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #2e2e2e;
}

.post-footer {
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.btn-back:hover {
    background-color: #4a4a4a;
}

/* About Page */
.about {
    padding: 60px 20px;
}

.about .container {
    background-color: #242424;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.about h1 {
    font-size: 36px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #007bff;
    color: #f0f0f0;
}

.about h2 {
    font-size: 24px;
    color: #007bff;
    margin-top: 35px;
    margin-bottom: 15px;
}

.about p {
    color: #d4d4d4;
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.interest-tag {
    background-color: #007bff;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.contact-links {
    margin: 20px 0;
}

.contact-links a {
    display: inline-block;
    margin-right: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 13px;
    background-color: #1a1a1a;
    border-top: 1px solid #2e2e2e;
    margin-top: 60px;
}

footer .social-links {
    margin-top: 15px;
}

footer .social-links a {
    color: #555;
    text-decoration: none;
    margin: 0 10px;
}

footer .social-links a:hover {
    color: #aaa;
}

/* Center content card */
.content-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-card {
    background-color: #242424;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.content-card h2 {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-card p,
.content-card ul {
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-card ul {
    margin-left: 20px;
    padding-left: 0;
    list-style-type: disc;
}

/* Section Navigation Cards (index.html) */
.section-nav {
    padding: 40px 20px 20px;
    background-color: #1a1a1a;
}

.section-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.section-nav-card {
    display: block;
    background-color: #242424;
    border-radius: 8px;
    padding: 30px 25px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s, transform 0.2s;
    border-top: 3px solid transparent;
}

.section-nav-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    transform: translateY(-3px);
    border-top-color: #007bff;
}

.section-nav-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.section-nav-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.section-nav-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 18px;
}

.section-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
}

/* Section heading for Latest Posts */
.section-heading {
    font-size: 22px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2e2e2e;
}

/* Page Hero (for reflections/writeups/knowledge pages) */
.page-hero {
    background-color: #000;
    padding: 50px 20px;
    text-align: center;
}

.page-hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

.page-hero-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 15px;
    color: #aaa;
    line-height: 1.7;
}

/* Post category labels */
.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-category--reflection {
    background-color: #0d2d45;
    color: #4da8e8;
}

.post-category--writeup {
    background-color: #0d2d1e;
    color: #3ecf7e;
}

.post-category--book {
    background-color: #2d1f00;
    color: #e8a020;
}

.post-category--course {
    background-color: #1e1030;
    color: #a070f0;
}

.post-category--knowledge {
    background-color: #2a2a2a;
    color: #aaa;
}

/* Meta row inside post cards */
.post-card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.post-card-meta-row .post-meta {
    margin-bottom: 0;
    margin-left: auto;
}

/* Difficulty badge (writeups) */
.difficulty-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.difficulty-badge--easy   { background-color: #0d2d1e; color: #3ecf7e; }
.difficulty-badge--medium { background-color: #2d2000; color: #e8a020; }
.difficulty-badge--hard   { background-color: #2d0d0d; color: #e85050; }

/* Status badge (knowledge) */
.status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge--completed    { background-color: #0d2d1e; color: #3ecf7e; }
.status-badge--in-progress  { background-color: #2d2000; color: #e8a020; }
.status-badge--up-next      { background-color: #2a2a2a; color: #aaa; }

/* Platform and author lines */
.writeup-platform,
.resource-author {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.writeup-platform strong,
.resource-author {
    color: #999;
}

/* Empty state cards */
.empty-state {
    text-align: center;
    padding: 50px 30px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h2 {
    color: #777;
}

.empty-state code {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Coming soon state */
.coming-soon {
    color: #555;
    font-size: 14px;
    font-style: italic;
    cursor: default;
}

/* Featured resource card */
.featured-resource {
    border-left: 4px solid #007bff;
}

/* Writeup images — constrained and centered */
.post-content img {
    display: block;
    max-width: 100%;
    width: 700px;
    margin: 20px auto;
    border-radius: 6px;
    border: 1px solid #2e2e2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Image captions — the italic lines under images */
.post-content img + em,
.post-content p > em {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: -12px;
    margin-bottom: 20px;
}

/* Post closing credit line */
.post-content > p:last-child em {
    display: block;
    text-align: center;
    color: #555;
    font-size: 13px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2e2e2e;
}

/* Table styling for dark theme */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.post-content th {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #2e2e2e;
    font-weight: 600;
}

.post-content td {
    padding: 10px 14px;
    border: 1px solid #2e2e2e;
    color: #bbb;
}

.post-content tr:nth-child(even) td {
    background-color: #1e1e1e;
}
