.c100-ai-blog-posts {
    margin: 20px 0;
}

/* Grid Layout */
.c100-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.c100-blog-grid .c100-blog-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c100-blog-grid .c100-blog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* List Layout */
.c100-blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c100-blog-list .c100-blog-item {
    display: flex;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.c100-blog-list .c100-blog-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.c100-blog-list .c100-blog-image {
    flex: 0 0 200px;
}

.c100-blog-list .c100-blog-content {
    flex: 1;
    padding: 20px;
}

/* Blog Item Components */
.c100-blog-image {
    position: relative;
    overflow: hidden;
}

.c100-blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.c100-blog-image:hover img {
    transform: scale(1.05);
}

.c100-blog-content {
    padding: 20px;
}

.c100-blog-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.c100-blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.c100-blog-title a:hover {
    color: #0073aa;
}

.c100-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.c100-blog-meta span {
    display: flex;
    align-items: center;
}

.c100-blog-ai-badge {
    background: #0073aa;
    color: white !important;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.c100-blog-excerpt {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.c100-blog-actions {
    margin-top: auto;
}

.c100-read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.c100-read-more:hover {
    background: #005a87;
    color: white;
}

/* ===== ENHANCED SINGLE POST STYLES ===== */

/* Single Post Container */
.c100-ai-blog-single {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
}

/* Hero Section */
.c100-single-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.c100-single-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.c100-single-hero > * {
    position: relative;
    z-index: 2;
}

.c100-single-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.c100-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c100-single-title {
    margin: 0 0 20px 0;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.c100-single-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.c100-single-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.c100-single-meta i {
    font-size: 16px;
}

.c100-single-ai-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffa500) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: none !important;
}

/* Content Section */
.c100-single-content {
    padding: 60px 40px;
}

.c100-single-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.c100-single-body p {
    margin-bottom: 25px;
}

.c100-single-body h1,
.c100-single-body h2,
.c100-single-body h3,
.c100-single-body h4,
.c100-single-body h5,
.c100-single-body h6 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.c100-single-body h2 {
    font-size: 2.2rem;
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin-left: -24px;
}

.c100-single-body h3 {
    font-size: 1.8rem;
    color: #667eea;
}

.c100-single-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.c100-single-body blockquote {
    background: #f8f9fa;
    border-left: 5px solid #667eea;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 1.1em;
    color: #555;
    position: relative;
}

.c100-single-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: 15px;
    line-height: 1;
    opacity: 0.3;
}

.c100-single-body ul,
.c100-single-body ol {
    margin: 25px 0;
    padding-left: 30px;
}

.c100-single-body li {
    margin-bottom: 10px;
}

.c100-single-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.c100-single-body a:hover {
    color: #5a67d8;
    border-bottom-color: #5a67d8;
}

/* Reading Progress Bar */
.c100-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Social Share Section */
.c100-single-share {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.c100-single-share h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.c100-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.c100-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.c100-share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.c100-share-btn:hover::before {
    left: 100%;
}

.c100-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.c100-share-btn.facebook { background: #1877f2; color: white; }
.c100-share-btn.twitter { background: #1da1f2; color: white; }
.c100-share-btn.linkedin { background: #0077b5; color: white; }
.c100-share-btn.copy { background: #6c757d; color: white; }

/* Table of Contents */
.c100-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    max-width: 300px;
    float: right;
    margin-left: 30px;
}

.c100-toc h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.c100-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.c100-toc li {
    margin: 8px 0;
}

.c100-toc a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.c100-toc a:hover {
    color: #5a67d8;
}

/* Estimated Reading Time */
.c100-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

/* Print Styles */
@media print {
    .c100-single-share,
    .c100-reading-progress,
    .c100-toc {
        display: none;
    }
    
    .c100-single-hero {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .c100-single-title {
        color: #333 !important;
        text-shadow: none !important;
    }
}

/* Enhanced AI Badge Notice */
.c100-ai-badge-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin: 30px 0;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #bbdefb;
    border-radius: 12px;
    font-size: 14px;
    color: #1565c0;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.1);
    position: relative;
    overflow: hidden;
}

.c100-ai-badge-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.c100-ai-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: aiPulse 2s infinite;
}

.c100-badge-content {
    flex: 1;
}

.c100-badge-content strong {
    color: #0d47a1;
    font-weight: 600;
}

.c100-badge-content small {
    color: #424242;
    opacity: 0.8;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Image Enhancement */
.c100-single-body img {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.c100-single-body img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Code Blocks Enhancement */
.c100-single-body pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.c100-single-body code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d73a49;
}

.c100-single-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Table Styling */
.c100-single-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.c100-single-body th,
.c100-single-body td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.c100-single-body th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.c100-single-body tr:nth-child(even) {
    background: #f8f9fa;
}

.c100-single-body tr:hover {
    background: #e3f2fd;
}

/* Enhanced Blockquote Styling */
.c100-single-body blockquote {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-left: 5px solid #667eea;
    padding: 30px 40px 30px 50px;
    margin: 40px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.1em;
    color: #555;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.c100-single-body blockquote::before {
    content: '"';
    font-size: 5rem;
    color: #667eea;
    position: absolute;
    top: -15px;
    left: 15px;
    line-height: 1;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.c100-single-body blockquote::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23667eea"><path d="M6.5 10c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.318.142-.686.238-1.028.466-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.945-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 6.5 10zm11 0c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.318.142-.686.238-1.028.466-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.945-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 17.5 10z"/></svg>') no-repeat center;
    opacity: 0.1;
}

/* List Styling Enhancement */
.c100-single-body ul,
.c100-single-body ol {
    margin: 25px 0;
    padding-left: 0;
}

.c100-single-body li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.c100-single-body ul li::before {
    content: '▸';
    color: #667eea;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

.c100-single-body ol {
    counter-reset: custom-counter;
}

.c100-single-body ol li {
    counter-increment: custom-counter;
}

.c100-single-body ol li::before {
    content: counter(custom-counter);
    background: #667eea;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Scroll to Top Button */
.c100-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.c100-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.c100-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

/* Loading Animation */
.c100-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Enhancements */
@media print {
    .c100-single-share,
    .c100-reading-progress,
    .c100-toc,
    .c100-scroll-top {
        display: none !important;
    }
    
    .c100-single-hero {
        background: #f8f9fa !important;
        color: #333 !important;
        page-break-inside: avoid;
    }
    
    .c100-single-title {
        color: #333 !important;
        text-shadow: none !important;
        font-size: 2rem !important;
    }
    
    .c100-single-meta {
        color: #666 !important;
        border-bottom: 1px solid #ddd !important;
        padding-bottom: 10px !important;
    }
    
    .c100-single-body {
        font-size: 12pt !important;
        line-height: 1.6 !important;
    }
    
    .c100-single-body h2,
    .c100-single-body h3 {
        page-break-after: avoid;
        color: #333 !important;
    }
    
    .c100-single-body img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .c100-ai-badge-notice {
        background: #f0f0f0 !important;
        color: #333 !important;
        border: 1px solid #ccc !important;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .c100-blog-grid {
        grid-template-columns: 1fr;
    }
    
    .c100-blog-list .c100-blog-item {
        flex-direction: column;
    }
    
    .c100-blog-list .c100-blog-image {
        flex: none;
    }
    
    .c100-ai-blog-single {
        margin: 0 10px;
        border-radius: 10px;
    }
    
    .c100-single-hero {
        padding: 40px 20px;
    }
    
    .c100-single-title {
        font-size: 2.2rem;
    }
    
    .c100-single-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .c100-single-content {
        padding: 40px 20px;
    }
    
    .c100-single-body {
        font-size: 16px;
    }
    
    .c100-toc {
        float: none;
        margin: 20px 0;
        max-width: 100%;
    }
    
    .c100-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .c100-share-btn {
        min-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .c100-blog-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .c100-single-title {
        font-size: 1.8rem;
    }
    
    .c100-single-hero {
        padding: 30px 15px;
    }
    
    .c100-single-content {
        padding: 30px 15px;
    }
    
    .c100-single-body {
        font-size: 14px;
    }
    
    .c100-single-body h2 {
        font-size: 1.6rem;
        margin-left: 0;
        padding-left: 15px;
    }
    
    .c100-single-share {
        padding: 20px 15px;
    }
}