/* Insights Section Styles */
.insights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.insights-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.insights-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.insights-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search and Filters */
.insights-controls {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.insights-search {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.insights-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.insights-search input:focus {
    outline: none;
    border-color: #e5452b;
    box-shadow: 0 0 0 3px rgba(229, 69, 43, 0.1);
}

.insights-search input::placeholder {
    color: #999;
}

.insights-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.filter-chip:hover {
    background: #e5452b;
    color: white;
    border-color: #e5452b;
}

.filter-chip.active {
    background: #e5452b;
    color: white;
    border-color: #e5452b;
}

.filter-chip input[type="checkbox"] {
    display: none;
}

/* Featured Posts */
.featured-posts {
    margin-bottom: 60px;
}

.featured-posts h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.post-card.featured {
    border: 2px solid #e5452b;
}

.post-card-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.post-category {
    background: #e5452b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.post-date {
    color: #999;
}

.post-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #e5452b;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.post-card .post-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-card .post-tag:hover {
    background: #e5452b;
    color: white;
    transform: none;
    box-shadow: none;
}

.post-tag {
    background: linear-gradient(135deg, #e5452b, #d13d2a);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(229, 69, 43, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 69, 43, 0.3);
    background: linear-gradient(135deg, #d13d2a, #b83524);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e5452b;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

.read-more::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Regular Posts Grid */
.regular-posts h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Pagination */
.insights-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(.disabled) {
    background: #e5452b;
    color: white;
    border-color: #e5452b;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: #e5452b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.load-more-btn:hover {
    background: #d13d2a;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.clear-filters-btn {
    background: #e5452b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.clear-filters-btn:hover {
    background: #d13d2a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .insights-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .insights-search {
        min-width: auto;
    }
    
    .insights-filters {
        justify-content: center;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-header h1 {
        font-size: 2rem;
    }
    
    .post-card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .insights-container {
        padding: 0 15px;
    }
    
    .insights-header {
        padding: 30px 0;
        margin-bottom: 40px;
    }
    
    .insights-header h1 {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Accessibility */
.insights-search input:focus-visible,
.filter-chip:focus-visible,
.post-card:focus-visible,
.pagination-btn:focus-visible,
.load-more-btn:focus-visible {
    outline: 3px solid #e5452b;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #e5452b;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-to-content:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .post-card {
        border: 2px solid #000;
    }
    
    .filter-chip {
        border: 2px solid #000;
    }
    
    .insights-search input {
        border: 2px solid #000;
    }
}

/* Post Detail Page Styles */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 20px;
}

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

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

.author-title {
    color: #666;
    font-size: 1rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-hero-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 40px 0 20px 0;
    font-weight: 600;
}

.post-content h3 {
    font-size: 1.4rem;
    color: #444;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.post-content h4 {
    font-size: 1.2rem;
    color: #555;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 20px;
    color: #444;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
    color: #444;
}

.post-content strong {
    color: #333;
    font-weight: 600;
}

.post-content em {
    color: #666;
    font-style: italic;
}

.post-tags {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.post-tags h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.share-buttons {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.share-buttons h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.share-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #e5452b;
}

.share-btn.copy-link:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-icon {
    font-size: 16px;
}

.share-text {
    font-weight: 500;
}

.related-posts {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.related-posts h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.related-post-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.related-post-card h4 a {
    color: #333;
    text-decoration: none;
}

.related-post-card h4 a:hover {
    color: #e5452b;
}

.related-post-card p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.related-post-card .post-category {
    background: #e5452b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Newsletter signup styles */
.newsletter-signup h3 {
    color: #333;
    margin-bottom: 15px;
}

.newsletter-signup p {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive adjustments for post pages */
@media (max-width: 768px) {
    .post-header .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.6rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .share-buttons {
        text-align: center;
    }
    
    .share-buttons-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .share-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
