/* Entry Meta Callout Boxes */
.entry-meta-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #37BF91;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.92em;
    line-height: 1.6;
}

.entry-meta-box p {
    margin: 4px 0;
    color: #444;
}

.entry-meta-box strong {
    color: #222;
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .entry-meta-box {
        background: linear-gradient(135deg, #1a1d21 0%, #2d3238 100%);
        border-left-color: #37BF91;
    }
    .entry-meta-box p { color: #ccc; }
    .entry-meta-box strong { color: #fff; }
}

/* Better entry spacing */
.post-content h2,
.post-text h2 {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
}

.post-content h2:first-of-type,
.post-text h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Better image presentation in posts */
.post-content figure,
.post-text figure {
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.post-content figure img,
.post-text figure img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-content figure:hover img,
.post-text figure:hover img {
    transform: scale(1.01);
}

.post-content figcaption,
.post-text figcaption {
    padding: 8px 12px;
    font-size: 0.85em;
    color: #666;
    background: #f8f9fa;
    text-align: center;
}

/* Better code styling in posts */
.post-content code,
.post-text code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d63384;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* CodePen embed improvements */
.post-content .cp_embed_wrapper,
.post-text .cp_embed_wrapper {
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Table of contents style numbering for entries */
.post-content > h2,
.post-text > h2 {
    position: relative;
}

/* Better list styling in entries */
.post-content ul li,
.post-text ul li {
    position: relative;
    padding-left: 0.5em;
    margin-bottom: 0.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entry-meta-box {
        padding: 12px 14px;
        font-size: 0.88em;
    }

    .entry-meta-box strong {
        display: block;
        margin-bottom: 2px;
    }

}
/* ========================================
   Post Button Styles (.post-btn)
   ======================================== */

a.post-btn,
.post-content a.post-btn,
.post-text a.post-btn,
#content a.post-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    margin: 4px 6px 4px 0;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    line-height: 1.4;
    border: none;
    cursor: pointer;
}

/* Download / Info button */
a.post-btn.dwn,
.post-content a.post-btn.dwn,
.post-text a.post-btn.dwn,
#content a.post-btn.dwn {
    background: #333;
    color: #fff !important;
    border: 2px solid #333;
}

a.post-btn.dwn:hover,
.post-content a.post-btn.dwn:hover,
.post-text a.post-btn.dwn:hover,
#content a.post-btn.dwn:hover {
    background: #555;
    color: #fff !important;
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Demo / Preview button */
a.post-btn.prw,
.post-content a.post-btn.prw,
.post-text a.post-btn.prw,
#content a.post-btn.prw {
    background: #37BF91;
    color: #fff !important;
    border: 2px solid #37BF91;
}

a.post-btn.prw:hover,
.post-content a.post-btn.prw:hover,
.post-text a.post-btn.prw:hover,
#content a.post-btn.prw:hover {
    background: #2ea57d;
    color: #fff !important;
    border-color: #2ea57d;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(55, 191, 145, 0.35);
}

/* Button group wrapper */
p:has(.post-btn) {
    margin: 16px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .post-btn {
        display: block;
        text-align: center;
        margin: 6px 0;
        padding: 12px 20px;
    }

    p:has(.post-btn) {
        flex-direction: column;
    }
}