/*
Theme Name: Obsidian Bind MX
Theme URI: 
Author: slave mx
Author URI: https://slave.mx
Description: A minimalist, glassmorphism-focused theme with enhanced visual fidelity and refined Retro-Futurist/Geocities capabilities.
Version: 6.3.3
License: CC BY-NC-ND 4.0
License URI: https://creativecommons.org/licenses/by-nc-nd/4.0/
Text Domain: obsidian-bind-mx
Tags: blog, portfolio, dark-mode, glassmorphism, retro

[TABLE OF CONTENTS]
1.  Variables & Base Styles
    - CSS Custom Properties (Colors, Fonts, Layout)
    - Reset & Base Elements
    - Animation Keyframes
2.  Layout & Container
    - Container Width & Padding
    - Page-Specific Padding (Home, Blog, Archive)
3.  Header & Navigation
    - Site Header (Fixed, Scrolled States)
    - Header Controls (Left: Search, Theme Toggle)
    - Site Branding (Center: Logo, Title)
    - Menu Actions (Right: Menu Toggle)
    - Overlay Navigation (Full-Screen Menu)
    - Menu Scroll Indicator
4.  Posts Grid & Cards
    - Grid Layout
    - Post Card (Glass Effect, Hover States)
    - Placeholders
    - Format Indicator
5.  Single Post & Hero
    - Hero Header (Glassmorphic Card)
    - Hero Background (Blurred)
    - Card Content (Title, Meta)
    - Entry Content (Article Body)
6.  Sidebar & Widgets
7.  Footer
8.  Comments Section
    - Comments Toggle
    - Comment List & Form
9.  Components
    - Search Overlay
    - Reading Progress Bar
    - Lightbox
    - Gallery
    - Related Content Carousel
    - Accessibility (Screen Reader Text)
10. Theme Modes (Light)
    - Light Mode Variables
    - Light Mode Overrides (Header, Cards, Components)
*/

/*
--------------------------------------------------------------
1. Variables & Base Styles
--------------------------------------------------------------
*/
/* --- 1.1 CSS Custom Properties --- */
:root {
    /* Colors - Obsidian Palette */
    --color-bg: #050505;
    /* Deepest Black */
    --color-bg-alt: #0a0a0a;
    /* Off Black for cards/header */
    --color-text: #eaeaea;
    /* Off-white for readability */
    --color-text-muted: #aaaaaa;
    --color-primary: #d00000;
    /* Blood Red */
    --color-accent: #ffd700;
    /* Gold */
    --color-glass: rgba(20, 20, 20, 0.8);
    --color-glass-border: rgba(255, 255, 255, 0.05);

    /* Branding Box */
    --branding-bg: rgba(5, 5, 5, 0.5);
    --branding-shadow: rgba(0, 0, 0, 0.5);
    --branding-saturate: 110%;

    /* Header */
    --header-scrolled-bg: rgba(5, 5, 5, 0.5);

    /* Glitch Animation Colors */
    --glitch-color-1: var(--color-primary);
    --glitch-color-2: var(--color-accent);

    /* Typography */
    --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;

    /* Layout */
    --container-width: 1100px;
    --header-height: auto;
    --spacing-unit: 2rem;
}

/* --- 1.2 Reset & Base Elements --- */
* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

/* Prevent layout shift */

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--header-height, 122px);
    /* Fixed Header Compensation */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- 1.3 Animation Keyframes --- */
@keyframes branding-glitch {
    0% {
        text-shadow: 3px 3px var(--glitch-color-1), -3px -3px var(--glitch-color-2);
        transform: translate(2px, 0) skewX(-10deg);
    }

    20% {
        text-shadow: -3px -3px var(--glitch-color-1), 3px 3px var(--glitch-color-2);
        transform: translate(-2px, 0) skewX(10deg);
    }

    40% {
        text-shadow: 3px -3px var(--glitch-color-1), -3px 3px var(--glitch-color-2);
        transform: translate(0, 2px) skewX(0deg);
    }

    60% {
        text-shadow: -3px 3px var(--glitch-color-1), 3px -3px var(--glitch-color-2);
        transform: translate(0, -2px) skewX(0deg);
    }

    80% {
        text-shadow: 2px 2px var(--glitch-color-1), -2px -1px var(--glitch-color-2);
        transform: translate(0, 0) skewX(0deg);
    }

    100% {
        text-shadow: none;
        transform: none;
    }
}

@keyframes branding-snap {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes breathing-glow {

    0%,
    100% {
        box-shadow: 0 0 10px color-mix(in srgb, var(--color-primary), transparent 50%);
    }

    50% {
        box-shadow: 0 0 20px color-mix(in srgb, var(--color-primary), transparent 30%);
    }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
--------------------------------------------------------------
2. Layout & Container
--------------------------------------------------------------
*/
/* --- 2.1 Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px !important;
    }

    body.home,
    body.blog,
    body.front-page,
    body.search,
    body.archive {
        padding-top: 80px !important;
    }
}

/* --- 2.2 Page-Specific Padding --- */
body.home .posts-grid,
body.blog .posts-grid,
body.front-page .posts-grid,
body.search .posts-grid,
body.archive .posts-grid {
    margin-top: 30px !important;
}

body.home,
body.blog,
body.front-page,
body.search,
body.archive {
    padding-top: 70px !important;
}

/*
--------------------------------------------------------------
3. Header & Navigation
--------------------------------------------------------------
*/
/* --- 3.1 Site Header --- */
.site-header {
    background: transparent;
    padding: 1rem 0 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background, padding, backdrop-filter;
}

body.admin-bar .site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;
    }
}

body.menu-open .site-header {
    background: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 1rem 0 0.5rem !important;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-unit);
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 0 0.5rem !important;
    }

    .header-inner {
        padding: 0 1rem;
        gap: 0.5rem;
    }
}

/* --- 3.2 Header Controls (Left) --- */
.header-controls-left {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1002;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-toggle,
.theme-toggle {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2), inset 0 0 5px rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.search-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.theme-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.menu-open .theme-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (hover: hover) {

    .search-toggle:hover,
    .theme-toggle:hover {
        background: color-mix(in srgb, var(--color-primary), transparent 60%);
        color: #ffffff;
        box-shadow: 0 0 15px var(--color-primary), inset 0 0 5px var(--color-primary);
        text-shadow: 0 0 8px var(--color-primary);
        border-color: var(--color-primary);
        transform: none;
    }
}

.search-icon,
.theme-toggle .icon {
    font-size: 1.1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.theme-toggle .moon {
    display: none;
}

.theme-toggle .sun {
    display: block;
}

.theme-toggle .floppy {
    display: none;
}

/* --- 3.3 Site Branding (Center) --- */
.site-branding {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    z-index: 100;
    height: 125px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    transform: translateY(-1rem);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: height, transform;
}

.site-title a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ffffff;
    /* Force White */
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Add shadow for legibility */
}

.site-title a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .site-branding {
        height: 80px;
        padding: 0 1rem;
        transform: translateY(0) !important;
    }

    body.menu-open .site-branding {
        transform: translateY(-5px) !important;
    }

    .site-title a {
        font-size: 1.2rem !important;
        letter-spacing: 2px;
    }

    body.menu-open .site-title a {
        font-size: 1rem !important;
    }

    .custom-logo-link img {
        max-height: 50px !important;
    }
}

.site-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(to bottom, var(--branding-bg) 0%, var(--branding-bg) calc(100% - 50px), rgba(5, 5, 5, 0.9) 100%);
    backdrop-filter: saturate(var(--branding-saturate));
    -webkit-backdrop-filter: saturate(var(--branding-saturate));
    box-shadow: 0 5px 20px var(--branding-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: none !important;
    border-radius: 0 0 4px 4px;
    transform-origin: top;
    will-change: transform, opacity;
}

body.menu-open .site-branding::before {
    opacity: 0 !important;
}

body.menu-open .site-branding {
    box-shadow: none !important;
    backdrop-filter: none !important;
    background: transparent !important;
}

/* Scrolled State */
.site-header.scrolled .site-branding {
    transform: translateY(0);
    height: 60px;
    padding: 0 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.site-header.scrolled .site-branding::before {
    opacity: 0;
    transform: scaleY(0.48);
}

.site-header.scrolled .site-branding .custom-logo-link,
.site-header.scrolled .site-branding .site-title {
    transform: translateY(0);
}

.site-header.scrolled .site-title a {
    font-size: 1.75rem;
    letter-spacing: 8px;
    animation: branding-snap 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), branding-glitch 0.4s ease-out;
}

.site-header.scrolled .custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.site-header.scrolled {
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(10px) saturate(var(--branding-saturate));
    -webkit-backdrop-filter: blur(10px) saturate(var(--branding-saturate));
    padding: 0.5rem 0;
}

.site-header.scrolled .menu-toggle,
.site-header.scrolled .menu-actions,
.site-header.scrolled .header-controls-left {
    transform: translateY(0);
}

/* --- 3.4 Menu Actions (Right) --- */
.menu-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 768px) {

    .header-controls-left,
    .menu-actions {
        transform: translateY(-2px) !important;
    }

    .menu-toggle .menu-text,
    .menu-close .menu-text {
        display: none;
    }

    .menu-toggle,
    .menu-close {
        padding: 0 !important;
        gap: 0 !important;
        height: 44px !important;
        width: 44px !important;
        justify-content: center !important;
    }

    .site-header.scrolled .menu-actions {
        transform: translateY(2px) !important;
    }

    body.menu-open .site-header,
    body.menu-open .site-header.scrolled {
        padding: 0 0 0.5rem !important;
        top: 0 !important;
        height: auto !important;
    }
}

body.menu-open {
    overflow: hidden !important;
    position: static !important;
    height: auto !important;
    height: 100vh;
    touch-action: none;
}

html.menu-open {
    overflow: hidden !important;
}

.menu-toggle,
.menu-close {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2), inset 0 0 5px rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0;
    z-index: 101;
}

.menu-close {
    display: none;
}

body.menu-open .menu-toggle {
    display: none !important;
}

body.menu-open .menu-close {
    display: flex !important;
}

@media (hover: hover) {

    .menu-toggle:hover,
    .menu-close:hover {
        background: color-mix(in srgb, var(--color-primary), transparent 60%);
        color: #ffffff;
        box-shadow: 0 0 15px var(--color-primary), inset 0 0 5px var(--color-primary);
        text-shadow: 0 0 8px var(--color-primary);
        border-color: var(--color-primary);
    }
}

/* --- 3.5 Overlay Navigation --- */
.overlay-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #0a0a0a;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-top: 10rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.overlay-navigation::-webkit-scrollbar {
    display: none;
}

.site-header.scrolled~.overlay-navigation {
    padding-top: 10rem;
}

.overlay-navigation.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 769px) {
    .overlay-navigation {
        height: calc(60vh);
    }
}

/* --- 3.6 Menu Scroll Indicator --- */
.menu-scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.menu-scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    animation: bounce 1.5s infinite;
    backdrop-filter: blur(5px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.overlay-content {
    text-align: center;
    width: 100%;
    max-width: 1100px;
}

.overlay-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
}

.overlay-navigation a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.overlay-navigation a:hover {
    color: var(--color-primary) !important;
    text-shadow: 0 0 20px var(--color-primary);
}

.overlay-navigation li {
    position: relative;
    width: max-content;
}

.overlay-navigation ul ul {
    display: none;
    position: absolute;
    left: calc(100% + 20px);
    top: 50%;
    transform: translateY(-50%);
    padding-left: 0;
    text-align: left;
    width: max-content;
}

.overlay-navigation li:hover>ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInRight 0.4s ease forwards;
}

.overlay-navigation ul ul a {
    font-size: 1rem;
    color: #666;
    letter-spacing: 2px;
    display: block;
}

.overlay-navigation ul ul a:hover {
    color: var(--color-accent);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 768px) {
    .overlay-navigation a {
        font-size: 1.5rem !important;
        letter-spacing: 2px !important;
    }

    .overlay-navigation ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2.5rem !important;
    }

    .overlay-navigation {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
}

/*
--------------------------------------------------------------
4. Posts Grid & Cards
--------------------------------------------------------------
*/
/* --- 4.1 Grid Layout --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 4.2 Post Card --- */
.post-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

.post-card:hover::before {
    left: 150%;
    transition: left 0.7s ease;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    display: block;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: grayscale(80%) contrast(1.1);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1);
}

/* --- 4.3 Placeholders --- */
.no-thumb-placeholder.placeholder-image {
    display: block !important;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit;
    opacity: 1;
    overflow: hidden;
    border: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    transform-origin: center;
    filter: grayscale(80%) contrast(1.1);
}

.post-card:hover .no-thumb-placeholder.placeholder-image {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1);
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.post-title {
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.post-title a {
    color: var(--color-text);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    color: var(--color-text-muted);
}

/* --- 4.4 Format Indicator --- */
.format-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-accent);
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    border: 1px solid var(--color-accent);
}

/*
--------------------------------------------------------------
5. Single Post & Hero
--------------------------------------------------------------
*/
.single-post-container {
    padding-bottom: 4rem;
    position: relative;
    z-index: 4;
    margin-top: 50px;
}

article.post {
    margin-top: 0 !important;
}

/* --- 5.1 Hero Header --- */
.hero-header.glassmorphic-header {
    height: auto;
    display: flex;
    align-items: flex-start;
    padding-top: 45px;
    justify-content: center;
    position: relative;
    overflow: visible;
    margin-bottom: 0;
    margin-top: -30px;
}


/* --- 5.2 Hero Background (Blurred) --- */
.hero-bg-blurred {
    position: absolute;
    top: -40px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 200px);
    background-color: #2a2a2a;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.8) saturate(1.2);
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    mask-repeat: no-repeat;
}

.hero-bg-blurred.placeholder-image {
    display: block !important;
    width: 100%;
    height: 100%;
    background-color: #0d0d0d;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    opacity: 1;
    overflow: hidden;
    z-index: 0;
}

/* --- 5.3 Hero Card --- */
.hero-card {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 900px;
    height: 550px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    display: block;
    animation: floatUp 1s ease-out;
    margin-top: 95px;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    border-bottom: none;
}

.card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.hero-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 1rem 3rem;
    text-align: center;
    width: max-content;
    max-width: 90%;
    margin: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-meta {
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: monospace;
}

/* Dynamic Title Sizing */
.hero-title--medium {
    font-size: 1.8rem;
}

.hero-title--small {
    font-size: 1.5rem;
}

.hero-title--xsmall {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-card {
        height: 350px !important;
        margin-top: 35px !important;
    }

    .hero-header.glassmorphic-header {
        margin-top: -85px !important;
        padding: 40px 1rem !important;
    }

    .card-image {
        height: 250px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }
}

/* --- 5.4 Entry Content --- */
.entry-content {
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 1.15rem;
    color: var(--color-text);
    text-align: justify;
}

.entry-content p {
    margin-bottom: 1.8rem;
}

.entry-content img {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.entry-content h2,
.entry-content h3 {
    color: var(--color-text);
    font-family: var(--font-heading);
    margin-top: 3rem;
}

/*
--------------------------------------------------------------
6. Sidebar & Widgets
--------------------------------------------------------------
*/
.widget-area {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-glass-border);
}

@media (min-width: 1024px) {
    .single-post-container.has-sidebar {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 4rem;
        max-width: var(--container-width);
        margin: 0 auto;
    }

    .widget-area {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        position: sticky;
        top: 150px;
    }
}

.widget {
    margin-bottom: 3rem;
}

.widget-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*
--------------------------------------------------------------
7. Footer
--------------------------------------------------------------
*/
.site-footer {
    background: #000;
    padding: 4rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--color-glass-border);
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.retro-marquee-container,
.retro-button-left,
.retro-button-right,
.retro-hit-counter {
    display: none !important;
}

/*
--------------------------------------------------------------
8. Comments Section
--------------------------------------------------------------
*/
.comments-area {
    margin: 4rem 0 0 0;
    max-width: none;
}

.comments-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text);
}

.comments-toggle-container {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--color-glass-border);
    margin-top: 2rem;
}

#toggle-comments-btn {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 4px;
}

#toggle-comments-btn:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px var(--color-primary);
}

.hidden-comments {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding-top: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li.comment {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.comment-body {
    position: relative;
    padding-left: 70px;
}

.comment-author .avatar {
    position: absolute;
    left: 0;
    top: 5px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.comment-reply-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.comment-reply-link:hover {
    background: var(--color-primary);
    color: #000;
}

.comment-respond {
    margin-top: 3rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.5);
    outline: none;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.3);
}

.submit-btn {
    background: var(--color-primary);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.submit-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

/*
--------------------------------------------------------------
9. Components (Search, Lightbox, Etc.)
--------------------------------------------------------------
*/
/* --- 9.1 Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
}

.search-close:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.search-container {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.search-container input[type="search"] {
    width: 100%;
    padding: 1.5rem 0;
    font-size: 2rem;
    font-family: var(--font-heading);
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-container input[type="search"]:focus {
    border-bottom-color: var(--color-primary);
}

.search-container input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-submit {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-left: 10px;
    margin-top: 10px;
}

.search-submit:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--color-primary);
}

/* --- 9.2 Reading Progress --- */
.reading-progress-container {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 99999;
    background: transparent;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    background: var(--color-accent) !important;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: none !important;
}

/* --- 9.3 Lightbox --- */
#obsidian-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#obsidian-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 4px;
}

#obsidian-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s ease;
}

#obsidian-lightbox .lightbox-close:hover {
    transform: scale(1.1);
    color: #ccc;
}

/* --- 9.4 Gallery --- */
/* --- 9.4 Gallery --- */
.gallery,
.wp-block-gallery {
    display: grid;
    grid-gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
    /* For block gallery using ul/li */
}

/* Clear margins on items */
.gallery-item,
.wp-block-gallery .blocks-gallery-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover,
.wp-block-gallery .blocks-gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    z-index: 2;
}

/* Generic Image Handling */
.gallery-item img,
.wp-block-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    /* Force Square Grid */
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img,
.wp-block-gallery .blocks-gallery-item:hover img {
    transform: scale(1.1);
}

/* Column Grid Templates (1-9) */
.gallery-columns-1,
.wp-block-gallery.columns-1 {
    grid-template-columns: 1fr;
}

.gallery-columns-2,
.wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3,
.wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4,
.wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5,
.wp-block-gallery.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6,
.wp-block-gallery.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7,
.wp-block-gallery.columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8,
.wp-block-gallery.columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9,
.wp-block-gallery.columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

/* Default Fallback */
.gallery:not([class*="gallery-columns-"]),
.wp-block-gallery:not([class*="columns-"]) {
    grid-template-columns: repeat(3, 1fr);
}

/* Captions */
.gallery-caption,
.wp-block-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover .gallery-caption,
.wp-block-gallery .blocks-gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* --- Infinite Scroll Status --- */
.page-load-status {
    display: block;
    min-height: 24px;
    width: 100%;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* Responsive Handling */
@media (max-width: 900px) {

    .gallery[class*="gallery-columns-"],
    .wp-block-gallery[class*="columns-"] {
        grid-template-columns: repeat(3, 1fr);
        /* Cap at 3 */
    }
}

@media (max-width: 600px) {

    .gallery,
    .wp-block-gallery,
    .gallery[class*="gallery-columns-"],
    .wp-block-gallery[class*="columns-"] {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Cap at 2 */
        grid-gap: 10px;
    }

    .gallery-caption,
    .wp-block-gallery figcaption {
        display: none;
        /* Hide hover captions on mobile for cleaner look */
    }
}

/* --- 9.5 Related Content Carousel --- */
.related-content-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-glass-border);
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.related-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    padding-top: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.related-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-nav {
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
    line-height: 1;
    font-family: var(--font-heading);
    padding-bottom: 5px;
}

.carousel-nav:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px var(--color-primary);
}

.related-card {
    display: flex;
    flex-direction: column;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    flex: 0 0 300px;
    min-width: 300px;
    height: 350px;
    scroll-snap-align: start;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.related-thumbnail {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.related-card:hover .related-thumbnail img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.related-card-content {
    padding: 1.5rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.related-card-title {
    padding: 0;
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    line-height: 1.3;
}

.related-card-excerpt {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
    padding-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
}

@media (max-width: 768px) {
    .related-carousel-wrapper {
        gap: 0;
    }

    .carousel-nav {
        display: flex !important;
        position: absolute;
        z-index: 10;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(5px);
    }

    .carousel-nav.prev {
        left: 0;
    }

    .carousel-nav.next {
        right: 0;
    }

    .related-grid {
        gap: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .related-card {
        flex: 0 0 70vw;
        min-width: 70vw;
        height: auto;
        aspect-ratio: 0.75;
    }
}

/* --- 9.6 Accessibility --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-bg);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: var(--color-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

:focus-visible {
    outline: 2px dashed var(--color-primary);
    outline-offset: 4px;
}

/*
--------------------------------------------------------------
10. Theme Modes (Light)
--------------------------------------------------------------
*/
body.light-mode {
    /* Main Backgrounds */
    --color-bg: #f9f9f9;
    --color-bg-alt: #ffffff;

    /* Text */
    --color-text: #1a1a1a;
    --color-text-muted: #666666;

    /* Glass Components */
    --color-glass: rgba(255, 255, 255, 0.7);
    --color-glass-border: rgba(0, 0, 0, 0.1);

    /* Branding Box */
    --branding-bg: rgba(249, 249, 249, 0.6);
    --branding-shadow: rgba(0, 0, 0, 0.08);
    --branding-saturate: 180%;

    /* Header */
    --header-scrolled-bg: rgba(249, 249, 249, 0.5);

    /* Background overrides */
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* Light Mode Header & Branding */
body.light-mode .site-header.scrolled {
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0.6) 0%, rgba(249, 249, 249, 0.3) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .site-branding::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.7) calc(100% - 50px), #f9f9f9 100%);
    border-color: rgba(0, 0, 0, 0.1) !important;
    border-top: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05), inset 1px 0 0 0 rgba(255, 255, 255, 0.8), inset -1px 0 0 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 0 rgba(255, 255, 255, 0.8);
}

body.light-mode .site-title a,
body.light-mode .post-title a {
    color: var(--color-text);
}

body.light-mode .site-title a:hover,
body.light-mode .post-title a:hover {
    color: var(--color-primary);
}

body.light-mode a {
    color: var(--color-primary);
}

body.light-mode a:hover {
    color: var(--color-accent);
}

/* Buttons (Menu, Search, Theme) */
body.light-mode .menu-toggle,
body.light-mode .menu-close,
body.light-mode .search-toggle,
body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
    box-shadow: none;
    text-shadow: none;
}

body.light-mode .menu-toggle:hover,
body.light-mode .menu-close:hover,
body.light-mode .search-toggle:hover,
body.light-mode .theme-toggle:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    border-color: var(--color-primary) !important;
}

body.light-mode .theme-toggle .sun {
    display: none;
}

body.light-mode .theme-toggle .moon {
    display: none;
}

body.light-mode .theme-toggle .floppy {
    display: block;
}

/* Navigation Overlay */
body.light-mode .overlay-navigation {
    background: #f5f5f5;
}

body.light-mode .overlay-navigation a {
    color: var(--color-text-muted);
}

body.light-mode .overlay-navigation a:hover {
    color: var(--color-primary);
}

/* Images & Cards */
body.light-mode .post-card img {
    filter: grayscale(30%) !important;
    transition: transform 0.5s ease, filter 0.3s ease;
}

body.light-mode .post-card img:hover {
    filter: grayscale(0%) !important;
}

body.light-mode .no-thumb-placeholder.placeholder-image {
    filter: grayscale(40%) contrast(1.05) brightness(1.05);
}

body.light-mode .post-card:hover .no-thumb-placeholder.placeholder-image {
    filter: none;
}

body.light-mode .hero-bg-blurred {
    filter: blur(20px) brightness(1.2) saturate(1.2);
    opacity: 1;
}

body.light-mode .hero-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

body.light-mode .card-image img {
    transition: transform 0.5s ease;
    filter: none !important;
}

body.light-mode .hero-card:hover .card-image img {
    filter: none !important;
}

body.light-mode .card-image {
    position: relative;
    border-bottom: none;
}

body.light-mode .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    border-radius: 20px 20px 0 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .card-content {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #000;
    width: max-content;
    max-width: 90%;
    margin: 0;
}

body.light-mode .hero-title {
    color: #111;
    text-shadow: none;
}

/* Components */
body.light-mode .search-overlay {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .search-close {
    color: #333;
}

body.light-mode .search-close:hover {
    color: var(--color-primary);
}

body.light-mode .search-container input[type="search"] {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .search-container input[type="search"]:focus {
    border-bottom-color: var(--color-primary);
}

body.light-mode .search-container input[type="search"]::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

body.light-mode .lightbox-image,
body.light-mode #obsidian-lightbox img {
    filter: none !important;
    transition: none !important;
}

body.light-mode .carousel-nav {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

body.light-mode .carousel-nav:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--color-primary);
}

body.light-mode .site-footer {
    background: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

body.light-mode .comment-respond {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .comment-form label {
    color: #444;
}

body.light-mode .comment-form input[type="text"],
body.light-mode .comment-form input[type="email"],
body.light-mode .comment-form textarea {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border-color: #ddd;
}

body.light-mode .comment-form input:focus,
body.light-mode .comment-form textarea:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.1);
}