/* Terminal-inspired minimal blog styling */
:root {
    --bg: #0d1117;
    --fg: #c9d1d9;
    --fg-muted: #8b949e;
    --accent: #58a6ff;
    --border: #30363d;
    --code-bg: #161b22;
    --selection: #1f6feb;
}

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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    background-color: var(--bg);
    color: var(--fg);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

::selection {
    background-color: var(--selection);
    color: var(--fg);
}

/* Header & Navigation */
header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent);
    text-decoration: none;
}

.logo:before {
    content: '$ ';
    color: var(--fg-muted);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    color: var(--fg);
}

h1 {
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 1rem 0;
}

a {
    color: var(--accent);
    text-decoration: underline;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Post styling */
.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.post-meta time:before {
    content: '# ';
}

.post-content {
    margin: 2rem 0;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
}

/* Index page */
.index h1 {
    margin-bottom: 2rem;
}

.index h1:before {
    content: '> ';
    color: var(--fg-muted);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.2s, background-color 0.2s;
}

.post-item:hover {
    border-color: var(--accent);
    background-color: rgba(88, 166, 255, 0.05);
}

.post-item-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.post-item-title a {
    text-decoration: none;
    color: var(--fg);
}

.post-item-title a:hover {
    color: var(--accent);
}

.post-item-meta {
    color: var(--fg-muted);
    font-size: 0.85rem;
}

.post-item-description {
    margin-top: 0.5rem;
    color: var(--fg-muted);
}

/* Code blocks */
code {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    background-color: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background-color: var(--code-bg);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

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

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--fg-muted);
    font-style: italic;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin: 0.5rem 0;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--fg-muted);
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 1rem 0.75rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Resume page styles */
.resume {
    max-width: 100%;
}

.resume-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.resume-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.resume-label {
    font-size: 1.2rem;
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.resume-summary {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.resume-contact {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

.resume-contact a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Skills section */
.skills-section {
    margin-bottom: 3rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skill-tag {
    background-color: var(--code-bg);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s, background-color 0.2s;
}

.skill-tag:hover {
    border-color: var(--accent);
    background-color: rgba(88, 166, 255, 0.1);
}

/* Resume sections */
.resume-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.section-title:before {
    content: '## ';
    color: var(--fg-muted);
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent);
    z-index: 1;
}

.timeline-content {
    background-color: rgba(22, 27, 34, 0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.timeline-content:hover {
    border-color: var(--accent);
    background-color: rgba(88, 166, 255, 0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--fg);
}

.timeline-date {
    color: var(--fg-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}

.timeline-date:before {
    content: '[ ';
}

.timeline-date:after {
    content: ' ]';
}

.timeline-company {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.timeline-summary {
    color: var(--fg-muted);
    line-height: 1.6;
    margin: 0.75rem 0;
}

.timeline-highlights {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--fg-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Responsive timeline adjustments */
@media (max-width: 600px) {
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -2rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .resume-header h1 {
        font-size: 2rem;
    }

    .skills-container {
        gap: 0.5rem;
    }
}
