/* ===================================================================
   Shortcode Widgets Styles for Vixbee Blog
   Minimal, responsive components for blog shortcodes
   =================================================================== */

/* === ULTRA MINIMAL BLOG WIDGET CONTAINER === */
.blog-simple-widget {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-align: center;
}

/* Legacy minimal blog shortcode widget */
.blog-shortcode-widget {
    margin: 1.5rem 0;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
}

.blog-shortcode-widget:hover {
    border-color: #d1d5db;
}

/* Legacy support for old shortcode widgets */
.shortcode-widget {
    margin: 2rem 0;
    border-radius: 12px;
    background: var(--bs-white);
    border: 1px solid rgba(139, 69, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 69, 255, 0.08);
}

.shortcode-widget:hover {
    box-shadow: 0 8px 30px rgba(139, 69, 255, 0.15);
    transform: translateY(-2px);
}

/* === MINIMAL BLOG WIDGET HEADER === */
.blog-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.blog-widget-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-widget-title i {
    font-size: 1.25rem;
    color: #8b45ff;
}

.blog-view-all-btn {
    color: #8b45ff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.blog-view-all-btn:hover {
    color: #6c3ce0;
    text-decoration: none;
}

/* Legacy widget header support */
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #8b45ff 0%, #6c3ce0 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.widget-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
    z-index: 1;
}

.widget-header > * {
    position: relative;
    z-index: 2;
}

.widget-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.view-all-btn {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateX(3px);
}

/* === ULTRA MINIMAL HEADER === */
.blog-simple-header {
    margin-bottom: 1.5rem;
}

.article-body .blog-simple-title {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.article-body .blog-simple-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}

/* === ULTRA MINIMAL GRID === */
.blog-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .blog-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Legacy minimal blog grids */
.blog-template-grid {
    display: grid;
    grid-template-columns: repeat(var(--blog-columns, 3), 1fr);
    gap: 1rem;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .blog-template-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-template-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Legacy content grids support */
.template-grid,
.collection-grid,
.category-grid {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
}

.template-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.collection-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === ULTRA MINIMAL SIMPLE CARD === */
.blog-simple-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.blog-simple-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-simple-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.blog-simple-image {
    position: relative;
    overflow: hidden;
}

.blog-simple-img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-body .blog-simple-img {
    margin: 0;
}

.blog-simple-card:hover .blog-simple-img {
    transform: scale(1.05);
}

.blog-simple-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-simple-card:hover .blog-simple-overlay {
    opacity: 1;
}

.blog-simple-overlay i {
    font-size: 2rem;
    color: white;
}

/* === MORE LINK === */
.blog-simple-more {
    margin-top: 1rem;
}

.blog-simple-more-link {
    display: inline-block;
    color: #8b45ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #8b45ff;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.blog-simple-more-link:hover {
    background: linear-gradient(135deg, #8e3cec, #b967f0);
    color: white;
    text-decoration: none;
}

/* === EMPTY STATE === */
.blog-simple-empty {
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

/* Legacy minimal blog template card */
.blog-template-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
}

.blog-template-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-template-image {
    position: relative;
    aspect-ratio: 4/3;
    background: #f3f4f6;
    overflow: hidden;
}

.blog-template-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.blog-template-card:hover .blog-template-img {
    transform: scale(1.02);
}

.blog-image-link {
    display: block;
    text-decoration: none;
}

.blog-premium-badge,
.blog-video-badge {
    position: absolute;
    top: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-premium-badge {
    right: 0.5rem;
    background: rgba(245, 158, 11, 0.9);
}

.blog-video-badge {
    left: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
}

/* Legacy template card support */
.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(139, 69, 255, 0.2);
    border-color: rgba(139, 69, 255, 0.3);
}

.template-image {
    position: relative;
    aspect-ratio: 16/12;
    background: #f8f9fa;
    overflow: hidden;
}

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

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

.template-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 69, 255, 0.8), rgba(108, 60, 224, 0.8));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

.overlay-btn {
    background: white;
    color: #8b45ff;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-btn:hover {
    background: #8b45ff;
    color: white;
    transform: scale(1.1);
}

.template-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.template-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-badge.free {
    background: #10b981;
    color: white;
}

.template-badge.premium {
    background: #f59e0b;
    color: white;
}

.template-badge.featured {
    background: #ef4444;
    color: white;
}

.blog-template-info {
    padding: 0.75rem;
}

.blog-template-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-template-title a {
    color: #1f2937;
    text-decoration: none;
}

.blog-template-title a:hover {
    color: #8b45ff;
}

.blog-template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
}

.blog-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-author-name {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-template-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    flex-shrink: 0;
}

.blog-stat-item {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.blog-stat-item i {
    font-size: 0.75rem;
    color: #9ca3af;
}



/* === MASONRY LAYOUT === */
.masonry-grid {
    columns: 3;
    column-gap: 1.5rem;
    padding: 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* === SLIDER LAYOUT === */
.slider-container {
    position: relative;
    padding: 2rem;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 1.5rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    background: #8b45ff;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #6c3ce0;
    transform: scale(1.1);
}

.slider-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* === CATEGORY SHOWCASE === */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #8b45ff, #6c3ce0);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 69, 255, 0.15);
    border-color: rgba(139, 69, 255, 0.3);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #8b45ff, #6c3ce0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.category-count {
    color: #6b7280;
    font-size: 0.875rem;
}

/* === AUTHOR SPOTLIGHT === */
.author-spotlight .author-spotlight {
    background: linear-gradient(135deg, #8b45ff 0%, #6c3ce0 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.author-spotlight .author-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotate(45deg);
}

.author-spotlight .author-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.author-spotlight .author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.author-spotlight .author-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-spotlight .author-title {
    opacity: 0.9;
    font-size: 1rem;
}

.author-spotlight .author-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.author-spotlight .author-stat {
    text-align: center;
}

.author-spotlight .author-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-spotlight .author-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* === TEMPLATE STATS WIDGET === */
.stats-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(139, 69, 255, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #8b45ff;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .widget-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .template-grid,
    .collection-grid,
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .masonry-grid {
        columns: 1;
        padding: 1.5rem;
    }
    
    .author-header {
        flex-direction: column;
        text-align: center;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .shortcode-widget {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .template-info,
    .collection-info {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .author-spotlight {
        padding: 1.5rem;
    }
}

/* === LOADING STATES === */
.widget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #8b45ff;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 69, 255, 0.3);
    border-top: 3px solid #8b45ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* === BLOG WIDGET FOOTER === */
.blog-widget-footer {
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.blog-sort-indicator {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.blog-sort-indicator i {
    color: #8b45ff;
}

/* === BLOG ERROR STATES === */
.blog-widget-error {
    padding: 1.5rem;
    text-align: center;
    color: #ef4444;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
}

.blog-widget-error i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-widget-error p {
    margin: 0;
    font-size: 0.875rem;
}

/* Legacy error states support */
.widget-error {
    padding: 2rem;
    text-align: center;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 1rem 0;
}

.widget-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* ===================================================================
   DARK MODE STYLES FOR BLOG SHORTCODE WIDGETS
   =================================================================== */

/* === BLOG SHORTCODE WIDGET DARK MODE === */
body[data-layout-mode=dark] .blog-shortcode-widget {
    background: #171717;
    border-color: #2a2a2a;
}

body[data-layout-mode=dark] .blog-shortcode-widget:hover {
    border-color: #3c3c3c;
}

/* === BLOG WIDGET HEADER DARK MODE === */
body[data-layout-mode=dark] .blog-widget-header {
    background: #1e1e1e;
    border-bottom-color: #2a2a2a;
}

body[data-layout-mode=dark] .blog-widget-title {
    color: #f5f5f5;
}

body[data-layout-mode=dark] .blog-widget-title i {
    color: #a855f7;
}

body[data-layout-mode=dark] .blog-view-all-btn {
    color: #a855f7;
}

body[data-layout-mode=dark] .blog-view-all-btn:hover {
    color: #c084fc;
}

/* === BLOG TEMPLATE CARD DARK MODE === */
body[data-layout-mode=dark] .blog-template-card {
    background: #171717;
    border-color: #2a2a2a;
}

body[data-layout-mode=dark] .blog-template-card:hover {
    border-color: #3c3c3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body[data-layout-mode=dark] .blog-template-image {
    background: #1e1e1e;
}

body[data-layout-mode=dark] .blog-premium-badge {
    background: rgba(245, 158, 11, 0.9);
}

body[data-layout-mode=dark] .blog-video-badge {
    background: rgba(239, 68, 68, 0.9);
}

/* === BLOG TEMPLATE INFO DARK MODE === */
body[data-layout-mode=dark] .blog-template-title {
    color: #f5f5f5;
}

body[data-layout-mode=dark] .blog-template-title a {
    color: #f5f5f5;
}

body[data-layout-mode=dark] .blog-template-title a:hover {
    color: #a855f7;
}

body[data-layout-mode=dark] .blog-template-meta {
    color: #adb5bd;
}

body[data-layout-mode=dark] .blog-author-name {
    color: #adb5bd;
}

body[data-layout-mode=dark] .blog-template-stats {
    color: #adb5bd;
}

body[data-layout-mode=dark] .blog-stat-item i {
    color: #6b7280;
}

/* === BLOG WIDGET FOOTER DARK MODE === */
body[data-layout-mode=dark] .blog-widget-footer {
    background: #1e1e1e;
    border-top-color: #2a2a2a;
}

body[data-layout-mode=dark] .blog-sort-indicator {
    color: #adb5bd;
}

body[data-layout-mode=dark] .blog-sort-indicator i {
    color: #a855f7;
}

/* === BLOG ERROR STATES DARK MODE === */
body[data-layout-mode=dark] .blog-widget-error {
    background: #2a1a1a;
    border-top-color: #4a2626;
    color: #f87171;
}

body[data-layout-mode=dark] .blog-widget-error p {
    color: #f87171;
}

/* ===================================================================
   DARK MODE STYLES FOR ULTRA MINIMAL BLOG WIDGETS
   =================================================================== */

/* === SIMPLE WIDGET DARK MODE === */
body[data-layout-mode=dark] .blog-simple-widget {
    background: #171717;
    border-color: #2a2a2a;
}

/* === SIMPLE HEADER DARK MODE === */
body[data-layout-mode=dark] .blog-simple-title {
    color: #f5f5f5;
}

body[data-layout-mode=dark] .blog-simple-subtitle {
    color: #adb5bd;
}

/* === SIMPLE CARD DARK MODE === */
body[data-layout-mode=dark] .blog-simple-card {
    background: #1e1e1e;
}

body[data-layout-mode=dark] .blog-simple-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body[data-layout-mode=dark] .blog-simple-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* === SIMPLE MORE LINK DARK MODE === */
body[data-layout-mode=dark] .blog-simple-more-link {
    color: #a855f7;
    border-color: #a855f7;
}

body[data-layout-mode=dark] .blog-simple-more-link:hover {
    background: linear-gradient(135deg, #8e3cec, #b967f0);
    color: #fff;
}

/* === SIMPLE EMPTY STATE DARK MODE === */
body[data-layout-mode=dark] .blog-simple-empty {
    color: #adb5bd;
}

/* ===================================================================
   TEMPLATE STATS WIDGET STYLES - LIGHT & DARK MODE
   =================================================================== */

/* === BLOG STATS WIDGET IMPROVEMENTS === */
.blog-stats-widget {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.blog-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-stat-card {
    text-align: center;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.blog-stat-card:hover {
    background: rgba(139, 69, 255, 0.05);
    border-color: rgba(139, 69, 255, 0.2);
    transform: translateY(-1px);
}

.blog-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #8b45ff;
    display: block;
    margin-bottom: 0.375rem;
    line-height: 1;
}

.blog-stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* === BLOG STATS RESPONSIVE === */
@media (max-width: 768px) {
    .blog-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .blog-stat-card {
        padding: 1rem;
    }
    
    .blog-stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .blog-stat-number {
        font-size: 1.25rem;
    }
}

/* === BLOG STATS DARK MODE === */
body[data-layout-mode=dark] .blog-stat-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
}

body[data-layout-mode=dark] .blog-stat-card:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

body[data-layout-mode=dark] .blog-stat-number {
    color: #a855f7;
}

body[data-layout-mode=dark] .blog-stat-label {
    color: #adb5bd;
}

/* ===================================================================
   AUTHOR SPOTLIGHT WIDGET STYLES - LIGHT & DARK MODE
   =================================================================== */

/* === AUTHOR SPOTLIGHT WIDGET === */
.article-body .blog-author-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-body .blog-author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-body .blog-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #8b45ff;
    background: #f8f9fa;
}

.article-body .blog-author-image {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: 50%;
}

.article-body .blog-author-details {
    text-align: center;
}

.article-body .blog-author-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
}

.article-body .blog-author-role {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.article-body .blog-author-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.article-body .blog-author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.article-body .blog-author-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b45ff;
    line-height: 1;
}

.blog-author-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.blog-author-actions {
    display: flex;
    justify-content: center;
}

.blog-author-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.blog-author-btn:hover {
    background: #8b45ff;
    color: white;
    border-color: #8b45ff;
    text-decoration: none;
    transform: translateY(-1px);
}

.blog-author-btn i {
    font-size: 1.1rem;
}

/* Mobile adjustments for author section */
@media (max-width: 480px) {
    .blog-author-stats {
        gap: 1rem;
    }
    
    .blog-author-stat-number {
        font-size: 1.25rem;
    }
    
    .blog-author-name {
        font-size: 1.25rem;
    }
    
    .blog-author-avatar {
        width: 70px;
        height: 70px;
    }
}

/* === DARK MODE: AUTHOR SPOTLIGHT === */
body[data-layout-mode=dark] .blog-author-section {
    border-bottom-color: #2a2a2a;
}

body[data-layout-mode=dark] .blog-author-avatar {
    border-color: #a855f7;
    background: #1e1e1e;
}

body[data-layout-mode=dark] .blog-author-name {
    color: #f5f5f5;
}

body[data-layout-mode=dark] .blog-author-role {
    color: #adb5bd;
}

body[data-layout-mode=dark] .blog-author-stat-number {
    color: #a855f7;
}

body[data-layout-mode=dark] .blog-author-stat-label {
    color: #9ca3af;
}

body[data-layout-mode=dark] .blog-author-btn {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: #2a2a2a;
}

body[data-layout-mode=dark] .blog-author-btn:hover {
    background: #a855f7;
    color: white;
    border-color: #a855f7;
}

/* ===================================================================
   CATEGORY SHOWCASE WIDGET - ULTRA MINIMAL VERSION
   =================================================================== */

/* === CATEGORY SHOWCASE CARD === */
.category-showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.category-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === CATEGORY PLACEHOLDER === */
.blog-simple-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b45ff 0%, #a855f7 100%);
    color: white;
    font-size: 2rem;
    min-height: 120px;
}

/* === CATEGORY OVERLAY CONTENT === */
.category-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 1rem;
    height: 100%;
}

.category-overlay-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.category-overlay-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.category-overlay-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    opacity: 0.9;
    flex-wrap: wrap;
    justify-content: center;
}

.category-overlay-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.category-overlay-stats i {
    font-size: 0.875rem;
}

/* === RESPONSIVE CATEGORY SHOWCASE === */
@media (max-width: 768px) {
    .category-overlay-content {
        padding: 0.75rem;
    }
    
    .category-overlay-icon {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }
    
    .category-overlay-name {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
    
    .category-overlay-stats {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
    
    .blog-simple-placeholder {
        font-size: 1.5rem;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .category-overlay-stats {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .category-overlay-stats span {
        justify-content: center;
    }
}

/* === DARK MODE: CATEGORY SHOWCASE === */
body[data-layout-mode=dark] .category-showcase-card {
    background: #1e1e1e;
}

body[data-layout-mode=dark] .category-showcase-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body[data-layout-mode=dark] .blog-simple-placeholder {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
}

/* === ULTRA MINIMAL CURATED COLLECTIONS === */
.blog-simple-widget .blog-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .blog-simple-widget .blog-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
@media (max-width: 480px) {
    .blog-simple-widget .blog-simple-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.blog-simple-card {
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: none;
    padding: 0;
    margin: 0;
}

.blog-simple-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-simple-image {
    width: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}



.blog-simple-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdbdbd;
    font-size: 2rem;
    background: #e5e7eb;
}

.blog-template-info {
    padding: 0.75rem 1rem 1rem 1rem;
    text-align: left;
}

.blog-template-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-template-meta {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Empty state icon */
.blog-simple-empty i {
    font-size: 2rem;
    color: #bdbdbd;
    margin-bottom: 0.5rem;
    display: block;
}

/* === DARK MODE === */
body[data-layout-mode=dark] .blog-simple-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
}
body[data-layout-mode=dark] .blog-simple-image {
    background: #23272f;
}
body[data-layout-mode=dark] .blog-simple-placeholder {
    background: #23272f;
    color: #444;
}
body[data-layout-mode=dark] .blog-template-title {
    color: #f5f5f5;
}
body[data-layout-mode=dark] .blog-template-meta {
    color: #adb5bd;
}
body[data-layout-mode=dark] .blog-simple-empty i {
    color: #444;
}

/* ===================================================================
   MINIMALIST COLLECTION CARD STYLES
   =================================================================== */

/* === COLLECTION CARD BASE === */
.blog-collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.blog-collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.blog-collection-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* === COLLECTION PREVIEW === */
.blog-collection-preview {
    position: relative;
    overflow: hidden;
}

.blog-collection-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    height: 180px;
    background: #e5e7eb;
}

.blog-collection-main {
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

.article-body .blog-collection-img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.blog-collection-card:hover .blog-collection-img {
    transform: scale(1.05);
}

.blog-collection-thumbnails {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 2px;
}

.blog-collection-thumb {
    flex: 1 1 0;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #d1d5db;
    display: flex;
}

.blog-collection-empty {
    background: #d1d5db;
}

/* === COLLECTION OVERLAY === */
.blog-collection-overlay {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(139, 69, 255, 0.9);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-collection-card:hover .blog-collection-overlay {
    opacity: 1;
}

.blog-collection-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-collection-count i {
    font-size: 0.875rem;
}

/* === COLLECTION PLACEHOLDER === */
.blog-collection-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b45ff 0%, #a855f7 100%);
    color: white;
    font-size: 2.5rem;
}

/* === COLLECTION INFO === */
.blog-collection-info {
    padding: 0.875rem 1rem 1rem 1rem;
}

.article-body .blog-collection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0.5rem 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-body .blog-collection-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.blog-collection-items {
    font-weight: 600;
    color: #8b45ff;
}

.blog-collection-author {
    color: #6b7280;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .blog-collection-grid {
        height: 160px;
    }
    
    .blog-collection-placeholder {
        height: 160px;
        font-size: 2rem;
    }
    
    .blog-collection-info {
        padding: 0.75rem;
    }
    
    .blog-collection-title {
        font-size: 0.9rem;
    }
    
    .blog-collection-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-collection-grid {
        height: 140px;
    }
    
    .blog-collection-placeholder {
        height: 140px;
        font-size: 1.75rem;
    }
    
    .blog-collection-overlay {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* ===================================================================
   DARK MODE - COLLECTION CARDS
   =================================================================== */

body[data-layout-mode=dark] .blog-collection-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
}

body[data-layout-mode=dark] .blog-collection-card:hover {
    border-color: #3c3c3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body[data-layout-mode=dark] .blog-collection-grid {
    background: #23272f;
}

body[data-layout-mode=dark] .blog-collection-thumb {
    background: #374151;
}

body[data-layout-mode=dark] .blog-collection-empty {
    background: #374151;
}

body[data-layout-mode=dark] .blog-collection-overlay {
    background: rgba(168, 85, 247, 0.9);
}

body[data-layout-mode=dark] .blog-collection-placeholder {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
}

body[data-layout-mode=dark] .blog-collection-title {
    color: #f5f5f5;
}

body[data-layout-mode=dark] .blog-collection-items {
    color: #a855f7;
}

body[data-layout-mode=dark] .blog-collection-author {
    color: #adb5bd;
}

/* ===================================================================
   END OF SHORTCODE WIDGETS CSS
   =================================================================== */

/* ===================================================================
   SEARCH WIDGET STYLES - MINIMALIST DESIGN
   =================================================================== */

/* === SEARCH FORM === */
.blog-search-form {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.search-form {
    width: 100%;
}

.blog-search-input {
    margin-bottom: 1rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: #8b45ff;
    box-shadow: 0 0 0 3px rgba(139, 69, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    font-size: 1.125rem;
    z-index: 2;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #1f2937;
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: #8b45ff;
    color: white;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    aspect-ratio: 1/1;
    margin: 0.5rem;
}

.search-btn:hover {
    background: #6c3ce0;
}

.search-btn i {
    font-size: 1rem;
}

/* === SEARCH FILTERS === */
.blog-search-filters {
    margin-top: 0.75rem;
}

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

.category-filter-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

.category-filter-btn:hover {
    background: #8b45ff;
    color: white;
    border-color: #8b45ff;
    transform: translateY(-1px);
    text-decoration: none;
}

.category-filter-btn i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .search-input-wrapper {
        border-radius: 6px;
    }
    
    .search-input {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
        font-size: 0.875rem;
    }
    
    .search-icon {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 0.75rem 1rem;
    }
    
    .filter-categories {
        gap: 0.375rem;
    }
    
    .category-filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    }
    
    .search-icon {
        left: 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 0.625rem 0.875rem;
    }
    
    .category-filter-btn {
        padding: 0.25rem 0.625rem;
        font-size: 0.7rem;
        border-radius: 16px;
    }
    

}

/* ===================================================================
   DARK MODE - SEARCH WIDGET
   =================================================================== */

body[data-layout-mode=dark]   .blog-search-form {
    border-bottom-color: #2a2a2a;
}

body[data-layout-mode=dark] .search-input-wrapper {
    background: #2a2a2a;
    border-color: #2a2a2a;
}

body[data-layout-mode=dark] .search-input-wrapper:focus-within {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

body[data-layout-mode=dark] .search-icon {
    color: #9ca3af;
}

body[data-layout-mode=dark] .search-input {
    color: #f5f5f5;
}

body[data-layout-mode=dark] .search-input::placeholder {
    color: #6b7280;
}

body[data-layout-mode=dark] .search-btn {
    background: #a855f7;
}

body[data-layout-mode=dark] .search-btn:hover {
    background: #c084fc;
}

body[data-layout-mode=dark] .category-filter-btn {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: #2a2a2a;
}

body[data-layout-mode=dark] .category-filter-btn:hover {
    background: #a855f7;
    color: white;
    border-color: #a855f7;
}

/* ===================================================================
   END OF SEARCH WIDGET STYLES
   =================================================================== */