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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Index Page Styles */
h1 {
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 3px solid #000000;
    padding-bottom: 5px;
}

.post {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fafafa;
    transition: box-shadow 0.3s ease;
}

.post:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post h2 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.post h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.post h2 a:hover {
    color: #000000;
}

.subtitle {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.excerpt {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
}

.meta {
    font-size: 0.9em;
    color: #95a5a6;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.categories {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-left: 10px;
}

.no-posts {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* Author Styles */
.authors {
    margin-top: 12px;
    padding: 10px 0;
    font-size: 0.9em;
}

.author-label {
    font-weight: 600;
    color: #555;
    margin-right: 1px;
}

.author-item {
    display: inline-block;
    margin-right: 15px;
    color: #666;
}

.author-name {
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
}

.author-name:hover {
    color: #3498db;
    text-decoration: underline;
}

.author-title {
    color: #7f8c8d;
    font-style: italic;
}

/* Links Styles (shared) */
.links {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #d0d0d0;
}

.links-title {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.links ul {
    list-style: none;
    padding-left: 0;
}

.links li {
    margin-bottom: 6px;
}

.links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
    word-break: break-all;
}

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

/* Post Detail Page Styles */
.container .back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #3498db;
    text-decoration: none;
    font-size: 0.95em;
}

.container .back-link:hover {
    text-decoration: underline;
}

.container h1 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 2.2em;
}

.container .subtitle {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.container .meta {
    font-size: 0.9em;
    color: #95a5a6;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.container .categories {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.9em;
    margin-left: 10px;
}

.body {
    color: #444;
    line-height: 1.8;
    font-size: 1.05em;
    white-space: pre-wrap;
}

.not-found {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.not-found h1 {
    margin-bottom: 20px;
}

/* Post Detail Page - Links Styles */
.container .links {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    border-top: none;
}

.container .links-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.container .links li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.container .links li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
}

.container .links a {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
    font-size: 1em;
}

.container .links a:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* Author Page Styles */
.author-header {
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.author-header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.author-bio {
    color: #7f8c8d;
    font-size: 1.2em;
    font-style: italic;
    margin: 0;
}

.author-posts-section {
    margin-top: 30px;
}
.author-posts-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.author-posts-section .post h3 {
    font-size: 1.4em;
    margin-bottom: 8px;
}

.author-posts-section .post h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.author-posts-section .post h3 a:hover {
    color: #000000;
}

/* About Page Styles */
.about-page {
    margin-top: 20px;
}

.about-page h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 3px solid #000000;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.about-content .support-text {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    font-weight: 500;
    color: #2c3e50;
}

/* Logo Header */
.logo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px 0;
    gap: 30px;
}

.logo {
    max-width: 300px;
    height: auto;
    flex-shrink: 0;
}

.org-description {
    flex: 1;
    color: #555;
    font-size: 1em;
    line-height: 1.1;
    text-align: right;
}

/* Main Navigation */
.main-nav {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 2px solid #ecf0f1;
    text-align: center;
}

.main-nav a {
    display: inline-block;
    margin: 0 20px;
    padding: 8px 20px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.main-nav a:hover {
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* Site Footer */
.site-footer {
    margin-top: 60px;
    padding: 30px 0 20px;
    border-top: 2px solid #ecf0f1;
    background-color: #f8f9fa;
}

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

.footer-content p {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-links .separator {
    color: #95a5a6;
    margin: 0 10px;
}

/* About Page - Social Links Section */
.social-links-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
    text-align: center;
}

.social-links-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 25px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    color: white;
}

.social-button.linkedin {
    background-color: #0077b5;
}

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

.social-button.twitter {
    background-color: #000000;
}

.social-button.twitter:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* About page support text links */
.about-content .support-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.about-content .support-text a:hover {
    text-decoration: underline;
}

/* Category Badge Styles */
.categories-list {
    display: inline-block;
    margin-left: 10px;
}

.category-badge {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-right: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.category-badge:hover {
    background-color: #2980b9;
}

/* Category Page Styles */
.category-page {
    margin-top: 20px;
}

.category-page h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.category-description {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.category-page .post h2 {
    font-size: 1.6em;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    /* Logo Header - Stack vertically on mobile */
    .logo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 0;
    }

    .logo {
        max-width: 200px;
        margin: 0 auto;
    }

    .org-description {
        text-align: center;
        font-size: 0.95em;
    }

    /* Main heading */
    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .container h1 {
        font-size: 1.8em;
    }

    /* Navigation - Stack on mobile */
    .main-nav {
        padding: 10px 0;
    }

    .main-nav a {
        display: block;
        margin: 5px 0;
        padding: 10px;
        font-size: 1em;
    }

    /* Posts */
    .post {
        padding: 15px;
        margin-bottom: 20px;
    }

    .post h2 {
        font-size: 1.3em;
    }

    .category-page .post h2 {
        font-size: 1.3em;
    }

    .subtitle {
        font-size: 1em;
    }

    .excerpt {
        font-size: 0.95em;
    }

    /* Author styles */
    .authors {
        font-size: 0.85em;
    }

    .author-item {
        display: block;
        margin-bottom: 8px;
    }

    /* Links */
    .links {
        margin-top: 10px;
    }

    .links a {
        font-size: 0.85em;
        word-break: break-word;
    }

    /* Meta information */
    .meta {
        font-size: 0.85em;
    }

    /* Category badges */
    .category-badge {
        font-size: 0.75em;
        padding: 3px 8px;
    }

    /* Author page */
    .author-header h1 {
        font-size: 2em;
    }

    .author-bio {
        font-size: 1em;
    }

    .author-posts-section h2 {
        font-size: 1.5em;
    }

    .author-posts-section .post h3 {
        font-size: 1.2em;
    }

    /* About page */
    .about-page h1 {
        font-size: 2em;
    }

    .about-content {
        padding: 0 10px;
    }

    .about-content p {
        font-size: 1em;
    }

    /* Social buttons */
    .social-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .social-button {
        width: 100%;
        text-align: center;
    }

    /* Category page */
    .category-page h1 {
        font-size: 2em;
    }

    .category-description {
        font-size: 1em;
    }

    /* Footer */
    .site-footer {
        margin-top: 40px;
        padding: 20px 0 15px;
    }

    .footer-content p {
        font-size: 0.85em;
    }

    .footer-links {
        font-size: 0.9em;
    }

    /* Social top nav */
    .social-top-nav {
        font-size: 0.8em;
        padding: 6px 0;
    }

    /* Post detail body */
    .body {
        font-size: 1em;
    }
}

/* Very small mobile devices */
@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .logo {
        max-width: 150px;
    }

    .org-description {
        font-size: 0.9em;
    }

    h1 {
        font-size: 1.5em;
    }

    .container h1 {
        font-size: 1.5em;
    }

    .post h2 {
        font-size: 1.2em;
    }

    .main-nav a {
        font-size: 0.95em;
        padding: 8px;
    }

    .category-badge {
        font-size: 0.7em;
        padding: 2px 6px;
    }
}
