/* Blog Styles - Extracted from blog views */

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.blog-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

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

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.blog-card-title a:hover {
    color: #4f46e5;
}

.blog-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.read-more {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-stats {
    font-size: 0.8rem;
    color: #9ca3af;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.pagination a {
    background: #f3f4f6;
    color: #374151;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #4f46e5;
    color: white;
}

.pagination .active {
    background: #4f46e5;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #374151;
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

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

.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #6b7280;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-post-excerpt {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

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

.blog-post-content p {
    margin-bottom: 20px;
}

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

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.blog-post-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.blog-post-content blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #6b7280;
}

.blog-post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.blog-post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.blog-post-stats-left {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-post-stats-right {
    display: flex;
    gap: 15px;
}

.share-button {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

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

.share-twitter:hover {
    background: #1a91da;
}

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

.share-linkedin:hover {
    background: #006097;
}

.related-posts {
    margin-top: 80px;
}

.related-posts h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.related-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.related-post-title a:hover {
    color: #4f46e5;
}

.related-post-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-to-blog:hover {
    background: #f3f4f6;
    text-decoration: none;
}

/* Blog Navigation */
.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.blog-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
}

.blog-nav-link:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.blog-nav-link.prev::before {
    content: '←';
    margin-right: 8px;
}

.blog-nav-link.next::after {
    content: '→';
    margin-left: 8px;
}

.blog-nav-text {
    font-size: 14px;
    font-weight: 500;
}

.blog-nav-title {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* Blog Categories/Tags */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.blog-category {
    padding: 4px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-category:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* Blog Search */
.blog-search {
    margin-bottom: 40px;
}

.blog-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    background: #f8fafc;
}

.blog-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
}

.blog-search-button {
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.blog-search-button:hover {
    background: #2563eb;
}

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

.blog-pagination-link {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s;
}

.blog-pagination-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.blog-pagination-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.blog-pagination-link.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.blog-pagination-link.disabled:hover {
    background: none;
    border-color: #e2e8f0;
}

/* Blog Index Specific Styles */
.blog-header h1 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 16px;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-container,
    .blog-post-container {
        padding: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-post-image {
        height: 250px;
    }
    
    .blog-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .blog-nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .blog-post-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
} 