* {
    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.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #333;
}

/* Hero Section */
.hero {
    height: 250px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
                url('/images/banner.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
    position: relative;
}

.hero-small {
    height: 180px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 60px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.main-content {
    max-width: none;
}

/* Post Styles */
.post-preview, .post {
    margin-bottom: 50px;
}

/* Page Styles */
.page-content {
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #333;
}

.page-body {
    color: #555;
    line-height: 1.8;
}

.page-body h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
}

.page-body h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.page-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body p {
    margin-bottom: 20px;
}

/* Taxonomy Styles */
.taxonomy-list {
    margin: 20px 0;
}

.taxonomy-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.taxonomy-item:last-child {
    border-bottom: none;
}

.taxonomy-item h3 {
    margin: 0;
    font-size: 1.2rem;
}

.taxonomy-item h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.taxonomy-item h3 a:hover {
    color: #007acc;
}

.taxonomy-count {
    color: #888;
    font-size: 0.9rem;
}

/* Tags and Categories */
.post-categories {
    margin-top: 10px;
}

.category-link {
    display: inline-block;
    background: #007acc;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

.category-link:hover {
    background: #005c99;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.tag-link {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-left: 6px;
    margin-bottom: 5px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #007acc;
    color: white;
    border-color: #007acc;
}

/* Preview page styles */
.post-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.tag-link-small {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag-link-small:hover {
    background: #007acc;
    color: white;
    border-color: #007acc;
}

.more-tags {
    color: #888;
    font-size: 0.75rem;
    font-style: italic;
}

@media (max-width: 600px) {
    .post-preview-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007acc;
    padding-bottom: 8px;
}

/* Categories Widget */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-item:hover {
    background: #007acc;
    color: white;
    transform: translateX(3px);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: #e9ecef;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-item:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Tags Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.6;
}

.tag-cloud-item {
    display: inline-block;
    background: white;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    text-decoration: none;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tag-cloud-item:hover {
    background: #007acc;
    color: white;
    border-color: #007acc;
    transform: translateY(-1px);
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* Giscus theme adjustments */
.giscus {
    margin-top: 20px;
}

/* Dark theme support for comments */
@media (prefers-color-scheme: dark) {
    .comments-section {
        border-top-color: #444;
    }
    
    .comments-title {
        color: #e9ecef;
    }
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007acc;
}

.post-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.post-excerpt, .post-content {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-content h3 {
    color: #007acc;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.post-content h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 25px 0 10px 0;
}

.post-content em {
    font-style: italic;
    color: #007acc;
}

.post-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 8px;
    color: #007acc;
}

.post-content blockquote {
    border-left: 4px solid #007acc;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.read-more {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #005c99;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.author-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.author-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

.social-link.twitter {
    background: #1da1f2;
}

.social-link::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.social-link.linkedin::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

.social-link.twitter::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z'/%3E%3C/svg%3E");
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 10px;
    }
    
    .hero {
        margin-top: 80px;
    }
}
