/* Blog Post Styles - Professional Legal Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* Header Styles */
.blog-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="20" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.author-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.publish-date {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Container Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

.blog-content {
    padding: 3rem 2rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
}

.toggle-btn {
    background: #f3f4f6;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.card-content {
    padding: 2rem;
}

/* Executive Summary Styles */
.executive-summary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #374151;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

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

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #3b82f6;
}

/* Insights Grid */
.insights-grid {
    margin-bottom: 3rem;
}

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

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.insight-card.active {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.insight-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.insight-header i {
    width: 24px;
    height: 24px;
    margin-top: 0.25rem;
}

.insight-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.insight-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.insight-content {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-expanded {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 3px solid currentColor;
    animation: slideDown 0.3s ease-out;
}

.insight-expanded p {
    margin: 0;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.6;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

.insight-expand {
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.insight-card:hover .insight-expand {
    opacity: 1;
}

/* Scoring Methodology */
.scoring-methodology {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #10b981;
}

.methodology-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #374151;
}

.scoring-metrics {
    display: grid;
    gap: 1.5rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.weight-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-details strong {
    color: #374151;
}

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

.range-item {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
}

.range-item.excellent {
    background: #dcfce7;
    color: #166534;
}

.range-item.good {
    background: #dbeafe;
    color: #1e40af;
}

.range-item.fair {
    background: #fef3c7;
    color: #92400e;
}

.range-item.poor {
    background: #fee2e2;
    color: #dc2626;
}

.range-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.range-value {
    font-size: 0.75rem;
    opacity: 0.8;
}

.algorithm-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
}

.algorithm-note i {
    color: #3b82f6;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Performers Section */
.performers-section {
    margin-bottom: 3rem;
}

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

.performer-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.performer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.top-performer {
    border-left: 4px solid #10b981;
}

.worst-performer {
    border-left: 4px solid #ef4444;
}

.rank-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
}

.rank-badge.worst {
    background: #ef4444;
}

.performer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.performer-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.score-circle.worst {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.score-number {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.625rem;
    opacity: 0.9;
}

.total-cost {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 1rem;
}

.total-cost.worst {
    color: #ef4444;
}

.highlights, .issues {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.highlight-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.issue-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.reasoning {
    color: #6b7280;
    font-style: italic;
    line-height: 1.5;
}

/* Matrix Reference */
.matrix-reference {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.matrix-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    color: #374151;
}

.feature i {
    color: #f59e0b;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #f59e0b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-left: 4px solid #8b5cf6;
}

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

.recommendation {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.recommendation h4 {
    color: #8b5cf6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.recommendation p {
    color: #4b5563;
    line-height: 1.6;
}

/* Author Bio */
.author-bio {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-left: 4px solid #64748b;
}

.bio-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bio-avatar {
    width: 80px;
    height: 80px;
    background: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.bio-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.bio-info p {
    color: #4b5563;
    line-height: 1.6;
}

.expertise-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.expertise-tag {
    background: #64748b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 1rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-content {
        padding: 2rem 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .key-stats {
        grid-template-columns: 1fr;
    }
    
    .matrix-features {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .bio-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation for feather icons */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    .blog-header {
        background: #1e293b !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}