/*
Theme Name: eBook Generator Blog
Theme URI: https://ebook-generator.com/blog/
Author: eBook Generator Team
Author URI: https://ebook-generator.com/
Description: A high-performance, SEO-optimized dark luxury WordPress theme for eBook Generator blog. Features JSON-LD schema, OpenGraph tags, responsive post grids, fast loading, and pixel-perfect design matching ebook-generator.com.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ebook-generator-blog
Tags: blog, dark-mode, custom-colors, two-columns, flexbox, grid, custom-menu, featured-images, translation-ready, seo-friendly
*/

:root {
    --bg-dark: #0f0f14;
    --bg-main: #0f0f14;
    --bg-card: rgba(22, 22, 30, 0.85);
    --bg-input: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(212, 163, 115, 0.5);
    --accent: #d2632c;
    --accent-hover: #e6b88a;
    --accent-glow: rgba(212, 163, 115, 0.25);
    --text: #e8e4df;
    --text-dim: #8a8680;
    --success: #4ade80;
    --error: #f87171;
    --radius: 12px;
    --section-seo-card-background: rgba(22, 22, 30, 0.4);
	--entry-content-color: #d0d0d0;
    --page-title: linear-gradient(177deg, #ff0200, #ff8500);
	--bg-card-nav: rgba(22, 22, 30, 0.4);
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #fcfcfc;
    --border: #e0e4ec;
    --border-focus: rgba(212, 163, 115, 0.8);
    --accent: #d2632c;
    --text: #1a1b23;
    --text-dim: #5c6275;
    --accent-glow: rgba(212, 163, 115, 0.2);
    --section-seo-card-background: rgb(255 255 255 / 74%);
	--entry-content-color: #545454;
    --page-title: linear-gradient(177deg, #ff0200, #ff8500);
	--bg-card-nav: rgb(242 242 248 / 40%);
}

[data-theme="light"] body::before {
/*     background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 163, 115, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(160, 130, 220, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 163, 115, 0.08) 0%, transparent 50%); */
}

[data-theme="light"] .navbar {
    background: var(--bg-card-nav);
}

[data-theme="light"] select option {
    background-color: #ffffff;
    color: #1a1b23;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*     background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 163, 115, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(120, 80, 200, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 163, 115, 0.04) 0%, transparent 50%); */
    z-index: -1;
    animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Layout Containers */
.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 900px) {
    .blog-layout.has-sidebar {
        grid-template-columns: 1fr 300px;
    }
}

/* Top Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nav-logo {
    width: 32px;
    height: 32px;
    /*     border-radius: 8px; */
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item>a,
.nav-links .active {
    color: var(--accent);
}

.btn-theme-toggle {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
}

[data-theme="light"] .btn-theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text);
}

.btn-theme-toggle .theme-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.btn-theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(212, 163, 115, 0.15);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn-theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Header Banner */
.header-banner {
    text-align: center;
    margin-bottom: 40px;
}

.header-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    background: var(--page-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.header-banner p {
    color: var(--text-dim);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    max-width: 650px;
    margin: 0 auto;
}

/* Post Cards Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .posts-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Post Card Component */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 163, 115, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 15px var(--accent-glow);
}

.post-thumbnail-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

.post-thumbnail-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail-link img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 0.78rem;
}

.category-badge {
    background: rgba(212, 163, 115, 0.15);
    color: var(--accent);
    border: 1px solid rgba(212, 163, 115, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.72rem;
}

.post-date,
.post-readtime {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
}

.post-card-title a {
    color: var(--text);
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
}

.author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.read-more-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more-link:hover {
    gap: 8px;
}

/* Single Article & Page View */
.article-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    backdrop-filter: blur(20px);
}

@media (max-width: 640px) {
    .article-container {
        padding: 20px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-dim);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .separator {
    color: rgb(179 179 179 / 77%);
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.88rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-featured-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content & Typography */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--entry-content-color);
}

.entry-content p {
    margin-bottom: 22px;
}

.entry-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text);
    margin: 28px 0 12px;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 20px 0 10px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 24px 24px;
}

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

.entry-content blockquote {
    background: rgba(212, 163, 115, 0.06);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #e5ded7;
}

.entry-content code {
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: var(--accent);
}

.entry-content pre {
    background: #14141c;
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

/* Post Tags & Author Box */
.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 32px 0 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-tags span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.tag-badge {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.tag-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.author-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 36px 0;
}

@media (max-width: 500px) {
    .author-box {
        flex-direction: column;
    }
}

.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.author-box-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 6px;
}

.author-box-info p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Post Navigation (Prev/Next) */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

@media (max-width: 600px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

.nav-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.nav-card:hover {
    border-color: var(--accent);
}

.nav-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.nav-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.98rem;
    color: var(--text);
    font-weight: 600;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(20px);
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget li a {
    color: var(--text);
    font-size: 0.9rem;
}

.widget li a:hover {
    color: var(--accent);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}

.search-form input[type="search"]:focus {
    border-color: var(--border-focus);
}

.search-form button {
    background: var(--accent);
    color: #1a1714;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: var(--accent-hover);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .page-numbers.current {
    background: var(--accent);
    color: #1a1714;
    border-color: var(--accent);
    font-weight: 700;
}

/* Comments Template */
.comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    margin-bottom: 36px;
}

.comment-list .comment {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.comment-list .children {
    list-style: none;
    margin-left: 24px;
    margin-top: 16px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text);
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.comment-content p {
    font-size: 0.95rem;
    color: #dfdbd5;
    margin-top: 8px;
}

.comment-reply-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 10px;
}

.comment-respond {
    background: rgba(22, 22, 30, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.comment-reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 16px;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--border-focus);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}


.form-submit input[type="submit"] {
    background: var(--accent);
    color: #1a1714;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-submit input[type="submit"]:hover {
    background: var(--accent-hover);
}

.search-submit{
	width: 20%;
    background: linear-gradient(135deg, #ed6015, #ff2300);
    color: rgb(250 250 254);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    list-style: none;
}

        .footer-links a,
        .footer-col a,
        .footer a {
            color: var(--text-dim) !important;
            text-decoration: none !important;
            font-size: 0.9rem;
            font-weight: 400;
            letter-spacing: 0.2px;
            transition: color 0.25s ease, opacity 0.25s ease;
        }

        .footer-links a:hover,
        .footer-col a:hover,
        .footer a:hover {
            color: var(--accent) !important;
        }

        .footer-copy {
            color: var(--text-dim);
            font-size: 0.82rem;
            opacity: 0.65;
            margin-top: 12px;
        }

/* Footer Columns */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 40px;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-col h4 {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}



@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        align-items: center;
    }
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* WordPress Alignment & Clearing Utilities */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* =========================================================================
   MOBILE RESPONSIVENESS (sophisticated overlay drawer)
   ========================================================================= */

/* Hide hamburger button on desktop */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2000;
}

.hamburger-box {
    width: 24px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

/* Hamburger Animation (Active State) */
.mobile-menu-btn.active .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

@media (max-width: 900px) {
    .blog-layout.has-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Responsive Navbar */
    .nav-container {
        position: relative;
        padding: 0;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-brand {
        font-size: 1.15rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-logo {
        width: 24px;
        height: 24px;
    }

    .mobile-menu-btn {
        position: absolute;
        left: 16px;
        display: block;
        padding: 10px;
    }

    .nav-right {
        position: static !important;
    }

    /* Theme Toggle Button - positioned right on mobile */
    .btn-theme-toggle {
        position: absolute !important;
        right: 16px !important;
        top: 11px !important; /* Fixed distance from top instead of 50% translation */
        transform: none !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        border-radius: 20px !important;
        z-index: 2000;
    }

    .btn-theme-toggle .theme-text {
        display: none; /* Hide text on mobile, show only icon */
    }

    /* Drawer Mobile Navigation */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border-bottom: 1px solid transparent;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        max-height: 500px; /* Arbitrary large value to allow slide down */
        padding: 10px 0 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li, .nav-links a {
        width: 100%;
        display: block;
    }

    .nav-links a {
        text-align: center;
        padding: 16px 20px;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    .nav-links li:last-child a {
        border-bottom: none;
        margin-bottom: 10px;
    }

    /* Adjust body when nav is open */
    body.nav-open {
        overflow: hidden;
    }

    /* General layout */
    .container {
        padding-top: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-banner h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col {
        align-items: center;
    }

    /* Post Navigation */
    .post-navigation {
        grid-template-columns: 1fr;
    }
}