/* Simple Blog CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

header {
    background-color: #fff;
    padding: 3rem 0 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e1e8ed;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin: 0;
}

nav {
    text-align: center;
}

nav a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 1rem;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #333;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

.main-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

.content {
    flex: 1;
    min-width: 0;
}

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

.post-preview {
    background: transparent;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 2rem;
    transition: none;
}

.post-preview:hover {
    transform: none;
    box-shadow: none;
}

.post-preview h2 {
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-preview h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-preview h2 a:hover {
    color: #666;
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.post {
    background: transparent;
    padding: 0;
}

.post h1 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.post-content {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h3 {
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.post-content h4, .post-content h5, .post-content h6 {
    color: #1a1a1a;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.post-content h4 {
    font-size: 1.2rem;
}

.post-content h5 {
    font-size: 1.1rem;
}

.post-content h6 {
    font-size: 1rem;
}

/* Section numbers from org-js */
.section-number {
    margin-right: 0.5rem;
}

/* Tags styling */
.tags-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tags-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.2rem;
}

.tags-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag {
    display: block;
    background-color: #007bff;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.tag a {
    color: white;
    text-decoration: none;
}

.tag:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

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

.post-tag {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tag cloud size classes */
.tag-size-1 {
    font-size: 0.8rem;
    background-color: #6c757d;
    opacity: 0.7;
}

.tag-size-2 {
    font-size: 0.85rem;
    background-color: #495057;
    opacity: 0.8;
}

.tag-size-3 {
    font-size: 0.9rem;
    background-color: #007bff;
    opacity: 0.9;
}

.tag-size-4 {
    font-size: 1rem;
    background-color: #0056b3;
    opacity: 1;
    font-weight: 600;
}

.tag-size-5 {
    font-size: 1.1rem;
    background-color: #003d82;
    opacity: 1;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Code blocks */
.post-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.post-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: inherit;
}

/* Images in posts */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content .centered-image {
    display: block;
    margin: 2rem auto;
    text-align: center;
}

/* Image captions */
.post-content .figure {
    text-align: center;
    margin: 2rem 0;
}

.post-content .figure img {
    margin-bottom: 0.5rem;
}

.post-content .figure .caption {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Blockquotes */
.post-content blockquote {
    border-left: 4px solid #007acc;
    background-color: #f8f9fa;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: #555;
}

.post-content blockquote p {
    margin-bottom: 0;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.post-content table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
    line-height: 1.5;
}

.post-content table tr:nth-child(even) {
    background-color: #fafbfc;
}

.post-content table tr:hover {
    background-color: #f0f7ff;
    transition: background-color 0.2s ease;
}

.post-content table tr:last-child td {
    border-bottom: none;
}

/* Responsive tables */
@media (max-width: 768px) {
    .post-content table {
        font-size: 0.85rem;
        margin: 1.5rem 0;
    }
    
    .post-content table th,
    .post-content table td {
        padding: 0.75rem 0.5rem;
    }
    
    .post-content table th {
        font-size: 0.8rem;
    }
}

/* Links */
.post-content a {
    color: #007acc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: #007acc;
}

footer {
    background-color: #fff;
    color: #999;
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid #e1e8ed;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .logo {
        height: 45px;
    }
    
    .logo-title {
        gap: 0.75rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .post-preview, .post {
        padding: 1.5rem;
    }
    
    .main-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .tags-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .tag {
        display: inline-block;
        text-align: left;
    }
}

/* Contact page styling */
.contact-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-page h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.contact-info {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.contact-card h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.contact-link.linkedin {
    background-color: #0077b5;
    color: white;
}

.contact-link.linkedin:hover {
    background-color: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

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

/* Contact page mobile responsive */
@media (max-width: 768px) {
    .contact-page {
        padding: 0 1rem;
    }
    
    .contact-page h2 {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-card h3 {
        font-size: 1.5rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
}
