/* style.css - Main stylesheet for the blog */

/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */

:root {
    /* Greyscale variations */
    --dark-base: #000000;
    --dark-medium-darkest: #0a0a0a;
    --dark-medium-darker: #141414;
    --dark-medium: #1f1f1f;
    --dark-medium-lighter: #545454;
    --dark-medium-lightest: #878787;
    --dark-medium-lightest-30percent: rgba(84, 84, 84, 0.3);
    --dark-light: #d1d1d1;
    
    /* Accent variations */
    --accent-base: hotpink;
    --accent-hover: #e55ba0;
    --accent-muted: #dda0c0;
    --accent-light: #ffb3d9;
    --accent-dark: #ac127b;
    --accent-darker: #6c0547;
    --accent-darkest: #3b0422;
    
    /* Typography - Responsive Font Scale using clamp() */
    --font-xs: clamp(0.7rem, 0.8vw + 0.6rem, 0.8rem);      /* 0.7rem - 0.8rem */
    --font-sm: clamp(0.75rem, 0.8vw + 0.65rem, 0.85rem); /* 0.75rem - 0.85rem */
    /* Base */
    --font-md: clamp(1rem, 1.2vw + 0.8rem, 1.2rem);       /* 1rem - 1.2rem */
    --font-lg: clamp(1.1rem, 1.4vw + 0.8rem, 1.4rem);     /* 1.1rem - 1.4rem */
    --font-xl: clamp(1.3rem, 1.6vw + 1rem, 1.6rem);       /* 1.3rem - 1.6rem */
    --font-2xl: clamp(1.5rem, 2vw + 1.2rem, 2rem);        /* 1.5rem - 2rem */
    --font-3xl: clamp(2rem, 2.5vw + 1.5rem, 2.5rem);      /* 2rem - 2.5rem */
    --font-4xl: clamp(2.5rem, 3vw + 2rem, 3rem);         /* 2.5rem - 3rem */
    --font-5xl: clamp(3rem, 4vw + 2.5rem, 4rem);         /* 3rem - 4rem */
    
    /* Responsive unified sizing scale */
    --xs: clamp(0.25rem, 0.5vw + 0.25rem, 0.5rem);    /* 4px to 8px */
    --sm: clamp(0.75rem, 1vw + 0.5rem, 1rem);        /* 12px to 16px */
    --md: clamp(1rem, 1.5vw + 0.75rem, 1.5rem);     /* 16px to 24px */
    --lg: clamp(1.5rem, 2vw + 1rem, 2rem);           /* 24px to 32px */
    --xl: clamp(2rem, 3vw + 1.5rem, 3rem);           /* 32px to 48px */
    
    /* Responsive line-heights using clamp() */
    --tight: clamp(1.1, 0.1vw + 1.0, 1.2);    /* 1.1 to 1.2 */
    --normal: clamp(1.4, 0.2vw + 1.3, 1.6);  /* 1.4 to 1.6 */
    --relaxed: clamp(1.5, 0.3vw + 1.4, 1.8); /* 1.5 to 1.8 */
    --loose: clamp(1.7, 0.5vw + 1.7, 2.2);   /* 2.2 to 2.6 */
    
    /* Border radius */
    --radius: 0.5rem;
    --radius-rounded: 50%;
    
    /* Text shadows */
    --text-shadow-layered: 0px 0px 1px rgba(0,0,0,0.6), -1px 1px 2px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.3);
    --text-shadow-layered-small: 0px 0px 1px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-base);
    color: var(--dark-light);
    line-height: var(--normal);
    font-size: var(--font-md);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--lg);
}

/* Expand container width on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--md); /* Reduce padding from --lg to --md on mobile */
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h2 {
    font-size: var(--font-3xl);
    font-weight: 700;
    line-height: var(--tight);
    margin-bottom: var(--lg);
    letter-spacing: -0.03em;
    color: var(--dark-light);
}

h2 a {
    color: inherit;
    text-decoration: none;
}

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

h3 {
    font-size: var(--font-2xl);
    font-weight: 700;
    line-height: var(--tight);
    margin-bottom: var(--lg);
    letter-spacing: -0.03em;
    color: var(--dark-light);
}

h4 {
    font-size: var(--font-xl);
    font-weight: 700;
    line-height: var(--tight);
    margin-bottom: var(--lg);
    letter-spacing: -0.03em;
    color: var(--dark-light);
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
    color: var(--accent-base);
    text-decoration: none;
}

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

.back-link {
    color: var(--accent-base);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent-hover);
}


/* ==========================================================================
   Admin & Edit Links
   ========================================================================== */

.edit-link {
    display: none;
    font-size: var(--font-sm);
    color: var(--dark-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: var(--xs) var(--sm);
    border-radius: var(--radius);
    background-color: var(--dark-medium-darkest);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-muted) 20%, transparent);
    line-height: 1;
    vertical-align: middle;
}

article:hover .edit-link {
    display: inline-block;
}

.edit-link:hover {
    background-color: var(--dark-medium-darker);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-muted) 30%, transparent);
}

.edit-link:active {
    transform: translateY(0);
}



/* ==========================================================================
   Floating Navigation Buttons
   ========================================================================== */

/* Base button class - shared styles for floating buttons, filter triggers, and modal buttons */
.button-base {
    background-color: var(--dark-medium-darkest);
    color: var(--dark-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-muted) 30%, transparent);
}

.button-base:hover {
    background-color: var(--dark-medium-darker);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-muted) 40%, transparent);
}

.button-base:active {
    transform: translateY(0);
}


/* ==========================================================================
   Posts & Content
   ========================================================================== */

.post {
    max-width: 100%;
    margin-bottom: 3rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--accent-darker);
}

.post-content {
    font-size: var(--font-lg);
    line-height: var(--loose);
    color: var(--dark-light);
}

.post-content strong {
    font-weight: 600;
    color: var(--dark-light);
}

.post-content h3 {
    font-size: var(--font-xl);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--dark-light);
}

.post-content blockquote {
    border-left: 3px solid var(--accent-base);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark-medium-lightest);
}

.post-date {
    color: var(--dark-medium-lighter);
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.post-date a {
    color: var(--dark-medium-lighter);
    text-decoration: none;
}

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

/* Full-width divider between posts */
.post-divider {
    width: 100vw;
    height: 1px;
    background-color: var(--accent-darker);
    margin: 4rem 0 4rem -50vw;
    position: relative;
    left: 50%;
}

/* ==========================================================================
   Post Cards & Grid Layout
   ========================================================================== */

.posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: fit-content; /* Let the flex container size itself to content */
    max-width: 100%; /* Don't exceed parent container */
    align-items: flex-start; /* Align cards to top for consistent layout */
    /* Prevent grid shifts during loading */
    min-height: 150px; /* Reserve space for at least one row */
    contain: layout; /* CSS containment for performance */
    justify-content: center;
}

/* Post card wrapper for card + underneath info */
.post-card-wrapper {
    display: flex;
    flex-direction: column;
    width: 150px;
    margin-bottom: 1rem;
}

/* Month groups for layout stability */
.post-card {
    flex: 0 0 150px; /* Fixed width, don't grow or shrink */
    width: 150px;
    height: 150px; /* Fixed height for the card itself */
    padding: none;
    background: var(--dark-medium-darker);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    contain: layout style; /* CSS containment to prevent layout shifts */
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--accent-base);
}

.post-card.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease;
    /* Prevent layout shift during image loading */
    background-color: var(--dark-medium-darkest);
}

/* Lazy loading enhancement for post cards */
.post-card.has-image.loading {
    background-color: var(--dark-medium-darkest);
    background-image: none !important;
    /* Ensure consistent dimensions during loading */
    width: 150px;
    min-height: 150px;
}

.post-card.has-image.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-darker);
    border-top-color: var(--accent-base);
    border-radius: var(--radius-rounded);
    animation: spin 1s linear infinite;
    /* Prevent spinner from affecting layout */
    will-change: transform;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.post-card.no-image {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Mobile responsive styling for no-image posts */
@media (max-width: 480px) {
    #posts-container .posts-grid .post-card-wrapper .post-card.no-image {
        width: 100% !important; /* Override width: 150px */
        min-height: auto; /* Let aspect-ratio control height */
        aspect-ratio: 1 / 1; /* Ensure 1:1 ratio on mobile */
    }
    #posts-container {
        margin: 0 -0.5rem;
    }
}

.post-card.no-image .creative-text {
    color: white;
    opacity: 0.1;
    font-weight: 900;
    font-size: var(--font-2xl);
    line-height: 0.65rem;
    letter-spacing: -0.1em;
    word-spacing: -0.3em;
    text-transform: uppercase;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    hyphens: none;
    white-space: pre-wrap;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-rendering: optimizeSpeed;
    transform: scale(1.05);
    transform-origin: center;
    transition: all 0.3s ease;
}

.post-card.no-image .creative-text:hover {
    opacity: 0.2;
    font-size: var(--font-md);
    line-height: 0.7rem;
    letter-spacing: 0.1em;
    word-spacing: 0.1em;
    text-transform: uppercase;
}

/* Post info underneath cards */
.post-info-underneath {
    margin-top: 0.5rem;
    padding: 0;
    width: 150px;
}

.post-date-underneath {
    color: var(--dark-medium-lightest);
    font-size: var(--font-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.post-title-underneath {
    color: var(--dark-light);
    font-weight: 600;
    font-size: var(--font-sm);
    line-height: var(--normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em; /* Ensure consistent height for 2 lines */
}

.post-card h3 {
    margin-bottom: 0.5rem;
}

.post-card time {
    color: var(--dark-medium-lightest);
    font-size: var(--font-sm);
}

/* Hide overlay elements since we're not using them anymore */
.post-overlay {
    display: none !important;
}

.post-card:hover .post-overlay {
    display: none !important;
}

.post-date-overlay {
    color: white;
    font-size: var(--font-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title-overlay {
    color: white;
    font-weight: 600;
    font-size: var(--font-sm);
    line-height: var(--normal);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Tags
   ========================================================================== */

.post-tags {
    margin: 2rem 0;
    padding-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background-color: var(--dark-medium-darker);
    color: var(--dark-medium-lightest);
    padding: var(--sm) var(--md);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: var(--dark-medium);
    color: var(--dark-light);
    text-decoration: none;
}

.tag.active {
    background-color: var(--accent-base);
    color: var(--dark-base);
}

/* ==========================================================================
   Media & Embeds
   ========================================================================== */
/* 
 * Media handling system for images, audio, and galleries.
 * Provides consistent styling and responsive behavior across all media types.
 * 
 * Key Features:
 * - Responsive image sizing with aspect ratio preservation
 * - Background blur for low-resolution images
 * - Gallery navigation and controls
 * - Audio embed styling and hover effects
 */

/* Media Container */
/* 
 * Container for gallery images with consistent spacing and background.
 * Used by the media-container.php component for displaying post image collections.
 * 
 * Styling:
 * - Negative margins to break out of article bounds
 * - Subtle background for visual separation
 * - Responsive padding and border radius
 */
.media-container {
    margin: 2rem -2rem;
    background-color: var(--dark-medium-darkest);
    padding: 2rem;
    border-radius: var(--radius);
}

.media-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    /* Ensure images can display at reasonable size */
    min-width: 300px;
    max-width: 100%;
    /* Ensure aspect ratio is maintained */
    object-fit: contain;
}

/* Audio Embeds */
.audio-embed {
    margin: 0;
    padding: 1.5rem;
    background-color: var(--dark-medium-darkest);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-align: center;
}

.audio-embed:hover {
    background-color: var(--dark-medium-darker);
}

.audio-embed iframe {
    border-radius: var(--radius);
    background-color: var(--dark-base);
}

.audio-embed.soundcloud-embed iframe {
    height: 200px;
}

.audio-embed .audio-title {
    font-size: var(--font-sm);
    color: var(--dark-medium-lightest);
    text-align: center;
    font-style: italic;
}

.audio-embed .audio-link {
    text-decoration: none;
    text-align: center;
}

.direct-audio-embed audio {
    width: 100%;
    height: 40px;
    border-radius: var(--radius);
}

/* Image Embeds */
/* 
 * Styling for images processed through Markdown (![alt](image.jpg)).
 * All images automatically get this styling and break out of article bounds
 * for maximum visual impact, especially for high-resolution DSLR photos.
 * 
 * Key Features:
 * - Full-width display breaking out of ~656px article width
 * - Responsive sizing up to 1200px maximum
 * - Consistent background and hover effects
 * - Integration with background blur for low-resolution images
 * 
 * Usage:
 * - Markdown: ![description](image.jpg)
 * - PHP: Automatically wrapped in <div class="image-embed">
 * - CSS: Uses calc(100vw - 8rem) for responsive width
 */
.image-embed {
    background-color: var(--dark-medium-darkest);
    padding: 2rem;
    border-radius: var(--radius);
}

.image-embed:hover {
    background-color: var(--dark-medium-darker);
}

.image-embed img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
    transition: opacity 0.3s ease;
    /* Ensure images can display at reasonable size */
    min-width: 300px;
    max-width: 100%;
    /* Ensure aspect ratio is maintained */
    object-fit: contain;
}

/* Responsive picture elements */
.image-embed picture {
    display: block;
    width: 100%;
}

.image-embed picture img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    transition: opacity 0.3s ease;
    background-color: var(--dark-medium-darker);
    /* Ensure images can display at reasonable size */
    min-width: 300px;
    max-width: 100%;
    /* Ensure aspect ratio is maintained */
    object-fit: contain;
}

/* Loading state for images */
.image-embed img[loading="lazy"] {
    background: var(--dark-medium-darker);
    /* Removed min-height: 200px to prevent image distortion */
}

/* Image fade-in effect when loaded */
.image-embed img.loaded {
    opacity: 1;
}

/* Placeholder for loading images */
.image-embed.loading::before {
    content: "Loading image...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-medium-lighter);
    font-size: var(--font-sm);
    z-index: 1;
    pointer-events: none;
}

/* Image caption styling - similar to audio embed captions */
.image-embed .image-caption {
    color: var(--dark-medium-lightest);
    font-size: var(--font-sm);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Post Content Image Styling */
/* 
 * Images within post content get special treatment to maximize visual impact.
 * High-resolution DSLR images break out of the constrained article width
 * while maintaining text readability.
 * 
 * Layout Strategy:
 * - Text content: Stays within ~656px article bounds for optimal reading
 * - Images: Break out to use maximum available width (up to 1200px)
 * - Responsive: Adapts to different screen sizes with calc(100vw - 8rem)
 * 
 * This approach ensures:
 * - Professional photography gets the display space it deserves
 * - Text remains readable and comfortable to read
 * - Consistent visual hierarchy across all posts
 */
.post-content .image-embed {
    /* Break out significantly wider than the ~656px article width */
    width: calc(100vw - 8rem);
    max-width: 1200px; /* Reasonable maximum */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* General Image Constraints */
/* 
 * Ensures all images within post content display properly.
 * Removed min-width constraints to prevent stretching issues.
 * 
 * Key Rules:
 * - max-width: 100% prevents overflow
 * - height: auto maintains aspect ratio
 * - No artificial size constraints
 */
.post-content img,
.post-content picture img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Gallery Embeds
   ========================================================================== */

.gallery-embed {
    /* Match image-embed styling */
    background-color: var(--dark-medium-darkest);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    transition: all 0.2s ease;
}

.gallery-embed:hover {
    background-color: var(--dark-medium-darker);
}

/* For galleries within post content - break out of article bounds like images */
.post-content .gallery-embed {
    /* Break out significantly wider than the ~656px article width */
    width: calc(100vw - 8rem);
    max-width: 1200px; /* Reasonable maximum */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   Low-Resolution Image Background Blur
   ========================================================================== */
/* 
 * Intelligent background blur system for low-resolution images.
 * Automatically detects small images (< 1024px width, < 100KB) and applies
 * a blurred background effect instead of stretching them.
 * 
 * How It Works:
 * 1. PHP detects low-resolution images using should_use_background_blur()
 * 2. generate_low_res_image_with_blur() creates the HTML structure
 * 3. CSS provides the visual effects and responsive behavior
 * 
 * Benefits:
 * - Prevents pixelation from stretching small images
 * - Creates professional appearance for low-resolution content
 * - Maintains visual hierarchy with high-resolution images
 * - Works automatically without manual intervention
 */

/* Low-resolution image container with background blur */
/* 
 * Main container for images that need background blur treatment.
 * Uses flexbox for centering and provides consistent spacing.
 * 
 * Structure:
 * - .low-res-background: Contains the blurred background image
 * - .foreground-image: The main image displayed at actual size
 * - Aspect ratio classes: wide-ratio, square-ish, portrait
 */
.low-res-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: var(--dark-medium-darker);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2rem 0;
}

.low-res-background {
    /* 
     * Container for the blurred background image.
     * Positioned absolutely to fill the entire container.
     * Lower z-index ensures it stays behind the foreground image.
     */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-blur {
    /* 
     * The actual blurred background image.
     * Uses blur(5px) for aesthetic effect and brightness(0.5) for subtlety.
     * object-fit: cover ensures the image fills the container completely.
     * 
     * Note: Currently all aspect ratio classes use scale(1) for consistent behavior.
     * Future optimization could use different scales based on image orientation.
     */
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(0.5);
}

/* Aspect Ratio Classes */
/* 
 * Different scaling values for different image orientations.
 * Currently all set to scale(1) for consistent behavior.
 * Future optimization could use:
 * - wide-ratio: scale(3) for very wide images
 * - square-ish: scale(2.5) for roughly square images  
 * - portrait: scale(2) for tall images
 */
.low-res-image-container .background-blur {
    transform: scale(1);
}

.foreground-image {
    /* 
     * The main image displayed at its actual dimensions.
     * Higher z-index ensures it appears above the blurred background.
     * Inline styles set max-width/max-height to prevent stretching.
     * 
     * Styling:
     * - object-fit: contain preserves aspect ratio
     * - Subtle shadow adds depth and separation
     * - Border radius for consistent visual style
     */
    position: relative;
    z-index: 2;
    /* Dimensions are now set inline based on actual image size */
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-title-caption {
    color: var(--dark-medium-lightest);
    font-size: var(--font-sm);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.gallery-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--dark-medium-darker);
}

.gallery-slide {
    display: none;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide.active {
    display: block;
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 85vh; /* Increased from 70vh to take up more viewport */
    object-fit: contain;
}

.gallery-caption {
    color: var(--dark-medium-lightest);
    font-size: var(--font-sm);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Navigation buttons - styled like back-to-top button */
.gallery-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
    padding: 10px 0;
}

.gallery-nav {
    background-color: var(--dark-medium-darkest);
    color: var(--dark-light);
    border: none;
    border-radius: var(--radius-rounded);
    width: 3.5rem;
    height: 3.5rem;
    font-size: var(--font-2xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-muted) 30%, transparent);
}

.gallery-nav:hover {
    background-color: var(--dark-medium-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-muted) 40%, transparent);
}

.gallery-nav:active {
    transform: translateY(0);
}

/* Image counter */
.gallery-counter {
    color: var(--dark-medium-lightest);
    font-size: var(--font-sm);
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.gallery-placeholder {
    padding: 20px;
    text-align: center;
    color: var(--dark-medium-lightest);
    font-style: italic;
    background: var(--dark-medium-darker);
    border-radius: var(--radius);
}

/* Hide navigation for single images */
.gallery-embed:has(.gallery-slide:only-child) .gallery-navigation {
    display: none;
}

/* ==========================================================================
   CSS-Only Gallery Styles (using scroll-button)
   ========================================================================== */

.css-gallery-viewport {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
}

.css-gallery-viewport::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.css-gallery-slide {
    flex: 0 0 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1 !important;
    position: relative;
}

.css-gallery-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto;
    max-height: 85vh;
    object-fit: contain;
    opacity: 1 !important;
}

/* Invisible scroll buttons overlaid on the image */
.css-gallery-scroll-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 33%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.css-gallery-scroll-btn:hover {
    opacity: 0.1;
    background: rgba(0, 0, 0, 0.1);
}

.css-gallery-prev {
    left: 0;
}

.css-gallery-next {
    right: 0;
}

/* Position the scroll buttons relative to the carousel */
.css-gallery .gallery-carousel {
    position: relative;
}

/* Ensure the gallery counter is positioned correctly */
.css-gallery .gallery-counter {
    margin-top: 1rem;
    text-align: center;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-darker);
}

.pagination a {
    padding: 0.5rem 1rem;
    background-color: var(--dark-medium-darker);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: var(--dark-medium);
    text-decoration: none;
}

.page-info {
    color: var(--dark-medium-lightest);
    font-size: var(--font-sm);
}

/* ==========================================================================
   Archive Page Styles
   ========================================================================== */

.filter-triggers {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* Header with filters */
.archive-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 2rem;
}

.archive-title {
    margin: 0;
}

.archive-controls {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-direction: row;
    height: 2.75rem;
}

.search-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    justify-content: center;
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    text-align: center;
    color: var(--dark-light);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--dark-medium-darkest);
    border-top: 4px solid var(--accent-base);
    border-radius: var(--radius-rounded);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner p {
    font-size: var(--font-md);
    color: var(--dark-light);
    margin: 0;
}

.clear-filters-link {
    text-decoration: none;
    font-size: var(--font-sm);
    transition: color 0.2s ease;
}

.clear-filters-link.hidden {
    display: none;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
/* 
 * Filter Modals System:
 * - CSS classes for modal styling, tag visibility, and search inputs
 * - Used by both archive.php and admin/index.php
 * - See docs/filter-modals.md for complete documentation
 */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--dark-medium-darker);
    border-radius: var(--radius);
    padding: 0.75rem 1rem 1rem 1rem;
    max-width: 640px;
    width: 90%;
    max-height: 90vh;
    min-height: 240px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 1rem 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--accent-darker);
}

.modal-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--dark-light);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-2xl);
    cursor: pointer;
    color: var(--dark-medium-lightest);
    padding: 0.5rem;
    border-radius: var(--radius-rounded);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--dark-medium-darkest);
    color: var(--dark-light);
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    color: var(--dark-light);
    font-weight: 600;
    font-size: var(--font-sm);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.filter-checkbox {
    position: relative;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-checkbox label {
    display: inline-block;
    background-color: var(--dark-medium-darkest);
    color: var(--dark-medium-lightest);
    padding: var(--xs) var(--sm);
    border-radius: var(--radius);
    font-size: var(--font-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    user-select: none;
    text-align: center;
}

.filter-checkbox input[type="checkbox"]:checked + label {
    background-color: var(--accent-base);
    color: var(--dark-base);
    border-color: var(--accent-base);
}

.filter-checkbox label:hover {
    background-color: var(--dark-medium-darker);
    color: var(--dark-light);
}

.filter-checkbox input[type="checkbox"]:checked + label:hover {
    background-color: var(--accent-hover);
    color: var(--dark-base);
}

div.filter-checkbox.tag-option.top-10 label {
    font-size: var(--font-lg) !important;
}

div.filter-checkbox.tag-option.top-30 label {
    font-size: var(--font-md) !important;
}

div.filter-checkbox.tag-option.regular label {
    font-size: var(--font-xs) !important;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem -1.5rem -1.5rem -1.5rem;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--accent-darker);
    background-color: var(--dark-medium-darker);
    position: sticky;
    bottom: -1.5rem;
    z-index: 10;
    background-clip: padding-box;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-base);
    color: var(--dark-base);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--dark-medium-darker);
    color: var(--dark-light);
    border: 1px solid var(--accent-darker);
}

.btn-secondary:hover {
    background-color: var(--dark-medium);
}

/* Tag search */
.tag-search {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.tag-search input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 1px solid var(--accent-darker);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    background-color: var(--dark-medium-darkest);
    color: var(--dark-light);
}

.tag-search input:focus {
    outline: none;
    border-color: var(--accent-base);
}

.tag-search-clear {
    background: none;
    border: none;
    font-size: var(--font-xl);
    cursor: pointer;
    color: var(--dark-medium-lightest);
    padding: 0.2rem;
    border-radius: var(--radius-rounded);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
    z-index: 1;
}

.tag-search-clear:hover {
    background-color: var(--dark-medium-darkest);
    color: var(--dark-light);
    opacity: 1;
}

/* Tag search container with clear button */
.tag-search-container {
    margin-bottom: 1rem;
}

.tag-search-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
}

.tag-search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.tag-search-input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    border: 1px solid var(--accent-darker);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    background-color: var(--dark-base);
    color: var(--dark-light);
}

.tag-search-input:focus {
    outline: none;
    border-color: var(--accent-base);
}

.tag-search-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
}

.tag-search-buttons .btn {
    padding: 0.4rem 0.6rem;
    font-size: var(--font-xs);
    white-space: nowrap;
    min-width: auto;
}

/* Sticky search container for modals */
.tag-search-sticky {
    position: sticky;
    top: 0rem;
    left: 0;
    width: 100%;
    background-color: var(--dark-medium-darker);
    padding: 0.75rem 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    z-index: 10;
    background-clip: padding-box;
}

.tag-search-info {
    margin-top: 0.5rem;
    font-size: var(--font-xs);
    color: var(--dark-medium-lightest);
}

.tag-count-display {
    color: var(--dark-medium-lightest);
}

.tag-count {
    font-size: var(--font-xs);
    color: var(--dark-medium-lighter);
    margin-left: 0.25rem;
}

/* Tag visibility classes - See docs/filter-modals.md for usage */
.tag-hidden {
    display: none !important;
}

.tag-visible {
    display: inline-block !important;
}

/* Ensure tag chips respect visibility - more specific rules */
.tag-chip.tag-hidden,
.filter-checkbox.tag-hidden {
    display: none !important;
}

/* Override any inline styles for hidden tags */
.tag-chip[class*="tag-hidden"],
.filter-checkbox[class*="tag-hidden"] {
    display: none !important;
}

/* Most specific rule - if tag-hidden is present, hide regardless of other classes */
.tag-chip.tag-hidden,
.filter-checkbox.tag-hidden,
.tag-chip:has(.tag-hidden),
.filter-checkbox:has(.tag-hidden) {
    display: none !important;
}

/* AGGRESSIVE HIDING - Force hide any element with tag-hidden class */
[class*="tag-hidden"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Additional specific rules for filter-checkbox elements */
.filter-checkbox.tag-hidden,
.filter-checkbox.tag-option.tag-hidden,
div.filter-checkbox.tag-option.tag-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   Archive Results
   ========================================================================== */

.archive-results {
    margin-top: 1rem;
}

.results-header {
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: var(--font-sm);
    color: var(--dark-medium-lightest);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Archive page full-width layout */
.archive-page .container {
    max-width: none;
    padding: 0 2rem;
}
@media (max-width: 1200px) {
    .archive-page .container {
        padding: 0 1rem;
    } 
}

/* Archive flexible layout */
#posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: center;
}

.month-group {
    contain: layout; /* Prevent layout shifts between months */
    flex: 0 0 auto; /* Size to content, don't grow or shrink */
    max-width: min(80vw, 650px); /* Responsive: 80% of viewport width, but not more than 650px */
}

.month-header {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--dark-light);
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    white-space: nowrap; /* Prevent line wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile responsiveness for flexible layout */
@media (max-width: 512px) {
    .month-group {
        max-width: 100%; /* Allow full width on mobile for 3 columns */
        margin-bottom: 0;
    }
    
    #posts-container .posts-grid {
        display: grid !important; /* Use CSS Grid for predictable 3 columns */
        grid-template-columns: 1fr 1fr 1fr; /* Force exactly 3 equal columns */
        gap: 0.5rem; /* 8px gap */
        width: 100%;
        justify-content: center;
        grid-auto-rows: auto; /* Let rows size to content */
    }
    
    #posts-container .posts-grid .post-card-wrapper .post-card {
        flex: none !important; /* Override flex: 0 0 150px */
        width: 100% !important; /* Override width: 150px */
        height: auto !important; /* Let aspect-ratio control height */
        aspect-ratio: 1 / 1; /* 1:1 ratio for all posts */
    }
    
    #posts-container .posts-grid .post-card-wrapper {
        width: 100% !important; /* Override width: 150px */
        max-width: none !important; /* Remove any max-width constraints */
        min-width: 0 !important; /* Allow shrinking if needed */
    }
    
    #posts-container .posts-grid .post-card-wrapper .post-info-underneath {
        width: 100%;
    }
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--dark-medium-lightest);
}

/* Thoughts Controls Styles (matching issues project) */
.thoughts-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: var(--spacing-md) 0;
    justify-content: center;
}

.search-form {
    flex: 1;
    max-width: 400px;
}

.search-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--sm);
}

.post-count {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--font-md);
    color: var(--dark-medium-lighter);
    margin-top: var(--sm);
}

.search-input {
    flex: 1;
    padding: var(--xs) var(--sm);
    border: 1px solid var(--accent-darker);
    border-radius: var(--radius);
    background: var(--dark-medium-darker);
    color: var(--dark-light);
    font-size: var(--font-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.search-input:hover {
    border-color: var(--accent-base);
}

.search-input:focus {
    outline: none;
    border: 1px solid var(--accent-hover);
    border-color: var(--accent-base);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: var(--dark-medium-lightest);
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: var(--dark-medium-lighter);
}

/* Caret color styling for search input */
.search-input {
    caret-color: var(--accent-base);
}

.search-clear-btn {
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-medium-lightest);
    font-size: var(--font-2xl);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-rounded);
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    background: var(--dark-medium);
    color: var(--dark-light);
}

.filter-buttons {
    display: flex;
    gap: var(--xs);
    align-items: center;
}

.filter-button {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--dark-light);
    font-size: var(--font-lg);
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: none;
    outline: none;
    box-shadow: none;
    background-image: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-button:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: var(--accent-darkest);
}

.filter-button:active {
    transform: translateY(0) scale(1);
}

/* Active state for filter buttons when filters are applied */
.filter-button.active {
    background-color: var(--accent-darker);
}

.filter-button.active:hover {
    transform: translateY(-2px) scale(1.05);
}

.clear-all-filters-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background-color: transparent;
    font-size: var(--font-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    box-shadow: none;
    background-image: none;
    appearance: none;
}

.clear-all-filters-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Infinite Scroll Styles */
.infinite-scroll-loading {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
}

.infinite-scroll-loading .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.infinite-scroll-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--accent-darker);
    border-top-color: var(--accent-base);
    border-radius: var(--radius-rounded);
    animation: spin 1s linear infinite;
}

.infinite-scroll-loading p {
    margin: 0;
    color: var(--dark-medium-lightest);
    font-size: var(--font-sm);
}

.infinite-scroll-end {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--dark-medium-lightest);
}

.infinite-scroll-end p {
    margin: 0;
    font-size: var(--font-lg);
}

.infinite-scroll-error {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    background: var(--dark-medium-darkest);
    border: 1px solid var(--accent-darker);
    border-radius: var(--radius);
}

.infinite-scroll-error p {
    margin: 0 0 1rem 0;
    color: var(--dark-medium-lightest);
}

.infinite-scroll-error button {
    background: var(--accent-base);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: var(--font-sm);
    transition: background-color 0.2s ease;
}

.infinite-scroll-error button:hover {
    background: var(--accent-hover);
}

/* Responsive styles for thoughts controls */
@media (max-width: 768px) {   
    .search-container {
        max-width: none;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {  
    .filter-button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: var(--font-xl);
    }
    
    .clear-all-filters-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: var(--font-xl);
    }
}

/* ==========================================================================
   Lazy Loading
   ========================================================================== */

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}



/* ==========================================================================
   Responsive Design
   ========================================================================== */
/* 
 * Responsive design rules that adapt the layout for different screen sizes.
 * Ensures optimal viewing experience across desktop, tablet, and mobile devices.
 * 
 * Breakpoints:
 * - 1200px: Large screens (desktop)
 * - 768px: Medium screens (tablet)
 * - Mobile: Small screens (phones)
 * 
 * Key Adaptations:
 * - Image width calculations adjust for smaller viewports
 * - Typography scales appropriately
 * - Navigation elements become more compact
 * - Touch-friendly sizing for mobile devices
 */

@media (max-width: 1200px) {
    .post-content .image-embed {
        width: calc(100vw - 4rem);
    }
    
    .post-content .gallery-embed {
        width: calc(100vw - 4rem);
    }
}

@media (max-width: 768px) {
    body {
        font-size: var(--font-md);
    }
    
    .media-container {
        margin: 2rem -1rem;
        padding: 1rem;
    }
    
    .audio-embed {
        height: auto;
    }
    
    .audio-embed.soundcloud-embed iframe {
        height: 100px;
    }
    
    .post-content .image-embed {
        width: calc(100vw - 2rem);
        padding: 0rem;
        margin-top: 1rem;
    }
    
    .post-content .gallery-embed {
        width: calc(100vw - 2rem);
        padding: 0;
    }
    
    .gallery-nav {
        width: 3rem;
        height: 3rem;
        font-size: var(--font-xl);
    }
    
}

/* ==========================================================================
   Load More Button
   ========================================================================== */

.load-more-button-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem 1rem;
    width: 100%;
}

.load-more-button-container.hidden {
    display: none !important;
}

.load-more-btn {
    background: var(--dark-medium-darkest);
    color: var(--dark-light);
    border: 1px solid var(--accent-darker);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
    background: var(--dark-medium-darker);
    border-color: var(--dark-medium-lightest);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.load-more-btn:disabled {
    background: var(--dark-medium-darkest);
    color: var(--dark-medium-lightest);
    border-color: var(--accent-darker);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness for load more button */
@media (max-width: 768px) {
    .load-more-button-container {
        margin: 2rem 0;
        padding: 1.5rem 0.5rem;
    }
    
    .load-more-btn {
        padding: 0.6rem 1.5rem;
        font-size: var(--font-sm);
    }
}