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

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

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    font-size: 1.2rem;
    color: #888;
}

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

.blog-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2a2a2a;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #888;
}

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

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.blog-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.blog-card-link:hover {
    color: #764ba2;
}

/* Article Page */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #aaa;
    line-height: 1.6;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #fff;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
}

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

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

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

.article-content code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
}

.article-content pre {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #aaa;
}

/* Related Tools Sidebar */
.related-tools {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
}

.related-tools h3 {
    margin-bottom: 20px;
    color: #fff;
}

.related-tool-link {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    background: #2a2a2a;
    border-radius: 8px;
    color: #667eea;
    text-decoration: none;
    transition: background 0.3s ease;
}

.related-tool-link:hover {
    background: #333;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    padding: 25px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.social-share h3 {
    width: 100%;
    margin-bottom: 15px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

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

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.share-linkedin {
    background: #0A66C2;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    /* Blog index page */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-container {
        padding: 20px 15px;
    }
    
    /* Article page */
    .article-container {
        padding: 20px 15px;
    }

    .article-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .article-excerpt {
        font-size: 1rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 30px;
    }

    .article-content h3 {
        font-size: 1.25rem;
        margin-top: 25px;
    }
    
    /* Social share */
    .social-share {
        flex-direction: column;
        gap: 10px;
    }

    .share-button {
        width: 100%;
        justify-content: center;
    }

    /* Related tools */
    .related-tools {
        padding: 20px 15px;
    }
}
