/* ================================================
   JEDI-1 BLOG STYLES - CORPORATE LITERARY EDITION
   
   PURPOSE:
   - Corporate literary aesthetic for blog functionality
   - Magazine-style layouts with academic paper typography
   - Responsive design with mobile-first approach
   - Reading enhancement features (progress bars, TOC)
   
   ARCHITECTURE:
   1. CSS Custom Properties (CSS Variables) for theming
   2. Component-based styling (BEM-like methodology)
   3. Responsive design with defined breakpoints
   4. Animation and interaction states
   
   PLUGIN CUSTOMIZATION POINTS:
   - CSS Custom Properties: Easy color/font theming
   - Component classes: Modular styling system
   - Responsive breakpoints: Configurable screen sizes
   - Animation timing: Adjustable transition speeds
   
   BROWSER SUPPORT:
   - Modern browsers with CSS Grid and Flexbox
   - CSS Custom Properties (IE11+ or fallbacks needed)
   - Backdrop-filter for glass-morphism effects
   ================================================ */

/* ================================================
   CSS CUSTOM PROPERTIES (THEMING SYSTEM)
   Plugin Integration: Override these variables for custom themes
   ================================================ */
:root {
    /* Typography System - Plugin Customizable */
    --blog-primary-font: 'Playfair Display', serif;    /* Headings, literary style */
    --blog-body-font: 'Inter', sans-serif;             /* Body text, readability */
    
    /* Color Palette - Corporate Literary Theme */
    --blog-accent-color: #6d28d9;      /* Primary brand color */
    --blog-secondary-color: #9b87f5;   /* Secondary interactions */
    --blog-background: #0c0627;        /* Cosmic background */
    --blog-surface: #1a1332;           /* Card backgrounds */
    
    /* Text Colors - Hierarchy */
    --blog-text-primary: #f8f9fa;      /* Main headings, titles */
    --blog-text-secondary: #d7c5ff;    /* Body text, descriptions */
    --blog-text-muted: #a78bfa;        /* Meta information, captions */
    
    /* Interface Elements */
    --blog-border: rgba(155, 135, 245, 0.2);  /* Subtle borders */
    --blog-gold: #d4af37;                     /* Academic highlights */
    --blog-paper: #fff3cd;                    /* Parchment highlights */
    --blog-paper-dark: #2c1810;               /* Quote backgrounds */
}

/* ================================================
   BLOG MAIN PAGE STYLES
   Layout and components for main blog landing page (blog.php)
   ================================================ */

.blog-main {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--blog-background) 0%, #2b1356 100%);
    padding-top: 2rem;
}

/* Blog Header - Literary Portal */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.blog-hero {
    margin-bottom: 3rem;
}

.blog-title {
    font-family: var(--blog-primary-font);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--blog-text-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--blog-secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-family: var(--blog-body-font);
    font-size: 1.125rem;
    color: var(--blog-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-style: italic;
}

/* Blog Announcement - Optional Notice */
.blog-announcement {
    margin: 2rem 0;
    padding: 0 1rem;
}

.announcement-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(var(--color-card-bg-rgb, 19, 27, 47), 0.6);
    border: 1px solid rgba(var(--color-mind-purple-rgb, 109, 40, 217), 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.announcement-icon {
    flex-shrink: 0;
    color: var(--color-mind-purple-light, #9b87f5);
    margin-top: 0.125rem;
}

.announcement-text {
    font-family: var(--blog-body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--blog-text-primary);
    margin: 0;
}

@media (max-width: 768px) {
    .announcement-content {
        padding: 1.25rem 1.5rem;
        gap: 0.75rem;
    }
    
    .announcement-text {
        font-size: 0.95rem;
    }
}

/* Blog Navigation - Professional */
.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 19, 50, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    padding: 1rem 2rem;
    margin: 0 auto;
    max-width: 1000px;
}

.blog-nav-links {
    display: flex;
    gap: 2rem;
}

.blog-nav .nav-link {
    font-family: var(--blog-body-font);
    font-weight: 500;
    color: var(--blog-text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.blog-nav .nav-link:hover,
.blog-nav .nav-link.active {
    color: var(--blog-text-primary);
    background: rgba(109, 40, 217, 0.2);
}

/* Category Count Styling */
.category-count {
    font-size: 0.875rem;
    color: var(--blog-text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
    opacity: 0.8;
}

.blog-nav .nav-link:hover .category-count {
    color: var(--blog-secondary-color);
    opacity: 1;
}

.blog-search {
    display: flex;
    align-items: center;
    background: rgba(248, 249, 250, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--blog-text-primary);
    font-family: var(--blog-body-font);
    font-size: 0.875rem;
    padding: 0.5rem;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: var(--blog-text-muted);
}

.search-btn {
    background: var(--blog-accent-color);
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--blog-secondary-color);
}

/* Featured Article - Hero Style */
.featured-article {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--blog-primary-font);
    font-size: 2rem;
    color: var(--blog-text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.featured-card {
    background: linear-gradient(135deg, rgba(26, 19, 50, 0.9) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(109, 40, 217, 0.3);
}

.featured-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 6, 39, 0.8) 0%, transparent 60%);
}

.featured-content {
    padding: 2.5rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-category {
    background: var(--blog-accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-date {
    color: var(--blog-text-muted);
    font-size: 0.875rem;
}

.featured-title {
    font-family: var(--blog-primary-font);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-title a {
    color: var(--blog-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--blog-secondary-color);
}

.featured-excerpt {
    color: var(--blog-text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-text-muted);
    font-size: 0.875rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blog-accent-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--blog-secondary-color);
    transform: translateX(5px);
}

/* Articles Grid - Magazine Layout */
.articles-grid {
    margin-bottom: 4rem;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.grid-filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--blog-border);
    color: var(--blog-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--blog-body-font);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--blog-accent-color);
    color: white;
    border-color: var(--blog-accent-color);
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Cards - Literary Style */
.article-card {
    background: rgba(26, 19, 50, 0.6);
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.2);
    border-color: var(--blog-secondary-color);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 6, 39, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image:hover .card-overlay {
    opacity: 1;
}

.card-link {
    background: var(--blog-accent-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.card-overlay:hover .card-link {
    transform: translateY(0);
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-category {
    background: rgba(109, 40, 217, 0.2);
    color: var(--blog-secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-date {
    color: var(--blog-text-muted);
    font-size: 0.75rem;
}

.card-title {
    font-family: var(--blog-primary-font);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--blog-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--blog-secondary-color);
}

.card-excerpt {
    color: var(--blog-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.reading-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reading-time {
    color: var(--blog-text-muted);
    font-size: 0.75rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: rgba(155, 135, 245, 0.2);
    color: var(--blog-secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 500;
}

.card-read-more {
    color: var(--blog-accent-color);
    transition: color 0.3s ease;
}

.card-read-more:hover {
    color: var(--blog-secondary-color);
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-articles-icon {
    color: var(--blog-text-muted);
    margin-bottom: 1rem;
}

.no-articles h3 {
    font-family: var(--blog-primary-font);
    color: var(--blog-text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-articles p {
    color: var(--blog-text-secondary);
    font-style: italic;
}

/* Newsletter Section - Corporate Lead Generation */
.newsletter-section {
    margin: 4rem 0;
}

.newsletter-card {
    background: linear-gradient(135deg, rgba(26, 19, 50, 0.9) 0%, rgba(109, 40, 217, 0.1) 100%);
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--blog-primary-font);
    font-size: 2rem;
    color: var(--blog-text-primary);
    margin-bottom: 1rem;
}

.newsletter-description {
    color: var(--blog-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    background: rgba(248, 249, 250, 0.1);
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--blog-text-primary);
    font-family: var(--blog-body-font);
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--blog-accent-color);
}

.newsletter-input::placeholder {
    color: var(--blog-text-muted);
}

.newsletter-btn {
    background: var(--blog-accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--blog-secondary-color);
}

/* ================================================
   ARTICLE PAGE STYLES
   Individual article layout (page.php) with reading features
   
   COMPONENTS:
   - Article header with breadcrumbs and metadata
   - Reading progress bar (fixed position)
   - Table of contents (auto-generated, sticky)
   - Article body with enhanced typography
   - Social sharing and related articles sidebar
   
   PLUGIN CUSTOMIZATION:
   - Layout options: Full-width, sidebar, centered
   - Reading features: Progress bar, TOC, reading time
   - Typography: Line height, font sizes, spacing
   - Social platforms: Customizable sharing options
   ================================================ */

.article-content {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--blog-background) 0%, #2b1356 100%);
    padding-top: 2rem;
}

/* Article Header - Literary Style */
.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--blog-secondary-color);
}

.breadcrumb-separator {
    color: var(--blog-text-muted);
}

.breadcrumb-current {
    color: var(--blog-text-secondary);
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.article-category {
    background: var(--blog-accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-text-muted);
    font-size: 0.875rem;
}

.article-title {
    font-family: var(--blog-primary-font);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--blog-text-primary);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.article-summary {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--blog-gold);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.summary-title {
    font-family: var(--blog-primary-font);
    font-size: 1.25rem;
    color: var(--blog-gold);
    margin-bottom: 1rem;
}

.article-description {
    color: var(--blog-text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--blog-border);
    border-bottom: 1px solid var(--blog-border);
    margin-bottom: 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(109, 40, 217, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-secondary-color);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--blog-text-primary);
    font-size: 1rem;
}

.author-title {
    color: var(--blog-text-muted);
    font-size: 0.875rem;
}

.article-publication {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.publication-date {
    color: var(--blog-text-muted);
    font-size: 0.875rem;
}

.share-btn {
    background: rgba(155, 135, 245, 0.2);
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--blog-secondary-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: rgba(155, 135, 245, 0.3);
}

/* Article Hero Image */
.article-hero {
    position: relative;
    height: 400px;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 6, 39, 0.5) 0%, transparent 50%);
}

/* Article Body - Literary Layout */
.article-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 0 2rem;
}

.article-main {
    position: relative;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(155, 135, 245, 0.2);
    z-index: 1000;
}

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

/* Table of Contents */
.table-of-contents {
    background: rgba(26, 19, 50, 0.6);
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 2rem;
    align-self: start;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0.25rem;
    margin: -0.25rem;
}

.toc-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toc-title {
    font-family: var(--blog-primary-font);
    font-size: 1.125rem;
    color: var(--blog-text-primary);
    margin: 0;
}

.toc-chevron {
    color: var(--blog-text-secondary);
    transition: transform 0.3s ease;
}

.table-of-contents.collapsed .toc-chevron {
    transform: rotate(-90deg);
}

.toc-nav {
    margin-top: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.table-of-contents.collapsed .toc-nav {
    height: 0;
    margin-top: 0;
    opacity: 0;
}

.toc-nav a {
    display: block;
    color: var(--blog-text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--blog-border);
    transition: color 0.3s ease;
}

.toc-nav a:last-child {
    border-bottom: none;
}

.toc-nav a:hover {
    color: var(--blog-secondary-color);
}

/* Article Body Content */
.article-body {
    color: var(--blog-text-secondary);
    font-family: var(--blog-body-font);
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-family: var(--blog-primary-font);
    color: var(--blog-text-primary);
    margin: 2rem 0 1rem;
}

.article-body h1 { font-size: 2.5rem; }
.article-body h2 { font-size: 2rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    background: var(--blog-paper-dark);
    border-left: 4px solid var(--blog-gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-family: var(--blog-primary-font);
    font-style: italic;
    color: var(--blog-paper);
}

.article-body code {
    background: rgba(26, 19, 50, 0.8);
    color: var(--blog-secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
}

.article-body pre {
    background: #1a1a1a;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #9b87f5;
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
}

.article-tags {
    margin-bottom: 2rem;
}

.tags-title {
    font-family: var(--blog-primary-font);
    font-size: 1.125rem;
    color: var(--blog-text-primary);
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-corporate {
    background: rgba(155, 135, 245, 0.2);
    color: var(--blog-secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.tag-corporate:hover {
    background: rgba(155, 135, 245, 0.3);
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    color: var(--blog-text-muted);
    font-size: 0.875rem;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--blog-text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    color: #1da1f2;
}

.share-linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    color: #0077b5;
}

.share-email:hover {
    background: rgba(155, 135, 245, 0.2);
    color: var(--blog-secondary-color);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--blog-border);
    color: var(--blog-text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--blog-accent-color);
    color: white;
    border-color: var(--blog-accent-color);
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-section {
    background: rgba(26, 19, 50, 0.6);
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    font-family: var(--blog-primary-font);
    font-size: 1.125rem;
    color: var(--blog-text-primary);
    margin-bottom: 1rem;
}

/* Related Articles */
.related-article {
    padding: 1rem 0;
    border-bottom: 1px solid var(--blog-border);
}

.related-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.related-title a {
    color: var(--blog-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: var(--blog-secondary-color);
}

.related-excerpt {
    color: var(--blog-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.625rem;
    color: var(--blog-text-muted);
}

.no-related {
    color: var(--blog-text-muted);
    font-style: italic;
    font-size: 0.875rem;
}

/* Sidebar Newsletter */
.sidebar-newsletter {
    text-align: center;
}

.newsletter-text {
    color: var(--blog-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-newsletter-input {
    background: rgba(248, 249, 250, 0.1);
    border: 1px solid var(--blog-border);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--blog-text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.sidebar-newsletter-input:focus {
    border-color: var(--blog-accent-color);
}

.sidebar-newsletter-input::placeholder {
    color: var(--blog-text-muted);
}

.sidebar-newsletter-btn {
    background: var(--blog-accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sidebar-newsletter-btn:hover {
    background: var(--blog-secondary-color);
}

/* ================================================
   HOMEPAGE INTEGRATION STYLES
   ================================================ */

/* Service Card Blog Enhancement */
.service-card-blog {
    background: linear-gradient(135deg, rgba(26, 19, 50, 0.9) 0%, rgba(109, 40, 217, 0.1) 100%);
    border: 1px solid rgba(155, 135, 245, 0.3);
}

.blog-preview {
    margin-top: 1rem;
}

.latest-articles-mini {
    margin-bottom: 1rem;
}

.mini-article {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(155, 135, 245, 0.2);
}

.mini-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-article-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.mini-article-title a {
    color: var(--blog-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mini-article-title a:hover {
    color: var(--blog-secondary-color);
}

.mini-article-date {
    color: var(--blog-text-muted);
    font-size: 0.75rem;
}

.no-articles-mini {
    color: var(--blog-text-muted);
    font-style: italic;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blog-accent-color);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-cta-btn:hover {
    background: var(--blog-secondary-color);
    transform: translateX(3px);
}

/* ================================================
   RESPONSIVE DESIGN
   Mobile-first approach with defined breakpoints
   
   BREAKPOINT STRATEGY:
   - Mobile: < 480px (base styles)
   - Tablet: 480px - 768px
   - Desktop: 768px - 1024px
   - Large: > 1024px
   
   PLUGIN CUSTOMIZATION:
   - Breakpoint values: Configurable screen sizes
   - Layout behavior: Grid columns, sidebar stacking
   - Typography scaling: Responsive font sizes
   - Component visibility: Show/hide based on screen size
   
   RESPONSIVE FEATURES:
   - Grid layouts collapse to single column
   - Navigation becomes hamburger menu
   - Reading features adapt to mobile
   - Form layouts stack vertically
   ================================================ */

@media (max-width: 1024px) {
    .article-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        order: 1;
    }
    
    .table-of-contents {
        position: static;
    }
    
    /* Reduce sidebar spacing on tablets */
    .sidebar-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .blog-nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
    
    .grid-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .grid-filters {
        flex-wrap: wrap;
    }
    
    /* Mobile sidebar optimizations */
    .sidebar-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-title {
        font-size: 1rem;
    }
    
    /* TOC mobile improvements */
    .table-of-contents {
        margin-bottom: 1rem;
    }
    
    .toc-header {
        padding: 0.5rem;
        margin: -0.5rem;
        /* Larger touch target for mobile */
        min-height: 44px;
        align-items: center;
    }
    
    .toc-title {
        font-size: 1rem;
    }
    
    .toc-chevron {
        width: 20px;
        height: 20px;
    }
    
    /* Start TOC collapsed on mobile for better UX */
    .table-of-contents {
        /* Will be handled by JavaScript for mobile detection */
    }
    
    /* Related articles mobile optimization */
    .related-article {
        padding: 0.75rem 0;
    }
    
    .related-title {
        font-size: 0.875rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-wrapper {
        padding: 0 1rem;
    }
    
    .newsletter-card {
        padding: 2rem 1rem;
    }
    
    .blog-nav-links {
        gap: 0.5rem;
    }
    
    .blog-nav .nav-link {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}