:root {
    --bg-primary: #f6f8fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --accent-green: #2da44e;
    --accent-blue: #0969da;
    --accent-purple: #8250df;
    --border-color: #d0d7de;
    --shadow: rgba(0, 0, 0, 0.08);
    --hover-bg: #f6f8fa;
    --terminal-bg: #1e1e1e;
    --terminal-text: #d4d4d4;
    --terminal-border: #3e3e42;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Header / Navigation */
.site-header {
    display: none;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-green);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.prompt-symbol {
    color: var(--accent-blue);
    font-weight: bold;
}

.nav-right {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: var(--hover-bg);
}

.nav-icon {
    font-size: 1rem;
}

/* Hero Terminal */
.hero {
    margin: 0 0 1rem;
}

.terminal-window {
    background-color: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    background-color: #2d2d30;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--terminal-border);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.terminal-buttons {
    display: flex;
    gap: 0.4rem;
}

.terminal-buttons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.btn-close {
    background-color: #ff5f56;
    cursor: pointer;
}

.btn-minimize {
    background-color: #ffbd2e;
}

.btn-maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: #858585;
    font-size: 0.75rem;
    flex: 1;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.terminal-nav {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    z-index: 1;
}

.terminal-nav-mobile {
    display: none;
}

.terminal-nav a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.terminal-nav a:hover {
    background-color: rgba(78, 201, 176, 0.2);
    color: #4ec9b0;
}

.terminal-body {
    padding: 2rem;
    font-size: 0.9rem;
    line-height: 1.8;
    display: flex;
    gap: 2rem;
    align-items: center;
    background-color: var(--terminal-bg);
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.terminal-simple {
    padding: 1rem 2rem;
    min-height: auto;
    display: block;
}

.terminal-content {
    flex: 1;
}

.terminal-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prompt {
    color: #4ec9b0;
    font-weight: 600;
}

.command {
    color: #569cd6;
}

.output {
    color: var(--terminal-text);
    padding-left: 1rem;
}

.cursor {
    color: #4ec9b0;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Posts Section */
.posts {
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.posts-grid {
    display: grid;
    gap: 1rem;
}

.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-image {
    display: none;
}

.post-content {
    padding: 1rem;
}

.post-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    align-items: center;
    color: var(--text-secondary);
}

.category {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content time {
    color: var(--text-secondary);
}

.post-meta::before {
    content: '';
    display: none;
}

.post-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--accent-blue);
}

.post-card p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.read-more {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

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

/* Contact Links (About Page) */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background-color: var(--hover-bg);
}

.contact-link svg {
    flex-shrink: 0;
}

/* Experience Section (About Page) */
.page-about .post-content h2 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.page-about .post-content p strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.page-about .post-content p em {
    color: var(--text-secondary);
    font-style: normal;
    font-size: 0.85rem;
    opacity: 0.8;
}

.page-about .post-content h2 + p {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* AWS - Orange (always visible) */
.page-about .post-content h2 + p::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #FF9900;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.page-about .post-content h2 + p + p {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

/* Microsoft - 4 dots in a square (2x2 grid) on the Microsoft line */
.page-about .post-content h2 + p + p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background-color: #F25022;
    border-radius: 50%;
    box-shadow: 
        0 0 0 2px rgba(242, 80, 34, 0.1),
        8px 0 0 0 #7FBA00,
        8px 0 0 2px rgba(127, 186, 0, 0.1),
        0 8px 0 0 #00A4EF,
        0 8px 0 2px rgba(0, 164, 239, 0.1),
        8px 8px 0 0 #FFB900,
        8px 8px 0 2px rgba(255, 185, 0, 0.1);
}

.page-about .post-content h2 + p + p::after {
    display: none;
}

.page-about .post-content h2 + p + p + p {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

.page-about .post-content h2 + p + p + p + p {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

.page-about .post-content h2 + p + p + p + p + p {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-primary);
    border-top: none;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.6;
}

.site-footer p {
    margin: 0;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Single Post Page */
.post-single {
    max-width: 700px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
    font-size: 1.75rem;
    margin: 0.75rem 0 0 0;
    line-height: 1.3;
    color: var(--text-primary);
    font-weight: 700;
}

.post-body {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.post-content h1 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.post-body h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
}

.post-body h3 {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

.post-body p {
    margin-bottom: 0.75rem;
}

.post-body ul, .post-body ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.25rem;
}

.post-body code {
    background-color: #2d2d2d;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #f8f8f2;
    border: 1px solid #3e3e42;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.post-body pre {
    background-color: #272822;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #3e3e42;
    position: relative;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: #f8f8f2;
    border: none;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Code block wrapper for copy button positioning */
.code-block-wrapper {
    position: relative;
    margin: 1rem 0;
}

.code-block-wrapper pre {
    margin: 0;
}

/* Copy button styling */
.copy-code-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8f8f2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    z-index: 10;
}

.copy-code-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.copy-code-button.copied {
    background-color: #2da44e;
    border-color: #2da44e;
    color: white;
}

/* Syntax highlighting improvements */
.highlight {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.highlight pre {
    margin: 0;
    padding: 1rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.post-body figure {
    margin: 1.5rem 0;
}

.post-body figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

.post-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--bg-secondary);
    color: var(--accent-blue);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.tag:hover {
    border-color: var(--accent-blue);
}

.page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Medium Cross-post Notice */
.medium-notice {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.medium-notice-text {
    color: var(--text-secondary);
}

.medium-notice a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.medium-notice a:hover {
    color: var(--accent-blue);
    text-decoration-style: solid;
}

/* Callout / Alert Boxes (GitHub-style) */
.callout {
    padding: 0.5rem 0.75rem;
    margin: 0.75rem 0;
    border-left: 3px solid;
    border-radius: 4px;
    background-color: var(--bg-secondary);
}

.callout-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.9;
}

.callout-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.callout-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.callout-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.callout-content p:last-child {
    margin-bottom: 0;
}

.callout-content p {
    margin: 0.5rem 0;
}

/* Note (blue) - default */
.callout-note {
    border-left-color: #0969da;
    background-color: rgba(9, 105, 218, 0.05);
}

.callout-note .callout-title {
    color: #0969da;
}

.callout-note .callout-content {
    color: var(--text-primary);
}

/* Tip (green) */
.callout-tip {
    border-left-color: #1a7f37;
    background-color: rgba(26, 127, 55, 0.05);
}

.callout-tip .callout-title {
    color: #1a7f37;
}

.callout-tip .callout-content {
    color: var(--text-primary);
}

/* Important (purple) */
.callout-important {
    border-left-color: #8250df;
    background-color: rgba(130, 80, 223, 0.05);
}

.callout-important .callout-title {
    color: #8250df;
}

.callout-important .callout-content {
    color: var(--text-primary);
}

/* Warning (orange/yellow) */
.callout-warning {
    border-left-color: #bf8700;
    background-color: rgba(191, 135, 0, 0.05);
}

.callout-warning .callout-title {
    color: #bf8700;
}

.callout-warning .callout-content {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .terminal-nav-desktop {
        display: none;
    }
    
    .terminal-nav-mobile {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        width: 100%;
        background-color: #2d2d30;
        border-top: 1px solid var(--terminal-border);
    }
    
    .terminal-nav-mobile a {
        padding: 0.75rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--terminal-border);
        text-align: center;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .terminal-nav-mobile a:last-child {
        border-bottom: none;
    }
    
    .terminal-header {
        flex-wrap: nowrap;
        justify-content: center;
        position: relative;
    }
    
    .terminal-title {
        position: static;
        transform: none;
        text-align: center;
    }
    
    .terminal-buttons {
        position: absolute;
        left: 1rem;
    }
    
    .terminal-body {
        font-size: 0.85rem;
        padding: 1.5rem;
        flex-direction: column-reverse;
        gap: 1.5rem;
    }
    
    .avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-links {
        flex-direction: column;
    }
}
