/* static/css/blog.css */

/* Blog gönderi içeriği için genel stiller */
.blog-post-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
}

.blog-post-content h2,
.blog-post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    color: #1565c0; /* Ana tema rengiyle uyumlu */
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul {
    list-style: none;
    padding-left: 0;
}

/* Blog içindeki işletme listesi için özel stiller */
.blog-list-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

@media (min-width: 768px) {
    .blog-list-item {
        flex-direction: row;
    }
}

.blog-list-item:last-child {
    border-bottom: none;
}

.blog-list-item__image-link {
    display: block;
    flex-shrink: 0;
    width: 100%;
    max-width: 250px; /* Resim genişliği */
    height: 180px;
    margin: 0 auto; /* Mobilde ortala */
}

@media (min-width: 768px) {
    .blog-list-item__image-link {
        width: 220px;
        height: 150px;
        margin: 0;
    }
}

.blog-list-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-list-item__image-link:hover .blog-list-item__image {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.blog-list-item__content {
    flex-grow: 1;
}

.blog-list-item__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1565c0;
}

.blog-list-item__meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-list-item__description {
    margin-bottom: 1rem;
    color: #444;
}

.blog-list-item__link {
    display: inline-block;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-list-item__link:hover {
    color: #0056b3;
    text-decoration: underline;
}
