/* --- Blog content and layout styles --- */
/* ...moved styles from blog.html... */
.blog-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}
.blog-post {
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 30px;
}
.blog-post h2 {
    color: #0066cc;
    margin: 30px 0 15px;
    font-size: 1.8rem;
}
.blog-post h3 {
    margin: 25px 0 15px;
    font-size: 1.4rem;
}
.blog-post p {
    margin-bottom: 20px;
}
.blog-post ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.blog-post li {
    margin-bottom: 10px;
}
.blog-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.blog-header {
    margin-bottom: 30px;
    text-align: center;
    padding-top: 110px;
}
.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #0066cc;
}
/* Header and navigation styles */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
nav.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}
.logo svg {
    margin-right: 8px;
}
.logo h1 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: #333;
}
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}
.nav-links li a:hover {
    background: #f0f7ff;
}
/* Mobile styles */
@media (max-width: 700px) {
    .logo h1 {
        font-size: 1rem;
    }
    .nav-links li a .link-text {
        display: none;
    }
    .nav-links li a {
        font-size: 1.2rem;
        padding: 8px;
    }
}
/* Modal and image zoom styles */
#imageModal {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    display: none;
}
#imageModal[style*="display: block"] {
    opacity: 1;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    top: 10%;
}
#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}
#svgContainer {
    max-width: 100%;
    max-height: 80vh;
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    display: none;
}
#closeModalBtn {
    position: absolute;
    top: -40px;
    right: -40px;
    background-color: rgba(255,255,255,0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}
#closeModalBtn:hover {
    background-color: rgba(255,255,255,0.5);
}
.zoomable-image {
    transition: transform 0.3s ease;
}
.zoomable-image:hover {
    transform: scale(1.02);
}
/* Light/Dark mode styles */
body {
    background: #fff;
    color: #222;
    transition: background 0.3s, color 0.3s;
}
body.dark-mode {
    background: #23272f;
    color: #e4e6eb;
}
body.dark-mode header,
body.dark-mode nav.container {
    background: #23272f;
    color: #e4e6eb;
}
body.dark-mode .blog-header h1,
body.dark-mode .logo h1 {
    color: #4eaaff;
}
body.dark-mode .blog-post h2 {
    color: #4eaaff;
}
body.dark-mode .blog-content,
body.dark-mode .blog-post,
body.dark-mode .developer-bio,
body.dark-mode .use-case,
body.dark-mode .intro-summary {
    background: #23272f !important;
    color: #e4e6eb !important;
    border-color: #333 !important;
}

/* Unify all special boxes and inline backgrounds in dark mode */
body.dark-mode .blog-post div[style*="background-color"],
body.dark-mode .blog-post div[style*="background-color: #f8f9fa"],
body.dark-mode .blog-post div[style*="background-color: #f0f7ff"],
body.dark-mode .blog-post div[style*="background-color: #f7f9fc"],
body.dark-mode .blog-post div[style*="background-color: #f0f7ff;"],
body.dark-mode .blog-post div[style*="background-color: #f8f9fa;"],
body.dark-mode .blog-post div[style*="background-color: #f7f9fc;"],
body.dark-mode .blog-post div[style*="border-left: 4px solid #0066cc"],
body.dark-mode .blog-post div[style*="border: 1px solid #e9ecef;"],
body.dark-mode .blog-post div[style*="border: 1px solid #d1e3ff;"] {
    background-color: #23272f !important;
    color: #e4e6eb !important;
    border-color: #333 !important;
}

/* Fix for "Hackathon Overview" and "OpenCodeReview Pro Edition" boxes */
body.dark-mode .blog-post div[style*="border-left: 4px solid #0066cc"],
body.dark-mode .blog-post div[style*="border: 1px solid #e9ecef;"],
body.dark-mode .blog-post div[style*="border: 1px solid #d1e3ff;"] {
    background-color: #23272f !important;
    color: #e4e6eb !important;
    border-color: #333 !important;
}

/* Fix for "Core AI Technology" h3 and similar headings */
body.dark-mode .blog-post h3,
body.dark-mode .blog-post h2 {
    color: #4eaaff !important;
}

/* Theme toggle button */
#theme-toggle {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 1.5rem;
    margin-left: 20px;
    cursor: pointer;
    border-radius: 50%;
    padding: 6px;
    transition: background 0.2s, color 0.2s;
}
#theme-toggle:hover {
    background: #f0f7ff;
}
body.dark-mode #theme-toggle {
    color: #4eaaff;
}
body.dark-mode #theme-toggle:hover {
    background: #1a2332;
}
body.dark-mode .blog-post h2 {
    color: #4eaaff !important;
}

/* Theme toggle button */
#theme-toggle {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 1.5rem;
    margin-left: 20px;
    cursor: pointer;
    border-radius: 50%;
    padding: 6px;
    transition: background 0.2s, color 0.2s;
}
#theme-toggle:hover {
    background: #f0f7ff;
}
body.dark-mode #theme-toggle {
    color: #4eaaff;
}
body.dark-mode #theme-toggle:hover {
    background: #1a2332;
}
