
/*
Theme Name: Pixelmood Core v2
Theme URI: https://pixelmood.io
Author: Your Name
Author URI: https://pixelmood.io
Description: Pixelmood AI Prompt Theme
Version: 2.6.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pixelmood-core
*/

:root {
    /* Colors Palette */
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-text: #1a202c;
    --color-text-muted: #718096;
    --color-bg: #fafbfe;
    --color-border: #eef2f6;
    --color-border-dotted: #cbd5e1;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Spacings & Borders */
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 6px;
    
    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.01);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.02);
    --shadow-lg: 0 12px 30px rgba(79, 70, 229, 0.12);
    
    /* Animations */
    --transition-fast: 0.18s ease;
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Base Reset & System Font Stack (No External Render-Blocking Fonts) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.62;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* 🧱 ABSOLUTE BOUNDED CONTAINERS 🧱 */
.pm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.pm-container-sm {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* 2. Semantic Grid Layout (Strict cross-browser columns alignment) */
.content-grid {
    display: grid;
    grid-template-columns: 2.6fr 1fr;
    gap: 40px;
    align-items: start; /* Prevents columns from stretching unevenly */
    width: 100%;
    margin-top: 30px;
    margin-bottom: 45px;
}

.content-grid > article {
    grid-column: 1;
    min-width: 0;
    width: 100%;
}

.content-grid > aside {
    grid-column: 2;
    min-width: 0;
    width: 100%;
}

/* Header & Premium Styling with Pixel Reference touch */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px dotted var(--color-border-dotted); /* Elegant 1px dotted pixel-reference separator */
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.logo a {
    font-weight: 500; /* Lighter, highly elegant modern typography for logo */
    font-size: 1.45rem;
    color: var(--color-black);
    letter-spacing: -0.8px;
}

/* Literal Pixel Reference: Indigo pixel block in logo */
.logo-pixel {
    background: var(--color-primary);
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 2px;
    vertical-align: baseline;
    border-radius: 1px; /* 100% square pixel touch */
}

.site-header nav ul {
    display: flex;
    list-style: none;
    gap: 22px;
}

.site-header nav ul li a {
    color: #4a5568;
    font-weight: 500; /* Light elegant navigation fonts */
    font-size: 0.92rem;
    transition: color 0.15s ease;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.site-header nav ul li a:hover {
    color: var(--color-primary);
}

/* 3. Hero and Search */
.archive-hero {
    background: var(--color-white);
    border-bottom: 1px dotted var(--color-border-dotted); /* Elegant 1px dotted pixel separator */
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.archive-hero h1 {
    font-size: 2.5rem;
    font-weight: 500; /* Lighter elegant heading fonts */
    letter-spacing: -1px;
    color: var(--color-black);
    line-height: 1.15;
}

.archive-hero p {
    color: #4a5568;
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-search-wrapper {
    margin-top: 15px;
    width: 100%;
    max-width: 520px;
}

.hero-search-input {
    width: 100%;
    padding: 13px 24px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.03);
    transition: all 0.2s ease;
}

.hero-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 4px 22px rgba(79, 70, 229, 0.08);
}

/* 4. Horizontal Categories Above Prompts */
.horizontal-categories-container {
    text-align: center;
    margin: 20px 0 35px 0;
}

.horizontal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

#hidden-categories-wrapper {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tab-btn {
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
    text-transform: uppercase; /* Capitalization */
    letter-spacing: 0.5px;
}

.category-tab-btn.active, .category-tab-btn:hover {
    background: var(--color-primary); 
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.view-all-btn-style {
    background: #f1f3f4;
    border-color: #ddd;
    color: #111;
    font-weight: 700;
}

/* 5. Prompt Grid Layout (Pinterest-Style Masonry Layout!) */
.prompt-grid {
    column-count: 3;
    column-gap: 25px;
    width: 100%;
    margin-bottom: 50px;
}

/* 📸 ADVANCED OVERLAY CARD SYSTEM (Replicates your premium reference screenshot!) 📸 */
.prompt-card {
    position: relative;
    background: var(--color-black);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: auto;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 25px;
    text-decoration: none;
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.prompt-card-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.card-asset,
.single-featured-image,
.blog-excerpt-image,
.blog-featured-image {
    display: block;
}

.card-asset {
    width: 100%;
    height: 100%;
}

.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.ratio-4-5 {
    aspect-ratio: 4 / 5;
}

.ratio-2-3 {
    aspect-ratio: 2 / 3;
}

.ratio-9-16 {
    aspect-ratio: 9 / 16;
}

.image-fit-cover {
    object-fit: cover;
}

.image-fit-contain {
    object-fit: contain;
}

.card-blur-bg,
.blurred-bg-clone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.card-blur-bg {
    background-image: var(--card-blur-background, none);
    filter: blur(25px) brightness(0.7);
    opacity: 0.8;
}

.blurred-bg-clone {
    background-image: var(--single-blur-background, none);
    filter: blur(35px) brightness(0.65);
    opacity: 0.8;
}

.prompt-image-fallback {
    background: #111;
    width: 100%;
    height: 100%;
}

/* Dark gradient overlay to ensure 100% legibility of white text on any image */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 3;
}

.card-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Glassmorphic Pill Badges */
.card-glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase; /* Auto Capitalization */
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
}

.card-overlay-mid {
    margin-top: auto;
    margin-bottom: 12px;
}

.card-overlay-prompt-text {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit prompt text lines beautifully */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-overlay-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Glassmorphic Buttons */
.card-glass-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.card-glass-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.card-glass-btn.copied-active {
    background: #10b981 !important; /* Green success state */
    border-color: #10b981 !important;
}

/* 6. Single Article & Custom Prompt Elements */
.single-post-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 30px 40px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.post-header {
    margin-bottom: 25px;
}

.post-header h1 {
    font-size: 2.2rem;
    font-weight: 500; /* Elegant light header weight */
    letter-spacing: -0.8px;
    line-height: 1.25;
    color: var(--color-black);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* Cross-browser Perfect Aspect Ratio */
.featured-image-container {
    position: relative;
    margin: 30px auto;
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    background: #000;
}

.single-featured-image {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
}

/* Advanced Interactive Prompt Box */
.prompt-container-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.prompt-box-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: #111;
    color: var(--color-white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.prompt-text-block {
    font-family: monospace;
    font-size: 0.95rem;
    color: #1a202c;
    word-break: break-word;
    white-space: pre-wrap;
    background: var(--color-white);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
    margin: 0;
}

/* Parameter Spec Table */
.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.88rem;
}

.parameter-table th, .parameter-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.parameter-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #4a5568;
}

/* 📰 ELITE INFORMATIONAL BLOG CLASSES (No Inline Styles!) 📰 */
.archive-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 45px 5%;
    text-align: center;
    margin-bottom: 30px;
}

.archive-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: -0.7px;
    color: var(--color-black);
    text-transform: uppercase;
}

.archive-desc {
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

.blog-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 50px 20px;
    border-bottom: 1px dotted var(--color-border-dotted);
    background: var(--color-white);
    width: 100%;
}

.blog-archive-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-black);
    letter-spacing: -1px;
    line-height: 1.2;
}

.blog-archive-desc {
    color: #4a5568;
    font-size: 1.02rem;
    margin-top: 10px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.blog-stream-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.blog-title {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.5px;
}

.blog-title a {
    color: var(--color-black);
}

.blog-excerpt-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.blog-excerpt-img {
    width: 180px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.blog-excerpt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-excerpt-text {
    flex: 1;
    min-width: 250px;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

.read-more-link {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: underline;
    display: inline-block;
    margin-top: 8px;
}

.sidebar-widget-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.sidebar-cat-links-list, .sidebar-cat-links-single {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.sidebar-cat-links-list li {
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 6px;
}

.sidebar-cat-links-list a {
    font-weight: 600;
    font-size: 0.88rem;
    color: #4a5568;
    display: block;
}

.single-blog-title {
    font-size: 2.3rem;
    font-weight: 500;
    line-height: 1.25;
    color: #111;
    letter-spacing: -0.8px;
}

.blog-featured-image-wrapper {
    margin: 25px auto;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.empty-state-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #777;
    font-weight: 600;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #ccc;
}

.empty-state-title {
    font-weight: 500;
    color: #555;
}

.empty-state-desc {
    color: #777;
    font-size: 0.9rem;
    margin-top: 5px;
}

.info-widget {
    margin-top: 30px;
}

.info-widget p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

/* Related blog section styles */
.related-blogs-section {
    margin: 60px auto 40px auto;
    border-top: 1px solid #eaeaea;
    padding-top: 25px;
}

.related-blogs-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card-equal-height {
    height: 100%;
}

.text-card-img-size {
    width: 100px;
}

.small-text-link {
    font-size: 0.85rem;
    margin-top: 6px;
}

/* 📜 RESTORE BEAUTIFUL NATIVE BULLET LIST STYLES 📜 */
.entry-content ul, 
.blog-content-body ul, 
ul.blog-list {
    display: block !important;
    list-style-type: disc !important;
    margin-block-start: 1em !important;
    margin-block-end: 1em !important;
    padding-inline-start: 40px !important;
    unicode-bidi: isolate !important;
    margin-left: 20px;
}

.entry-content ol, 
.blog-content-body ol {
    display: block !important;
    list-style-type: decimal !important;
    margin-block-start: 1em !important;
    margin-block-end: 1em !important;
    padding-inline-start: 40px !important;
    unicode-bidi: isolate !important;
    margin-left: 20px;
}

.entry-content li, 
.blog-content-body li, 
ul.blog-list li {
    display: list-item !important;
    margin-bottom: 8px !important;
    color: #2d3748;
}

/* 💻 BULLETPROOF CODE BLOCK & PRE WRAPPING (Prevents horizontal overflow and screen blowouts) 💻 */
pre, 
code, 
.blog-code-block, 
.prompt-text-block code {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100%;
    overflow-x: auto;
}

.blog-code-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #1a202c;
    margin: 20px 0;
}

/* Prevent long unbroken text strings or links in paragraphs from overflowing */
.blog-p, .entry-content p, .blog-content-body p {
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* 🏷️ CATEGORY CAPITALIZATION RULES (Guarantees ALL categories display in uppercase) 🏷️ */
.badge,
.card-glass-badge,
.sidebar-cat-links-single a,
.sidebar-category-list button,
.blog-categories a,
.blog-meta a,
.sidebar-widget ul li a,
.category-tab-btn {
    text-transform: capitalize;
    letter-spacing: 0.6px;
}

/* Sidebar styling */
.site-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget {
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--color-primary); /* Indigo accent border */
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-black);
}



.sidebar-cat-links-single li {
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 6px;
}

.sidebar-cat-links-single a {
    font-weight: 600;
    font-size: 0.88rem;
    color: #4a5568;
    display: block;
}

/* 📱 CENTRALIZED PERFORMANCE MEDIA QUERIES (Saves parsing passes & page rendering lag!) 📱 */

/* A. TABLET SCREENS OPTIMIZATIONS (< 900px) */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .prompt-grid {
        column-count: 2;
        column-gap: 20px;
    }
    
 
    
   
}

/* B. MOBILE SCREENS OPTIMIZATIONS (< 600px) */
@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
        text-align: center;
    }
    
    .site-header nav ul {
        justify-content: center;
        gap: 15px;
    }
    
    .site-header nav ul li a {
        font-size: 0.85rem;
    }
    
    .archive-hero {
        padding: 40px 15px;
    }
    
    .archive-hero h1 {
        font-size: 1.8rem;
    }
    
    .archive-hero p {
        font-size: 0.9rem;
    }
    
    .category-tab-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
        border-radius: 20px;
    }
    
    .horizontal-categories {
        gap: 5px;
        margin: 15px 0 25px 0;
    }
    
    .prompt-grid {
        column-count: 1;
    }
    
    .single-post-wrapper {
        padding: 20px 15px;
    }
    
    .post-header h1 {
        font-size: 1.5rem;
    }
    
    .site-footer div {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .site-footer nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Footer styling */
.site-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 30px 5%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 60px;
}

/* testcomite  */