/* pages/blog/blog-post.css */

/* Specific to single blog post pages */

.blog-post-page {
    font-family: "Georgia", serif;
    background-color: #0b0b0c;
    color: #eaeaec;
    line-height: 1.7;
    font-size: 16px;
    /*font-family: "Inter", "Segoe UI", Roboto, sans-serif;*/
    padding-bottom: 60px;
}

.blog-post-header {
    text-align: center;
    padding: 64px 16px 40px;
    background: linear-gradient(180deg, rgba(208, 179, 127, 0.08), rgba(0, 0, 0, 0));
}

.blog-post-header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: 0.3px;
}

.blog-post-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-style: italic;
    position: relative;
    /*color: #b5b5bd;*/
}

.blog-post {
    max-width: 880px;
    margin: 24px auto;
    padding: 0 16px;
}

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

.blog-post h2 {
    margin: 50px 0 24px;
    font-size: clamp(20px, 3vw, 26px);
    border-left: 3px solid #d0b37f;
    padding-left: 10px;
    color: #fff1dbab;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    background: linear-gradient(90deg, #d0b37f36, #ffffff00);
    /*-webkit-background-clip: text;*/
    /*-webkit-text-fill-color: transparent;*/
    text-shadow: -1px -2px 17px #b38c479e;
}

.blog-post h3 {
    margin: 28px 0 10px;
    font-size: clamp(18px, 2.6vw, 22px);
}

.blog-post strong {
    color: #fff;
}

.blog-post a {
    color: #d0b37f;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.blog-post a:hover {
    border-bottom-color: #d0b37f;
}

.blog-post ul {
    margin: 0 0 16px 20px;
}

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

/* Gallery */
.blog-post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.blog-post-figure {
    cursor: pointer;
    background: #121214;
    border: 1px solid #222328;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-post-image-sm {
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

.blog-post-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.blog-post-image-counter {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
}

.blog-post-figure:hover .blog-post-image {
    transform: scale(1.02);
}

/* Divider */
.blog-post-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #222328, transparent);
    border: none;
    margin: 40px 0;
}

/* Related */
.blog-post-related {
    background: #121214;
    border: 1px solid #222328;
    border-radius: 10px;
    padding: 16px;
}

.blog-post-related h3 {
    margin-top: 0;
    font-size: 18px;
}

.blog-post-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-post-related li a {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 6px;
    color: #d0b37f;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-post-related li a:hover {
    background: rgba(208, 179, 127, 0.1);
}

/* Light mode adjustment */
@media (prefers-color-scheme: light) {
    .blog-post-page {
        background-color: #ffffff;
        color: #1a1a1f;
    }

    .blog-post-header {
        background: linear-gradient(180deg, rgba(208, 179, 127, 0.1), transparent);
    }

    .blog-post a {
        color: #c29952;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post-header {
        padding: 48px 12px 28px;
    }

    .blog-post h2 {
        font-size: 22px;
    }

    .blog-post {
        padding: 0 12px;
    }
}

.blog-image-caption {
    padding: 8px;
    color: #d0b37f;

}

.blog-post-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin: 16px;
}