/*
Theme Name: Shade Theme
Theme URI: https://yourwebsite.com/shade
Author: Your Name
Author URI: https://yourwebsite.com
Description: A professional WordPress theme with dark/light mode, responsive design, and premium features
Version: 1.0.0
License: GPL v2 or later
Text Domain: shade
*/

/* ============================================
   TABLE OF CONTENTS
   1. CSS Variables (Light/Dark Mode)
   2. Reset & Base Styles
   3. Container & Layout
   4. Header Styles
   5. Mobile Navigation
   6. Search Modal
   7. Professional Footer
   8. Homepage Grid & Cards
   9. Single Post Styles
   10. Author Bio Box
   11. Comments Section
   12. Sidebar Styles
   13. Pagination
   14. Back to Top Button
   15. Responsive Design
   16. Animations & Utilities
   ============================================ */

/* ============================================
   1. CSS VARIABLES (LIGHT/DARK MODE)
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #ec4899;
    --secondary-dark: #db2777;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.98);
    --bg-footer: #0f172a;
    --bg-sidebar: #ffffff;
    
    --text-primary: #1e1b4b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.98);
    --bg-footer: #020617;
    --bg-sidebar: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border: #334155;
    --border-light: #1e293b;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   3. CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    min-height: 500px;
    padding: 40px 0;
}

/* ============================================
   4. HEADER STYLES
   ============================================ */

.site-header {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-branding {
    flex-shrink: 0;
}

.custom-logo {
    height: 45px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-toggle,
.theme-toggle,
.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-primary);
}

.header-search-toggle:hover,
.theme-toggle:hover,
.mobile-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

/* ============================================
   5. MOBILE NAVIGATION
   ============================================ */

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-card);
    z-index: 10000;
    transition: right 0.3s ease-in-out;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mobile-nav-panel.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-nav-content {
    padding: 20px;
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    display: block;
    padding: 8px 0;
}

.mobile-menu a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* ============================================
   6. SEARCH MODAL
   ============================================ */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.search-modal-content {
    width: 90%;
    max-width: 600px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 30px;
    position: relative;
    animation: fadeInScale 0.3s ease;
}

.search-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary);
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 16px;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary);
}

.search-submit {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.search-result-item a {
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.search-result-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info h4 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-info span {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ============================================
   7. PROFESSIONAL FOOTER
   ============================================ */

.site-footer {
    background: var(--bg-footer);
    color: var(--text-light);
    margin-top: 80px;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-widget p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-newsletter h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-newsletter p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    color: #94a3b8;
}

/* ============================================
   8. HOMEPAGE GRID & CARDS
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-2xl);
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
    color: white;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 20px;
    opacity: 0.95;
}

.trending-section,
.latest-section {
    margin: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.trending-badge,
.latest-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.trending-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

.latest-badge {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 4px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    gap: 15px;
    padding: 16px;
    position: relative;
}

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

.post-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.post-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
}

.post-topic {
    margin-bottom: 8px;
}

.post-topic a {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-title a {
    text-decoration: none;
    color: var(--text-primary);
}

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

.post-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-date {
    font-size: 11px;
    color: var(--text-muted);
}

.view-all-wrapper {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   9. SINGLE POST STYLES
   ============================================ */

.single-post-wrapper {
    padding: 40px 0;
}

.single-post-article {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.entry-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.entry-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.post-thumbnail {
    margin: 30px 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 28px;
    margin: 1.5em 0 0.5em;
}

.entry-content h3 {
    font-size: 24px;
    margin: 1.5em 0 0.5em;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--secondary);
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    font-style: italic;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.post-tags {
    margin-bottom: 20px;
}

.post-tags a {
    display: inline-block;
    background: var(--bg-body);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-secondary);
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.post-share span {
    font-weight: 600;
}

.post-share a {
    display: inline-block;
    padding: 6px 15px;
    background: var(--bg-body);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
}

.post-share a:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   10. AUTHOR BIO BOX
   ============================================ */

.author-bio {
    display: flex;
    gap: 25px;
    background: var(--bg-body);
    padding: 30px;
    border-radius: var(--radius-xl);
    margin: 40px 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.author-info a {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   11. COMMENTS SECTION
   ============================================ */

.comments-area {
    margin-top: 50px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

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

.comment {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-author .fn {
    font-weight: 700;
    margin-left: 10px;
}

.comment-metadata a {
    color: var(--text-secondary);
    font-size: 12px;
}

.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-body);
    border-radius: var(--radius-xl);
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
}

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

.form-submit .submit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   12. BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ============================================
   13. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header-container {
        height: 60px;
        padding: 0 20px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card {
        flex-direction: column;
        padding: 12px;
    }
    
    .post-image {
        width: 100%;
        height: 180px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .single-post-article {
        padding: 20px;
    }
    
    .entry-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .post-share {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 24px;
    }
    
    .search-modal-content {
        padding: 20px;
    }
    
    .search-form {
        flex-direction: column;
    }
}

/* ============================================
   14. ANIMATIONS & UTILITIES
   ============================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

::selection {
    background: var(--primary);
    color: white;
}
/* ============================================
   ADDITIONAL FIXES - Loading Spinner, Notifications, etc.
   ============================================ */

/* Search Loading Spinner */
.search-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search Error Message */
.search-error {
    text-align: center;
    padding: 40px;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
}

/* Search Min Characters Message */
.search-min-characters {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Search No Results */
.search-no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Reading Progress Bar Container */
.reading-progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: block !important;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
}

/* Back to Top Button Enhanced */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    display: block !important;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Current Menu Item Active State */
.current-menu-item a {
    color: var(--primary) !important;
    position: relative;
}

.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Mobile Menu Current Item */
.mobile-menu .current-menu-item a {
    color: var(--primary) !important;
    padding-left: 10px;
}

/* Image Loaded Animation */
img.loaded {
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Fixes for Mobile */
@media (max-width: 768px) {
    .reading-progress-container {
        top: 60px;
    }
    
    .copy-notification {
        bottom: 80px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .current-menu-item a::after {
        bottom: -5px;
    }
}
/* ============================================
   HEADER ADDITIONAL FIXES
   ============================================ */

/* Header Action Buttons - Better Touch Target */
.header-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 14px;
}

.action-label {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .action-label {
        display: none;
    }
    
    .header-action {
        padding: 8px;
    }
}

/* Search Modal Improved */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.search-modal-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: var(--bg-card);
    border-radius: 20px;
    z-index: 10001;
    animation: fadeInScale 0.3s ease;
}

.search-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
}

.search-modal-content {
    padding: 30px;
}

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

.search-form-group .search-field {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 16px;
}

.search-form-group .search-field:focus {
    outline: none;
    border-color: var(--primary);
}

.search-submit {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search Tips */
.search-tips {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.search-tips span {
    font-size: 13px;
    color: var(--text-secondary);
}

.search-tips a {
    padding: 5px 12px;
    background: var(--bg-body);
    border-radius: 30px;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.search-tips a:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Sidebar Improved */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-card);
    z-index: 10001;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-sidebar-logo span {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.mobile-sidebar-search {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-sidebar-search form {
    display: flex;
    gap: 10px;
}

.mobile-sidebar-search input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--bg-body);
    color: var(--text-primary);
}

.mobile-sidebar-search button {
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: white;
}

.mobile-sidebar-nav {
    padding: 20px;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    display: block;
    padding: 8px 0;
    transition: all 0.3s;
}

.mobile-nav-menu a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.mobile-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    width: 100%;
    padding: 10px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .site-header {
        padding: 8px 0;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .custom-logo {
        height: 35px;
    }
    
    .search-modal-content {
        padding: 20px;
    }
    
    .search-form-group {
        flex-direction: column;
    }
    
    .search-submit {
        justify-content: center;
    }
}

/* Desktop Navigation Hover Effect */
.nav-menu li {
    position: relative;
}

.nav-menu a {
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}
/* ============================================
   CATEGORIES BAR - PROFESSIONAL & CLEAN
   ============================================ */

.categories-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 99;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.categories-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 12px 0;
}

.categories-wrapper::-webkit-scrollbar {
    height: 3px;
}

.categories-wrapper::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.categories-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.categories-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    white-space: nowrap;
}

.categories-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.category-count {
    font-size: 10px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.category-link:hover .category-count {
    color: white;
}

/* ============================================
   PROFESSIONAL FOOTER - CLEAN & MODERN
   ============================================ */

.site-footer {
    background: var(--bg-footer);
    color: #e2e8f0;
    margin-top: 80px;
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Footer Top */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo .custom-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.footer-site-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-description {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* Footer Widgets Area */
.footer-widgets-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-widget-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Footer Middle - Newsletter */
.footer-middle {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 40px;
    border-radius: 20px;
}

.newsletter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    flex-shrink: 0;
}

.newsletter-icon svg {
    color: white;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.newsletter-content p {
    color: #94a3b8;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    min-width: 250px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-link svg {
    color: white;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    color: #64748b;
    font-size: 13px;
}

.footer-credit a {
    color: #64748b;
    text-decoration: none;
}

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

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-widgets-area {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

/* Categories Bar Responsive */
@media (max-width: 768px) {
    .categories-container {
        padding: 0 16px;
    }
    
    .categories-wrapper {
        gap: 12px;
    }
    
    .categories-label span {
        display: none;
    }
    
    .categories-label {
        padding: 6px 10px;
    }
    
    .category-link {
        padding: 5px 12px;
        font-size: 12px;
    }
}
/* ============================================
   CLEAN HEADER - Matching oliveloaded.com
   ============================================ */

/* Header Base */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

body.dark-mode .site-header {
    background: #1e1e2a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    text-decoration: none;
    color: #1e1b4b;
}

body.dark-mode .site-title {
    color: #ffffff;
}

.site-title:hover {
    color: #6366f1;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #1e1b4b;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

body.dark-mode .nav-menu a {
    color: #e2e8f0;
}

.nav-menu a:hover {
    color: #6366f1;
}

/* Search Button */
.header-search {
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1b4b;
}

body.dark-mode .search-toggle {
    color: #e2e8f0;
}

.search-toggle:hover {
    color: #6366f1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1e1b4b;
}

body.dark-mode .mobile-menu-toggle {
    color: #e2e8f0;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.search-modal-content {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

body.dark-mode .search-modal-content {
    background: #1e1e2a;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.search-modal-content form {
    display: flex;
    gap: 10px;
}

.search-modal-content input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

body.dark-mode .search-modal-content input {
    background: #2d2d3a;
    border-color: #3d3d4a;
    color: white;
}

.search-modal-content button {
    padding: 12px 24px;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .mobile-sidebar {
    background: #1e1e2a;
}

.mobile-sidebar.active {
    right: 0;
}

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

body.dark-mode .mobile-sidebar-header {
    border-bottom-color: #3d3d4a;
}

.mobile-site-title {
    font-size: 18px;
    font-weight: 700;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-sidebar-content {
    padding: 20px;
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: #1e1b4b;
    font-size: 16px;
}

body.dark-mode .mobile-menu a {
    color: #e2e8f0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .site-title {
        font-size: 18px;
    }
}
/* Header Styles */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.site-title {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: #1e1b4b;
}

/* Navigation */
.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #1e1b4b;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #6366f1;
}

/* Search */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    color: #1e1b4b;
}

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .site-title {
        font-size: 18px;
    }
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-sidebar.active {
    right: 0;
}

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

.mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-sidebar-content {
    padding: 20px;
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: #1e1b4b;
    font-size: 16px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

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

.search-modal-content {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.search-modal-content form {
    display: flex;
    gap: 10px;
}

.search-modal-content input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.search-modal-content button {
    padding: 12px 24px;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}
/* ============================================
   PROFESSIONAL SHARE BUTTONS STYLES
   ============================================ */

.post-share-section {
    margin: 30px 0 20px;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.share-header svg {
    color: var(--primary);
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.share-btn svg {
    flex-shrink: 0;
}

/* Share Button Colors */
.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.email {
    background: #ea4335;
    color: white;
}

.share-btn.copy-link {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Hover Effects */
.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.share-btn.copy-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Dark Mode Support */
body.dark-mode .share-btn.copy-link {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border);
}

body.dark-mode .share-btn.copy-link:hover {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .share-buttons-container {
        gap: 8px;
    }
    
    .share-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .share-btn span {
        display: inline;
    }
}

@media (max-width: 480px) {
    .share-buttons-container {
        gap: 6px;
    }
    
    .share-btn {
        padding: 8px 12px;
    }
    
    /* On very small screens, hide text, show only icons */
    .share-btn span {
        display: none;
    }
    
    .share-btn {
        padding: 10px;
    }
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* ============================================
   CLEAN HEADER - Matching oliveloaded.com
   NO dark mode toggle styles
   ============================================ */

/* Header Base */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    text-decoration: none;
    color: #1e1b4b;
}

.site-title:hover {
    color: #6366f1;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #1e1b4b;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #6366f1;
}

/* Search Button */
.header-search {
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1b4b;
}

.search-toggle:hover {
    color: #6366f1;
}

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.search-modal-content {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.search-modal-content form {
    display: flex;
    gap: 10px;
}

.search-modal-content input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.search-modal-content button {
    padding: 12px 24px;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    right: 0;
}

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

.mobile-site-title {
    font-size: 18px;
    font-weight: 700;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-sidebar-content {
    padding: 20px;
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: #1e1b4b;
    font-size: 16px;
}

.mobile-menu a:hover {
    color: #6366f1;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .search-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .search-modal-content form {
        flex-direction: column;
    }
}
/* ============================================
   CSS VARIABLES - LIGHT & DARK MODE
   ============================================ */

:root {
    /* Light Mode Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-footer: #0f172a;
    --text-primary: #1e1b4b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    /* Dark Mode Colors */
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: #1e293b;
    --bg-footer: #020617;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
    background: var(--bg-header);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.site-title:hover {
    color: var(--primary);
}

/* Desktop Navigation */
.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 14px;
}

.header-action:hover {
    background: rgba(99, 102, 241, 0.1);
}

.action-label {
    font-size: 13px;
    font-weight: 500;
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
}

/* ============================================
   SEARCH MODAL
   ============================================ */

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.search-modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: var(--bg-card);
    border-radius: 20px;
    z-index: 2001;
    animation: fadeInScale 0.3s ease;
}

.search-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
}

.search-modal-content {
    padding: 30px;
}

.search-form-group {
    display: flex;
    gap: 12px;
}

.search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 16px;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary);
}

.search-submit {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tips span {
    font-size: 13px;
    color: var(--text-secondary);
}

.search-tips a {
    padding: 5px 12px;
    background: var(--bg-body);
    border-radius: 30px;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

/* ============================================
   MOBILE SIDEBAR
   ============================================ */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-card);
    z-index: 2001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-sidebar-logo span {
    font-size: 18px;
    font-weight: 800;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.mobile-sidebar-search {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-sidebar-search form {
    display: flex;
    gap: 10px;
}

.mobile-sidebar-search input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--bg-body);
    color: var(--text-primary);
}

.mobile-sidebar-search button {
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: white;
}

.mobile-sidebar-nav {
    padding: 20px;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    display: block;
    padding: 8px 0;
}

.mobile-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    width: 100%;
    padding: 10px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .action-label {
        display: none;
    }
    
    .header-action {
        padding: 8px;
    }
    
    .header-container {
        padding: 0 16px;
        gap: 15px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .search-modal-content {
        padding: 20px;
    }
    
    .search-form-group {
        flex-direction: column;
    }
    
    .search-submit {
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .reading-progress-container {
        top: 60px;
    }
}
/* ============================================
   SEARCH PAGE STYLES
   ============================================ */

.search-page-wrapper {
    padding: 60px 0;
}

.search-header {
    text-align: center;
    margin-bottom: 50px;
}

.search-header-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-header-icon svg {
    color: var(--primary);
}

.search-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.search-query {
    margin-bottom: 30px;
    font-size: 18px;
}

.query-label {
    color: var(--text-secondary);
}

.query-term {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-left: 10px;
}

.search-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.search-form-wrapper .search-form {
    display: flex;
    gap: 10px;
}

.search-form-wrapper .search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
}

.search-form-wrapper .search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-form-wrapper .search-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-results-count {
    text-align: center;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.search-result-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-image-placeholder {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-content {
    flex: 1;
}

.result-category {
    margin-bottom: 8px;
}

.result-category a {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
}

.result-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-title a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.result-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.result-meta svg {
    margin-right: 4px;
    vertical-align: middle;
}

.result-date, .result-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Search Pagination */
.search-pagination {
    text-align: center;
    margin-top: 40px;
}

.search-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: var(--bg-card);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.search-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.search-pagination .page-numbers:hover:not(.current) {
    background: var(--primary);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 24px;
}

.no-results-icon {
    margin-bottom: 20px;
}

.no-results-icon svg {
    color: var(--text-muted);
}

.no-results h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.no-results > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.search-suggestions-box,
.popular-categories,
.recent-posts {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.search-suggestions-box h3,
.popular-categories h3,
.recent-posts h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.search-suggestions-box ul {
    list-style: none;
}

.search-suggestions-box li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-tag,
.category-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-body);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.category-tag:hover,
.category-link:hover {
    background: var(--primary);
    color: white;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.recent-post-link {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s;
}

.recent-post-link:hover {
    color: var(--primary);
}

/* ============================================
   404 ERROR PAGE STYLES
   ============================================ */

.error-404-wrapper {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-404-content {
    text-align: center;
    margin-bottom: 60px;
}

.error-404-number {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.error-404-number .digit {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bounce 0.5s ease;
}

.digit-1 { animation-delay: 0.1s; }
.digit-2 { animation-delay: 0.2s; }
.digit-3 { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.error-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.error-description {
    max-width: 500px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

.error-search {
    max-width: 500px;
    margin: 0 auto 25px;
}

.error-search .search-form {
    display: flex;
    gap: 10px;
}

.error-search .search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.error-search .search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.error-search .search-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s;
}

.home-button:hover {
    transform: translateY(-2px);
    color: white;
}

.error-popular-posts,
.error-categories {
    margin-top: 50px;
    text-align: center;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

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

.popular-post-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
}

.popular-post-card:hover {
    transform: translateY(-4px);
}

.popular-post-card .post-image {
    height: 160px;
    overflow: hidden;
}

.popular-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-card .post-info {
    padding: 15px;
}

.popular-post-card .post-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.popular-post-card .post-title a {
    text-decoration: none;
    color: var(--text-primary);
}

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

.popular-post-card .post-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-result-card {
        flex-direction: column;
        text-align: center;
    }
    
    .result-image,
    .result-image-placeholder {
        width: 100%;
        height: 150px;
    }
    
    .error-404-number .digit {
        font-size: 70px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .popular-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form-wrapper .search-form,
    .error-search .search-form {
        flex-direction: column;
    }
    
    .search-form-wrapper .search-button,
    .error-search .search-button {
        justify-content: center;
    }
}
/* ============================================
   SEARCH TEMPLATE STYLES
   Professional layout matching oliveloaded.com
   ============================================ */

.search-template-wrapper {
    padding: 60px 0;
    min-height: 60vh;
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 50px;
}

.search-header-icon {
    margin-bottom: 20px;
}

.search-header-icon svg {
    color: var(--primary);
    width: 50px;
    height: 50px;
}

.search-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.search-query-badge {
    margin-bottom: 30px;
}

.query-label {
    color: var(--text-secondary);
    font-size: 16px;
}

.query-term {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    display: inline-block;
    margin-left: 10px;
    font-weight: 500;
}

/* Search Form */
.search-form-container {
    max-width: 550px;
    margin: 0 auto;
}

.search-form-container .search-form {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border-radius: 60px;
    padding: 5px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.search-form-container .search-input {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
}

.search-form-container .search-input:focus {
    outline: none;
}

.search-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-submit-btn:hover {
    transform: scale(1.02);
}

/* Results Count */
.results-count {
    text-align: center;
    margin-bottom: 40px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 50px;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
}

.result-category {
    margin-bottom: 8px;
}

.result-category a {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.result-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.result-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Pagination */
.search-pagination {
    text-align: center;
    margin-top: 40px;
}

.search-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: var(--bg-card);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.search-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.search-pagination .page-numbers:hover:not(.current) {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

/* ============================================
   NO RESULTS FOUND STYLES
   Matching oliveloaded.com
   ============================================ */

.no-results-found {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding: 50px 30px;
    background: var(--bg-card);
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.no-results-icon {
    margin-bottom: 25px;
}

.no-results-icon svg {
    color: var(--text-muted);
    width: 80px;
    height: 80px;
}

.no-results-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.no-results-message {
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 16px;
}

/* Suggestions Box */
.suggestions-box {
    background: var(--bg-body);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.suggestions-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.suggestions-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.suggestions-list li {
    background: var(--bg-card);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Popular Categories */
.popular-categories-box {
    margin-bottom: 30px;
}

.categories-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-body);
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.category-link:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Recent Posts */
.recent-posts-box {
    margin-bottom: 20px;
}

.recent-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.recent-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    transition: color 0.2s;
    padding: 5px 0;
}

.recent-link:hover {
    color: var(--primary);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .search-template-wrapper {
        padding: 40px 0;
    }
    
    .search-title {
        font-size: 28px;
    }
    
    .query-term {
        display: block;
        margin: 10px auto 0;
        width: fit-content;
    }
    
    .search-form-container .search-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 12px;
    }
    
    .search-form-container .search-input {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 60px;
    }
    
    .search-submit-btn {
        justify-content: center;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-result-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .result-image {
        width: 100%;
        height: 180px;
        margin-bottom: 10px;
    }
    
    .no-results-found {
        padding: 40px 20px;
    }
    
    .no-results-title {
        font-size: 24px;
    }
    
    .suggestions-list {
        justify-content: center;
    }
}
/* ============================================
   MOBILE LIST VIEW STYLES
   Image LEFT | Content RIGHT for Trending & Latest
   ============================================ */

/* Hide mobile lists on desktop */
.mobile-trending-list,
.mobile-latest-list {
    display: none;
}

/* Mobile List Item Styles */
.mobile-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.mobile-list-item:hover {
    background: var(--bg-body);
    padding-left: 5px;
}

/* Left Side - Image */
.mobile-list-image {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mobile-list-item:hover .mobile-list-image img {
    transform: scale(1.05);
}

.mobile-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-image-placeholder svg {
    width: 40px;
    height: 40px;
    color: #94a3b8;
}

/* Right Side - Content */
.mobile-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-list-topic {
    margin-bottom: 2px;
}

.mobile-topic-label {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-list-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.mobile-list-title a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.mobile-list-title a:hover {
    color: var(--primary);
}

.mobile-list-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.mobile-meta-date,
.mobile-meta-comments,
.mobile-meta-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   RESPONSIVE: Show mobile list, hide desktop grid on mobile
   ============================================ */

@media (max-width: 768px) {
    /* Hide desktop grids on mobile */
    .desktop-trending-grid,
    .desktop-latest-grid {
        display: none;
    }
    
    /* Show mobile lists */
    .mobile-trending-list,
    .mobile-latest-list {
        display: block;
    }
    
    /* Trending section adjustment on mobile */
    .trending-section .section-header,
    .latest-section .section-header {
        margin-bottom: 20px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .mobile-list-image {
        width: 70px;
        height: 70px;
    }
    
    .mobile-list-title {
        font-size: 14px;
    }
    
    .mobile-list-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .mobile-topic-label {
        font-size: 9px;
        padding: 2px 8px;
    }
}

/* Dark mode support */
body.dark-mode .mobile-image-placeholder {
    background: linear-gradient(135deg, #334155, #1e293b);
}

body.dark-mode .mobile-image-placeholder svg {
    color: #64748b;
}
/* ============================================
   PROFESSIONAL MOBILE CARD STYLE
   Optimized Image Size - Clean & Professional
   ============================================ */

/* Hide mobile lists on desktop */
.mobile-trending-list,
.mobile-latest-list {
    display: none;
}

/* Mobile Card Container */
.mobile-trending-list,
.mobile-latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Card Item - Modern Card Style */
.mobile-card-item {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.mobile-card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* ============================================
   LEFT SIDE - PROFESSIONAL SMALL IMAGE
   ============================================ */

.mobile-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-body);
    position: relative;
}

.mobile-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.mobile-card-item:hover .mobile-card-image img {
    transform: scale(1.05);
}

/* Subtle Image Overlay */
.mobile-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.mobile-card-item:hover .mobile-card-image::after {
    background: rgba(0, 0, 0, 0.05);
}

/* Image Placeholder */
.mobile-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-image-placeholder svg {
    width: 32px;
    height: 32px;
    color: #94a3b8;
}

/* ============================================
   RIGHT SIDE - CONTENT AREA
   ============================================ */

.mobile-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

/* Topic Badge - Smaller */
.mobile-card-topic {
    margin-bottom: 0;
}

.mobile-topic-label {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mobile-card-item:hover .mobile-topic-label {
    transform: translateX(2px);
}

/* Post Title - Compact */
.mobile-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.mobile-card-title a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s ease;
    display: inline-block;
}

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

/* Post Excerpt - Clean */
.mobile-card-excerpt {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Information - Clean */
.mobile-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.mobile-meta-date,
.mobile-meta-views,
.mobile-meta-read,
.mobile-meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s ease;
}

.mobile-card-item:hover .mobile-meta-date,
.mobile-card-item:hover .mobile-meta-views,
.mobile-card-item:hover .mobile-meta-read,
.mobile-card-item:hover .mobile-meta-comments {
    color: var(--primary);
}

/* Separator between meta items */
.mobile-meta-date::after {
    content: "•";
    margin-left: 6px;
    color: var(--border);
}

.mobile-meta-views::after {
    content: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet and below - Show mobile cards, hide desktop grid */
@media (max-width: 768px) {
    .desktop-trending-grid,
    .desktop-latest-grid {
        display: none;
    }
    
    .mobile-trending-list,
    .mobile-latest-list {
        display: flex;
    }
}

/* Medium Phones (481px - 768px) - Slightly larger */
@media (max-width: 768px) and (min-width: 481px) {
    .mobile-card-image {
        width: 90px;
        height: 90px;
    }
    
    .mobile-card-title {
        font-size: 16px;
    }
    
    .mobile-card-excerpt {
        font-size: 13px;
    }
}

/* Small Phones (381px - 480px) - Optimal size */
@media (max-width: 480px) {
    .mobile-card-item {
        gap: 12px;
        padding: 12px;
    }
    
    .mobile-card-image {
        width: 70px;
        height: 70px;
        border-radius: 10px;
    }
    
    .mobile-card-title {
        font-size: 14px;
    }
    
    .mobile-card-excerpt {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .mobile-topic-label {
        padding: 2px 8px;
        font-size: 8px;
    }
    
    .mobile-card-meta {
        gap: 8px;
        font-size: 9px;
    }
    
    .mobile-meta-date::after {
        margin-left: 5px;
    }
}

/* Extra Small Phones (up to 380px) - Compact */
@media (max-width: 380px) {
    .mobile-card-item {
        gap: 10px;
        padding: 10px;
    }
    
    .mobile-card-image {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }
    
    .mobile-card-title {
        font-size: 13px;
    }
    
    /* Hide excerpt on very small screens */
    .mobile-card-excerpt {
        display: none;
    }
    
    .mobile-card-meta {
        gap: 6px;
        margin-top: 0;
    }
    
    .mobile-topic-label {
        padding: 2px 6px;
        font-size: 7px;
    }
    
    .mobile-image-placeholder svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

body.dark-mode .mobile-card-item {
    background: var(--bg-card);
    border-color: var(--border);
}

body.dark-mode .mobile-card-item:hover {
    border-color: var(--primary);
}

body.dark-mode .mobile-image-placeholder {
    background: linear-gradient(135deg, #334155, #1e293b);
}

body.dark-mode .mobile-image-placeholder svg {
    color: #64748b;
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-card-item {
    animation: cardFadeIn 0.35s ease forwards;
    opacity: 0;
}

.mobile-card-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-card-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-card-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-card-item:nth-child(4) { animation-delay: 0.2s; }
.mobile-card-item:nth-child(5) { animation-delay: 0.25s; }
.mobile-card-item:nth-child(6) { animation-delay: 0.3s; }
.mobile-card-item:nth-child(7) { animation-delay: 0.35s; }
.mobile-card-item:nth-child(8) { animation-delay: 0.4s; }
/* ============================================
   PROFESSIONAL FOOTER - MOBILE ONLY
   Newsletter & Copyright - Hidden on Desktop
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #e2e8f0;
    margin-top: 60px;
    padding: 40px 0 30px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   MOBILE ONLY - NEWSLETTER SECTION
   Hidden on desktop, visible on mobile
   ============================================ */

.footer-newsletter-mobile {
    display: none;
    margin-bottom: 30px;
}

.newsletter-mobile-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 24px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.newsletter-mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.newsletter-mobile-icon svg {
    color: white;
    width: 28px;
    height: 28px;
}

.newsletter-mobile-content h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-mobile-content p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.newsletter-mobile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-mobile-form input {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.newsletter-mobile-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-mobile-form input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-mobile-form button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-mobile-form button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ============================================
   MOBILE ONLY - COPYRIGHT SECTION
   Hidden on desktop, visible on mobile
   ============================================ */

.footer-copyright-mobile {
    display: none;
    text-align: center;
    padding-top: 20px;
}

.footer-copyright-mobile p {
    color: #64748b;
    font-size: 12px;
    margin: 5px 0;
}

.footer-credit-mobile a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-credit-mobile a:hover {
    color: #6366f1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop - Hide mobile sections */
@media (min-width: 769px) {
    .footer-newsletter-mobile,
    .footer-copyright-mobile {
        display: none !important;
    }
}

/* Mobile (768px and below) - Show mobile sections */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 25px;
        margin-top: 40px;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-newsletter-mobile,
    .footer-copyright-mobile {
        display: block;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .site-footer {
        padding: 25px 0 20px;
    }
    
    .footer-container {
        padding: 0 14px;
    }
    
    .newsletter-mobile-wrapper {
        padding: 25px 18px;
    }
    
    .newsletter-mobile-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .newsletter-mobile-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .newsletter-mobile-content h3 {
        font-size: 18px;
    }
    
    .newsletter-mobile-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .newsletter-mobile-form input,
    .newsletter-mobile-form button {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .footer-copyright-mobile p {
        font-size: 11px;
    }
}

/* Extra Small Mobile (380px and below) */
@media (max-width: 380px) {
    .newsletter-mobile-wrapper {
        padding: 20px 15px;
    }
    
    .newsletter-mobile-content h3 {
        font-size: 16px;
    }
    
    .newsletter-mobile-content p {
        font-size: 12px;
    }
    
    .newsletter-mobile-form input,
    .newsletter-mobile-form button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

body.dark-mode .site-footer {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

body.dark-mode .newsletter-mobile-wrapper {
    background: rgba(255, 255, 255, 0.03);
}
/* ============================================
   SINGLE POST - INLINE META (NEVER STACKS)
   Stays inline on ALL devices - Desktop & Mobile
   ============================================ */

/* Entry Header */
.single-post-article .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.entry-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Inline Meta Container - NEVER STACKS */
.entry-meta-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 50px;
}

/* Meta Items */
.meta-date,
.meta-author,
.meta-readtime,
.meta-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.meta-separator {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0 2px;
}

.meta-date svg,
.meta-author svg,
.meta-readtime svg,
.meta-views svg {
    color: var(--primary);
    width: 13px;
    height: 13px;
}

/* ============================================
   RESPONSIVE - STAYS INLINE ON ALL DEVICES
   ============================================ */

/* Tablet and Mobile - Keep inline, just smaller */
@media (max-width: 768px) {
    .entry-meta-inline {
        padding: 8px 16px;
        gap: 4px;
        border-radius: 40px;
    }
    
    .meta-date,
    .meta-author,
    .meta-readtime,
    .meta-views {
        font-size: 11px;
        gap: 3px;
    }
    
    .meta-date svg,
    .meta-author svg,
    .meta-readtime svg,
    .meta-views svg {
        width: 11px;
        height: 11px;
    }
    
    .meta-separator {
        font-size: 10px;
    }
    
    .entry-title {
        font-size: 28px;
    }
}

/* Small Mobile (up to 480px) - Still inline, just more compact */
@media (max-width: 480px) {
    .entry-meta-inline {
        padding: 6px 12px;
        gap: 3px;
        border-radius: 30px;
    }
    
    .meta-date,
    .meta-author,
    .meta-readtime,
    .meta-views {
        font-size: 9px;
        gap: 2px;
    }
    
    .meta-date svg,
    .meta-author svg,
    .meta-readtime svg,
    .meta-views svg {
        width: 9px;
        height: 9px;
    }
    
    .meta-separator {
        font-size: 8px;
        margin: 0 1px;
    }
}

/* Extra Small Mobile (up to 380px) - Still inline! */
@media (max-width: 380px) {
    .entry-meta-inline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    /* Keep everything on one line by reducing gap */
    .meta-date,
    .meta-author,
    .meta-readtime,
    .meta-views {
        font-size: 8px;
    }
    
    .meta-date svg,
    .meta-author svg,
    .meta-readtime svg,
    .meta-views svg {
        width: 8px;
        height: 8px;
    }
}

/* Dark Mode */
body.dark-mode .meta-date,
body.dark-mode .meta-author,
body.dark-mode .meta-readtime,
body.dark-mode .meta-views {
    color: var(--text-secondary);
}

body.dark-mode .entry-meta-inline {
    background: var(--bg-card);
}