/* Blog-specific styles - добавляем к существующим стилям */

/* Blog Grid */
.blog-section {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
}

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

.blog-date:before {
    content: "📅 ";
}

.blog-reading-time:before {
    content: "⏱️ ";
}

.blog-content h2 {
    margin: 0 0 15px 0;
    font-size: 22px;
    line-height: 1.4;
}

.blog-content h2 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h2 a:hover {
    color: #667eea;
}

.blog-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    transform: translateX(5px);
}

/* Post Detail */
.post-detail {
    padding: 40px 0 80px;
    background: white;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-category {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.post-date,
.post-reading-time {
    color: #666;
    font-size: 14px;
}

.post-header h1 {
    font-size: 42px;
    line-height: 1.2;
    color: #2d3748;
    margin: 20px 0;
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.post-author img {
    border-radius: 50%;
    border: 3px solid #667eea;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #2d3748;
}

.author-title {
    display: block;
    font-size: 14px;
    color: #666;
}

.post-featured-image {
    max-width: 1200px;
    margin: 0 auto 60px;
    border-radius: 12px;
    overflow: hidden;
}

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

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
}

.post-content .lead {
    font-size: 22px;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
}

.post-content h2 {
    font-size: 32px;
    margin: 50px 0 25px;
    color: #2d3748;
}

.post-content h3 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: #2d3748;
}

.post-content h4 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #2d3748;
}

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

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

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

.post-content a {
    color: #667eea;
    text-decoration: underline;
}

.post-content a:hover {
    color: #5568d3;
}

.post-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
}

.post-cta h3 {
    color: white;
    margin: 0 0 15px 0;
}

.post-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.post-cta .btn {
    background: white;
    color: #667eea;
}

.post-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.post-footer {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    padding: 8px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: #5568d3;
}

.related-posts {
    max-width: 1200px;
    margin: 80px auto 0;
    padding-top: 60px;
    border-top: 2px solid #e2e8f0;
}

.related-posts h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

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

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

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

.related-post-card h4 {
    padding: 20px;
    margin: 0;
    font-size: 18px;
}

.related-post-card a {
    color: #2d3748;
    text-decoration: none;
}

.related-post-card a:hover {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-header h1 {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content .lead {
        font-size: 18px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

