/* tech_bytes_static/css/main.css */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Source+Serif+Pro:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&display=swap');

/* General Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F9FAFB; /* bg-gray-50 */
    color: #1F2937; /* text-gray-800 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* --- Markdown Content Styling --- */
/* This is for the #content div in the blog post */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.markdown-content h1 {
    font-size: 2.25rem; /* ~text-4xl */
}

.markdown-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1a202c;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.markdown-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2d3748;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    font-size: 1.65rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.markdown-content p {
    font-family: 'Source Serif Pro', serif;
    margin-bottom: 1.35rem;
    line-height: 1.85;
    color: #374151;
    font-size: 1.15rem;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.markdown-content li {
    font-family: 'Source Serif Pro', serif;
    margin-bottom: 0.75rem;
    line-height: 1.75;
    color: #374151;
    font-size: 1.15rem;
}

.markdown-content blockquote {
    border-left: 4px solid #1a56db;
    padding: 0.75rem 0 0.75rem 1.25rem;
    font-style: italic;
    margin: 1.75rem 0;
    color: #4b5563;
    background-color: #f9fafb;
    border-radius: 0 0.25rem 0.25rem 0;
}

.markdown-content blockquote p {
    font-size: 1.2rem;
    font-weight: 400;
}

.markdown-content img {
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.markdown-content a {
    color: #1a56db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.markdown-content a:hover {
    border-color: #1a56db;
}

.markdown-content strong {
    color: #1a202c;
    font-weight: 600;
}

.markdown-content code:not([class*="language-"]) {
    font-family: Monaco, monospace;
    background-color: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #3b82f6;
}

/* Interactive Table of Contents */
#toc a {
    transition: all 0.2s ease-in-out;
}

#toc a.active {
    color: #2563EB; /* blue-600 */
    font-weight: 600;
    transform: translateX(4px);
}

/* Active heading in article content */
.markdown-content h2.active-heading,
.markdown-content h3.active-heading {
    color: #1e40af; /* blue-800 */
}

.blog-sidebar-card {
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.blog-sidebar-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e0;
}

/* Featured Image */
.featured-image {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Post Meta */
.post-meta {
    color: #4B5563; /* text-gray-600 */
    font-size: 0.875rem; /* text-sm */
    margin-top: 1rem;
    margin-bottom: 1rem;
}
