/* blog-styles.css */
:root {
    --bg-main: #ffffff;
    --bg-accent: #f9fafb; /* Gray-50 */
    --brand-primary: #8A74C0;
    --brand-dark: #6E5D9A;
    --brand-light: #9B88D0;
    --text-main: #111827; /* Gray-900 */
    --text-muted: #4b5563; /* Gray-600 */
    --border-color: #e5e7eb; /* Gray-200 */
    --font-family: 'Outfit', sans-serif;
}

body.custom-bg {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
}

/* Navbar overrides for light theme archive if needed */
#navbar.bg-white {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Glass Panel -> Light Panel */
.glass-panel {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Typography Overrides */
.blog-hero {
    position: relative;
    padding: 10rem 2rem 6rem;
    text-align: center;
    background: var(--bg-accent);
}

.blog-hero-content {
    display: inline-block;
    padding: 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    color: var(--text-main) !important;
}

.blog-hero p {
    color: var(--text-muted) !important;
}

.hero-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(138, 116, 192, 0.05) 0%, transparent 100%);
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Archive Page */
.archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 3rem;
}

/* Post Cards */
.card-img-container {
    height: 260px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.post-card:hover .card-img {
    transform: scale(1.1);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.card-img-placeholder::after {
    content: 'No Image';
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    color: var(--text-main) !important;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--brand-primary);
}

.card-excerpt {
    color: var(--text-muted) !important;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--brand-primary);
}

/* Single Post Specifics */
.article-hero-section {
    background: var(--bg-accent);
    padding-top: 150px;
    padding-bottom: 4rem;
    text-align: center;
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInDown 0.8s ease backwards;
}

.article-title {
    color: var(--text-main);
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.article-cover-glass {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0;
    background: transparent;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    overflow: hidden;
}

.article-cover-image {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
}

/* Post Content Reading Experience */
.post-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.glass-reading-panel {
    background: var(--bg-main);
    border: none;
    box-shadow: none;
    max-width: 100%;
}

.content-wrapper {
    padding: 0;
}

/* Markdown Elements Styling - CLEAN LIGHT THEME */
.markdown-body {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.markdown-body h2 {
    font-size: 2.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.markdown-body h3 {
    font-size: 1.75rem;
}

.markdown-body a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.markdown-body blockquote {
    border-left: 4px solid var(--brand-primary);
    background: var(--bg-accent);
    color: var(--text-main);
    font-style: italic;
    padding: 1.5rem 2rem;
    margin: 3rem 0;
}

.markdown-body img {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Language Switcher Light */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.lang-btn {
    color: var(--text-muted);
    text-decoration: none;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--brand-primary);
}

.lang-switcher .separator {
    color: #d1d5db;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .blog-hero { padding: 8rem 1rem 4rem; }
    .article-title { font-size: 2.5rem; }
    .post-main { padding: 2rem 1rem; }
}
