/* Blog Styles - Elegant Black & White Theme */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* General Blog Styles */
.blog-container {
    font-family: 'Montserrat', sans-serif;
    color: #212529;
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtle-shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: none !important;
}

.subtle-shadow:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: #ffffff;
}

.card-header {
    background-color: #000 !important;
    color: #fff !important;
    padding: 1rem 1.5rem;
    font-family: 'Playfair Display', serif;
    border-bottom: none;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #555;
}

/* Button Styles */
.btn-primary {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    border-radius: 0.25rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #333 !important;
    border-color: #333 !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2) !important;
}

.btn-outline-secondary {
    border-color: #ccc;
    color: #666;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f5f5f5;
    color: #000;
    border-color: #aaa;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.tag-link {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 2rem;
    color: #666;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tag-link:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Comments Styling */
.comments-list .flex-shrink-0 img {
    border: 2px solid #eee;
    border-radius: 50%;
}

.comments-list .fw-bold {
    font-family: 'Playfair Display', serif;
    color: #000;
}

.reply-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* Post Content */
.post-content {
    line-height: 1.9;
    font-size: 1.05rem;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #000;
}

.post-content blockquote {
    border-left: 4px solid #000;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f9f9f9;
    font-style: italic;
    color: #444;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #eee;
}

.post-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    border: 1px solid #eee;
}

.post-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Post Header */
.post-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.post-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Featured Posts Carousel */
.carousel-item {
    height: 450px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    filter: brightness(0.85);
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0.25rem;
    padding: 1.5rem;
    max-width: 80%;
    margin: 0 auto;
    bottom: 3rem;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    margin: 0 5px;
}

/* Post Categories Display */
.post-categories {
    margin-bottom: 0.75rem;
}

.post-categories .badge {
    margin-right: 0.375rem;
    padding: 0.5em 0.8em;
    font-weight: 500;
    background-color: #000 !important;
    color: #fff;
    border-radius: 0.25rem;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Sidebar Widgets */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.blog-sidebar .card {
    margin-bottom: 2rem;
}

.sidebar-heading {
    font-size: 1.25rem;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Archive Navigation */
.archive-nav .accordion-button {
    background-color: transparent;
    color: #333;
    box-shadow: none;
    padding: 0.75rem 1rem;
}

.archive-nav .accordion-button:not(.collapsed) {
    background-color: #f8f8f8;
    color: #000;
    font-weight: 600;
}

.archive-nav .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.archive-nav .list-group-item {
    border: none;
    padding: 0.5rem 1rem;
}

.archive-nav .badge {
    background-color: #eee;
    color: #555;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination .page-link {
    color: #000;
    border-color: #eee;
    padding: 0.5rem 1rem;
}

.pagination .page-item.active .page-link {
    background-color: #000;
    border-color: #000;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
}

/* Search form styling */
.search-form .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    border-color: #eee;
    padding: 0.625rem 1rem;
}

.search-form .btn {
    border-radius: 0 0.25rem 0.25rem 0;
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Social sharing */
.social-sharing .btn {
    margin-right: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
}

/* Lead paragraph */
.lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
    border-left: 3px solid #000;
    padding-left: 1.5rem;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
    }

    .post-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-caption {
        position: static;
        padding: 1rem;
        background-color: rgba(0, 0, 0, 0.9);
        border-radius: 0;
        max-width: 100%;
    }

    .carousel-item {
        height: 300px;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }
}