/* Blog post specific styles */

/* Global navbar for blog posts - force visibility */
body > header {
    background: #ffffff !important;
    border-bottom: 1px solid #f2f2f2 !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
}

.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 12px 20px !important;
    min-height: 60px !important;
    visibility: visible !important;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-abbreviation {
    width: 32px;
    height: 32px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.brand-name {
    text-decoration: none;
    color: #242424;
}

.nav-links {
    display: flex !important;
    gap: 24px !important;
    align-items: center !important;
    visibility: visible !important;
}

.nav-links a {
    color: #6b6b6b;
    font-size: 14px;
}

.nav-links a:hover {
    color: #242424;
}

.youtube-link {
    color: #ff0000 !important;
    font-weight: 500;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    color: #6b6b6b;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    padding: 8px 0;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #242424;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* Blog post layout */
.blog-post {
    padding-top: 140px;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Post header - ensure it appears below navbar */
.post-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f2f2f2;
    position: relative;
    z-index: 1;
}

.post-header h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #242424;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.author-name {
    font-weight: 500;
    color: #242424;
    display: block;
    margin-bottom: 2px;
}

.post-details {
    font-size: 13px;
    color: #6b6b6b;
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-details time::after {
    content: '·';
    margin-left: 8px;
}

/* Post content */
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #242424;
    margin-bottom: 48px;
    margin-top: 20px;
}

.post-content .lead {
    font-size: 20px;
    line-height: 1.6;
    color: #6b6b6b;
    margin-bottom: 32px;
    font-style: italic;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: #242424;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: #242424;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content pre {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin: 24px 0;
    overflow-x: auto;
    border-left: 3px solid #1a8917;
    font-size: 14px;
}

.post-content code {
    font-family: Monaco, monospace;
    font-size: 14px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    color: #e83e8c;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #242424;
    font-size: 13px;
}

/* Mobile responsive for blog posts */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px !important;
        flex-wrap: wrap !important;
    }
    
    .nav-links {
        gap: 12px !important;
        flex-wrap: wrap !important;
    }
    
    .nav-links a {
        font-size: 13px !important;
    }
    
    .dropdown-menu {
        min-width: 200px;
        left: -50px;
    }
    
    .blog-post {
        padding-top: 120px;
    }
    
    .post-header h1 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .post-content {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .post-content .lead {
        font-size: 18px;
    }
    
    .post-content h2 {
        font-size: 20px;
        margin: 24px 0 12px 0;
    }
    
    .post-content h3 {
        font-size: 18px;
        margin: 20px 0 10px 0;
    }
    
    .post-content pre {
        padding: 12px;
        font-size: 13px;
        margin: 20px 0;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .author-info {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px !important;
    }
    
    .brand-abbreviation {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }
    
    .brand-name {
        font-size: 14px !important;
    }
    
    .nav-links a {
        font-size: 12px !important;
    }
    
    .dropdown-menu {
        min-width: 180px;
        left: -80px;
        font-size: 13px;
    }
    
    .blog-post {
        padding-top: 100px;
    }
    
    .post-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .post-header h1 {
        font-size: 22px;
        line-height: 1.1;
    }
    
    .post-content {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 40px;
    }
    
    .post-content .lead {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .post-content h2 {
        font-size: 18px;
        margin: 20px 0 10px 0;
    }
    
    .post-content h3 {
        font-size: 16px;
        margin: 16px 0 8px 0;
    }
    
    .post-content p {
        margin-bottom: 16px;
    }
    
    .post-content ul, .post-content ol {
        margin: 12px 0;
        padding-left: 20px;
    }
    
    .post-content pre {
        padding: 10px;
        font-size: 12px;
        margin: 16px 0;
    }
    
    .author-pic {
        width: 32px;
        height: 32px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .post-details {
        font-size: 12px;
        flex-wrap: wrap;
    }
}