/* dotnetabhishek Blog - Custom Styles */

/* ===== Code Block Styling ===== */
pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    border: 1px solid #333;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

code {
    font-family: 'Courier New', Consolas, 'Liberation Mono', monospace;
}

/* Inline code (not inside pre) */
:not(pre) > code {
    background-color: #f0f0f0;
    color: #c7254e;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* ===== Blog Post Card Styling ===== */
.card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title a {
    color: #212529;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #0d6efd;
}

.card-footer {
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

/* ===== Social Sharing Buttons ===== */
.d-flex.gap-2 .btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 0.375rem;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.d-flex.gap-2 .btn-sm:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.d-flex.gap-2 .btn-sm i {
    margin-right: 0.25rem;
}

/* ===== Post Content Styling ===== */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

.post-content pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    border: 1px solid #333;
}

.post-content code {
    font-family: 'Courier New', Consolas, 'Liberation Mono', monospace;
}

/* ===== Navbar Customization ===== */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== Footer ===== */
footer {
    font-size: 0.9rem;
}

/* ===== Badge Styling ===== */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
}
