/* Blog specific styles */

/* Blog cards */
.blog-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    background: white;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-img-placeholder {
    height: 200px;
    background: rgba(108, 117, 125, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.blog-card .card-text {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Blog post detail */
.post-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/website/images/market-pattern.svg');
    opacity: 0.1;
}

.post-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.post-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.post-meta i {
    margin-left: 0.5rem;
    margin-right: 0.25rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.post-featured-image {
    border-radius: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Blog sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.blog-sidebar .card-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.blog-sidebar .list-group-item {
    border: none;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.blog-sidebar .list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Blog tags */
.blog-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    margin: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Blog carousel */
.carousel-img {
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* Blog forms */
.blog-form-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.blog-form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/website/images/market-pattern.svg');
    opacity: 0.1;
}

.blog-form-body {
    padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .carousel-img {
        height: 300px;
    }

    .blog-sidebar {
        margin-top: 2rem;
        position: static;
    }
}