/* Blog-specific styles */

.blog-rss-link {
    margin-top: 0.5em;
    font-size: 0.9em;
}

.blog-rss-link a {
    color: #888;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s ease-in-out;
}

.blog-rss-link a:hover {
    color: #1a62ed;
}

.blog-rss-link a::before {
    margin-right: 0.4em;
}

.blog-post-preview {
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-preview:last-child {
    border-bottom: none;
}

.blog-post-preview h3 {
    margin-bottom: 0.5em;
}

.blog-post-preview h3 a {
    color: #fff;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s ease-in-out;
}

.blog-post-preview h3 a:hover {
    color: #1a62ed;
}

.blog-post-meta {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.blog-post-excerpt {
    margin-bottom: 1em;
    line-height: 1.8;
}

.blog-post-tags {
    margin-top: 1em;
}

.blog-tag {
    display: inline-block;
    padding: 0.2em 0.6em;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    background: rgba(26, 98, 237, 0.15);
    color: #1a62ed;
    border-radius: 3px;
    font-size: 0.85em;
}

.blog-read-more {
    color: #1a62ed;
    text-decoration: none;
    border-bottom: 1px dotted #1a62ed;
    transition: border-bottom-color 0.2s ease-in-out;
}

.blog-read-more:hover {
    border-bottom-color: transparent;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 2em;
    color: #1a62ed;
    text-decoration: none;
    border-bottom: 1px dotted #1a62ed;
    transition: border-bottom-color 0.2s ease-in-out;
}

.blog-back-link:hover {
    border-bottom-color: transparent;
}

/* Full blog post styles */
.blog-post-full {
    line-height: 1.8;
}

.blog-post-full h1 {
    margin-bottom: 0.5em;
    color: #fff;
}

.blog-post-full h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #fff;
    font-size: 1.5em;
}

.blog-post-full h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #fff;
    font-size: 1.2em;
}

.blog-post-full p {
    margin-bottom: 1.5em;
}

.blog-post-full ul,
.blog-post-full ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.blog-post-full li {
    margin-bottom: 0.5em;
}

.blog-post-full strong {
    color: #fff;
}

.blog-post-full em {
    font-style: italic;
}

.blog-post-full code {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9em;
}

.blog-post-full pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1em;
    border-radius: 3px;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.blog-post-full pre code {
    background: none;
    border: none;
    padding: 0;
}

.blog-post-full blockquote {
    border-left: 4px solid #1a62ed;
    padding-left: 1.5em;
    margin-left: 0;
    margin-bottom: 1.5em;
    font-style: italic;
    color: #aaa;
}

.blog-post-full hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2em 0;
}

.blog-post-full a {
    color: #1a62ed;
    text-decoration: none;
    border-bottom: 1px dotted #1a62ed;
}

.blog-post-full a:hover {
    border-bottom-color: transparent;
}

/* Featured blog posts (for homepage) */
.blog-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    margin-bottom: 2em;
}

.blog-featured-post {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.blog-featured-post:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(26, 98, 237, 0.3);
    transform: translateY(-2px);
}

.blog-featured-post h4 {
    margin-bottom: 0.5em;
}

.blog-featured-post h4 a {
    color: #fff;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s ease-in-out;
}

.blog-featured-post h4 a:hover {
    color: #1a62ed;
}

.blog-featured-post .blog-post-meta {
    margin-bottom: 0.8em;
}

.blog-featured-post .blog-post-excerpt {
    font-size: 0.95em;
    margin-bottom: 0;
}

.blog-view-all {
    text-align: center;
    margin-top: 2em;
}

.blog-view-all a {
    display: inline-block;
    padding: 0.8em 2em;
    background: rgba(26, 98, 237, 0.15);
    color: #1a62ed;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(26, 98, 237, 0.3);
    transition: all 0.3s ease;
}

.blog-view-all a:hover {
    background: rgba(26, 98, 237, 0.25);
    border-color: rgba(26, 98, 237, 0.5);
}

/* Responsive design */
@media screen and (max-width: 980px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 736px) {
    .blog-featured-post {
        padding: 1em;
    }
}
