/**
 * AECO.digital Single Post Base Styles
 * Shared across all post templates
 */

/* Container & Layout */
.aeco-single-wrapper {
    background: #ffffff;
    min-height: 100vh;
}

.aeco-single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #2d3748;
}

/* Breadcrumb */
.aeco-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: #718096;
}

.aeco-breadcrumb a {
    color: #4a5568;
    text-decoration: none;
}

.aeco-breadcrumb a:hover {
    color: #2d3748;
}

.aeco-breadcrumb .separator {
    color: #cbd5e0;
}

.aeco-breadcrumb .current {
    color: #2d3748;
    font-weight: 500;
}

/* Header */
.aeco-post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid;
}

.aeco-post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-category-badge,
.category-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.tool-category-badge {
    background: #38a169;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    margin: 1rem 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #718096;
}

/* Score Card */
.aeco-score-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #718096;
    margin-bottom: 0.75rem;
}

.score-value {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-max {
    font-size: 2rem;
    color: #a0aec0;
}

.score-rating {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Tool Details Grid */
.tool-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

/* Callout Boxes */
.aeco-callout-box {
    border-left: 4px solid;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.aeco-callout-box.key-finding {
    background: #fffaf0;
    border-color: #dd6b20;
}

.aeco-callout-box.action-item {
    background: #f0fff4;
    border-color: #38a169;
}

.callout-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #1a202c;
}

.callout-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3748;
}

/* Main Content */
.aeco-post-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #2d3748;
    margin: 3rem 0;
}

.aeco-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #1a202c;
}

.aeco-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: #2d3748;
}

.aeco-post-content p {
    margin-bottom: 1.5rem;
}

.aeco-post-content ul,
.aeco-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.aeco-post-content li {
    margin-bottom: 0.75rem;
}

.aeco-post-content strong {
    font-weight: 600;
    color: #1a202c;
}

.aeco-post-content a {
    color: #3182ce;
    text-decoration: underline;
}

.aeco-post-content code {
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dd6b20;
}

/* Source Attribution */
.source-attribution {
    margin: 2rem 0;
    padding: 1rem;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #4a5568;
}

.source-attribution a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.related-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0.75rem;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.related-card-title a {
    color: #2d3748;
    text-decoration: none;
}

.related-card-title a:hover {
    color: #1a202c;
}

.related-date {
    display: block;
    font-size: 0.875rem;
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    .aeco-single-post {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.875rem;
    }
    
    .score-value {
        font-size: 3rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}