/* Styles specific to the blog page */

.blog-main {
    padding-top: 10rem;
    width: 100%;
    max-width: 95%; 
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-post-card {
    background: rgba(var(--bg-color-rgb), 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.blog-post-card img {
    display: none;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.post-meta {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    margin-top: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    align-self: flex-start;
}

/* --- Styles for Single Post Page --- */

#post-content-container {
    max-width: 90%;
    margin: 0 auto;
    background: rgba(var(--bg-color-rgb), 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 4rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.post-full-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-full-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.post-full-image {
    display: none;
}

.post-full-content {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Styles for rendered Markdown content */
.post-full-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-full-content p {
    margin-bottom: 1.5rem;
}

.post-full-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.post-full-content ul, .post-full-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-full-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    opacity: 0.9;
}

.post-full-content code {
    background: rgba(var(--text-color-rgb), 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
}

.post-full-content pre {
    background: rgba(var(--text-color-rgb), 0.1);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* --- NEW STYLES for Custom Syntax --- */

/* Small Heading Style */
.post-full-content .small-heading {
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.8;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Spoiler Style */
.spoiler {
    background-color: var(--text-color);
    color: transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.spoiler.revealed,
.spoiler:hover {
    background-color: rgba(var(--text-color-rgb), 0.1);
    color: var(--text-color);
}
