/* ===================================
   BLOG NOTIFICATION SYSTEM
   =================================== */

/* Update Notifications */
.update-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    left: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    z-index: 10000;
    animation: slideInDown 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.update-notification .notification-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.update-notification i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.update-notification .notification-text h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-light);
    font-weight: 600;
}

.update-notification .notification-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.update-notification .notification-actions {
    display: flex;
    gap: 0.5rem;
}

.update-notification .refresh-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.update-notification .refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.update-notification .dismiss-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.update-notification .dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Blog Notifications */
.blog-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid;
    border-radius: var(--border-radius);
    padding: 1rem;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.blog-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-notification.notification-success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.blog-notification.notification-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.blog-notification.notification-info {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

/* Empty Blog State */
.empty-blog-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
    grid-column: 1 / -1;
}

.empty-state-content {
    text-align: center;
    max-width: 500px;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.empty-state-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state-content h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-actions .btn {
    min-width: 180px;
}

/* Blog Error State Enhanced */
.blog-error-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
    grid-column: 1 / -1;
}

.blog-error-state .error-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius);
}

.blog-error-state .error-content i {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
    display: block;
}

.blog-error-state .error-content h3 {
    color: #ef4444;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-error-state .error-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-error-state .error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-error-state .error-actions .btn {
    min-width: 140px;
}

/* Featured Post Card Enhanced */
.featured-post-card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 82, 163, 0.05) 100%);
    position: relative;
    overflow: visible;
}

.featured-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
}

/* Loading States Enhanced */
.loading-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    gap: 1.5rem;
}

.loading-posts .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 102, 204, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-posts p {
    color: var(--text-muted);
    font-size: 1.125rem;
    text-align: center;
}

/* Skeleton Loading for Posts */
.skeleton-post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-post-image {
    height: 200px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-post-content {
    padding: 1.5rem;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line:last-child {
    width: 60%;
}

.skeleton-title {
    height: 1.5rem;
    margin-bottom: 1rem;
}

/* Network Status Indicator */
.network-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.network-status.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.network-status.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Enhanced Filter Buttons */
.filter-btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Enhanced Search Box */
.search-box {
    position: relative;
}

.search-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

#blog-search:focus + .search-box::after {
    transform: scaleX(1);
}

/* Enhanced Post Tags */
.post-tag {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.post-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.3), transparent);
    transition: left 0.3s ease;
}

.post-tag:hover::before {
    left: 100%;
}

/* Stats Counter Animation */
.stat-number {
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Enhanced Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Retry Button Enhanced */
.retry-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.retry-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.retry-btn:hover::before {
    width: 300px;
    height: 300px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.retry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.retry-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Cache Status Indicator */
.cache-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 1000;
    transition: all var(--transition-normal);
    opacity: 0.7;
}

.cache-status.fresh {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.cache-status.cached {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.cache-status.stale {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .update-notification {
        right: 10px;
        left: 10px;
        padding: 1rem;
    }
    
    .update-notification .notification-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .update-notification .notification-actions {
        justify-content: center;
    }
    
    .blog-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .empty-state-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .empty-state-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .blog-error-state .error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-error-state .error-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .network-status,
    .cache-status {
        position: relative;
        display: none; /* Hide on mobile to save space */
    }
}

@media (max-width: 480px) {
    .update-notification {
        padding: 0.75rem;
    }
    
    .update-notification .refresh-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .update-notification .dismiss-btn {
        width: 32px;
        height: 32px;
    }
    
    .empty-state-content,
    .blog-error-state .error-content {
        padding: 2rem 1rem;
    }
    
    .empty-state-content i,
    .blog-error-state .error-content i {
        font-size: 3rem;
    }
    
    .skeleton-post-content {
        padding: 1rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .update-notification,
    .blog-notification {
        background: rgba(5, 8, 16, 0.98);
    }
    
    .empty-state-content,
    .blog-error-state .error-content {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .skeleton-post-card {
        background: rgba(255, 255, 255, 0.03);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .update-notification,
    .blog-notification {
        border-width: 2px;
        background: #000000;
    }
    
    .filter-btn.active {
        background: #ffffff;
        color: #000000;
    }
    
    .retry-btn {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .update-notification,
    .blog-notification,
    .filter-btn::before,
    .post-tag::before,
    .retry-btn::before,
    .skeleton-post-image,
    .skeleton-line {
        animation: none;
        transition: none;
    }
    
    .stat-item:hover .stat-number {
        transform: none;
    }
    
    .retry-btn:hover,
    .filter-btn.active {
        transform: none;
    }
}

/* Focus Management */
.update-notification .refresh-btn:focus,
.update-notification .dismiss-btn:focus,
.blog-notification .notification-close:focus,
.retry-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .update-notification,
    .blog-notification,
    .network-status,
    .cache-status,
    .loading-posts {
        display: none !important;
    }
    
    .empty-state-content,
    .blog-error-state .error-content {
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
    
    .empty-state-content i,
    .blog-error-state .error-content i {
        color: #666 !important;
    }
    
    .empty-state-content h3,
    .blog-error-state .error-content h3 {
        color: #333 !important;
    }
}

/* Performance Optimizations */
.post-card {
    contain: layout style paint;
    will-change: transform;
}

.filter-btn,
.retry-btn {
    contain: layout style;
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Screen Reader Announcements */
.sr-announcement {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Loading State Announcements */
[aria-live="polite"],
[aria-live="assertive"] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Enhanced Tooltips for Status Indicators */
.cache-status,
.network-status {
    position: relative;
}

.cache-status:hover::after,
.network-status:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1001;
    margin-bottom: 5px;
}

.cache-status:hover::before,
.network-status:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
}

/* Progressive Enhancement */
.no-js .update-notification,
.no-js .blog-notification {
    display: none;
}

.no-js .loading-posts {
    display: none;
}

.no-js .skeleton-post-card {
    display: none;
}

/* ===================================
   BLOG LAYOUT FIX
   =================================== */

/* Blog Hero Section */
.blog-hero {
    padding: 8rem 0 4rem;
    background: var(--gradient-dark);
    text-align: center;
}

.blog-header {
    max-width: 800px;
    margin: 0 auto;
}

.blog-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background: rgba(0, 102, 204, 0.05);
}

.featured-post {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.featured-post-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Blog Controls */
.blog-controls {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.controls-wrapper {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 2rem;
    align-items: center;
}

/* Search Box */
.search-container {
    position: relative;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#blog-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

#blog-search:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.search-shortcut {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Filter Buttons */
.filters-container {
    display: flex;
    gap: 0.5rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* Sort Container */
.sort-container select {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 4rem 0;
    min-height: 60vh;
}

/* Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Card */
.post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
}

.post-card-image {
    height: 200px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.post-card-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-category {
    background: rgba(0, 102, 204, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-light);
}

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.post-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.post-read-more:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.no-results-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.no-results-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: rgba(0, 102, 204, 0.05);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.email-input-group {
    display: flex;
    gap: 1rem;
}

#newsletter-email {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 1rem;
}

#newsletter-email:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-disclaimer {
    display: block;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .controls-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }
    
    .blog-stats {
        gap: 2rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .email-input-group {
        flex-direction: column;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        text-align: center;
    }
    
    .post-card-content {
        padding: 1.5rem;
    }
}


/* ===================================
   POST FEATURED BADGE
   =================================== */

/* Badge per post in evidenza */
.post-featured-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

.post-featured-badge i {
    font-size: 0.625rem;
    color: #ffd700;
}

/* Badge per la sezione featured separata */
.featured-post-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-post-badge::before {
    content: "⭐";
    font-size: 0.875rem;
}

/* Variante per card featured nella griglia */
.featured-post-card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 82, 163, 0.05) 100%);
    position: relative;
    overflow: visible;
}

.featured-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
}

/* Animazione per il badge */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
        transform: scale(1.02);
    }
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .post-featured-badge {
        top: -6px;
        right: 10px;
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .featured-post-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }
}

/* Accessibilità - high contrast */
@media (prefers-contrast: high) {
    .post-featured-badge,
    .featured-post-badge {
        background: #ff4500;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
}

/* Riduzione movimento */
@media (prefers-reduced-motion: reduce) {
    .post-featured-badge {
        animation: none;
    }
    
    .featured-post-card:hover {
        transform: none;
    }
}