/**
 * SHW Content Quality Enhancements Styles
 * Version: 1.0.0
 */

/* Freshness Indicator */
.shw-freshness-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.shw-fresh-badge {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shw-fresh-date {
    font-size: 13px;
    opacity: 0.9;
}

/* Reading Metrics */
.shw-reading-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.shw-metric {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.shw-metric svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.shw-metric-success {
    color: #10b981;
    font-weight: 600;
}

/* Content Depth Score */
.shw-content-depth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.shw-depth-label {
    font-size: 13px;
    color: #666;
}

.shw-depth-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shw-depth-excellent {
    background: #10b981;
    color: white;
}

.shw-depth-good {
    background: #3b82f6;
    color: white;
}

.shw-depth-moderate {
    background: #f59e0b;
    color: white;
}

.shw-depth-basic {
    background: #6b7280;
    color: white;
}

/* Category Archive Enhancements */
.shw-category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    border-left: 4px solid #667eea;
}

.shw-category-meta {
    margin-bottom: 12px;
}

.shw-cat-count {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shw-category-description {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shw-freshness-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .shw-reading-metrics {
        flex-direction: column;
        gap: 10px;
    }
    
    .shw-content-depth {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .shw-category-header {
        padding: 16px;
    }
}

/* Print-friendly link indicator */
@media screen {
    .print-url {
        display: none;
    }
}

/* SVG Icons */
body:before {
    content: '';
    display: none;
}

/* Hidden SVG sprite for icons */
svg.shw-icons {
    display: none;
}

/* Icon support via inline SVG */
.shw-metric svg {
    fill: currentColor;
}

/* Accessibility improvements */
.shw-freshness-indicator:focus-within,
.shw-reading-metrics:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .shw-reading-metrics {
        background: #1f2937;
        color: #e5e7eb;
    }
    
    .shw-metric {
        color: #d1d5db;
    }
    
    .shw-category-header {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
    
    .shw-category-description {
        color: #d1d5db;
    }
    
    .shw-cat-count {
        background: #374151;
        color: #818cf8;
    }
}
