/* ========================================
   BLOG PAGE STYLES (Blog.razor)
   ======================================== */

/* Blog page header */
.title {
    font-size: 2rem;
    text-align: center;
}

.text {
    font-size: 1.2rem;
}

/* Blog posts list styles */
.blog-posts-list {
    margin: 0 auto;
}

.blog-post-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

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

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

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
}

.blog-post-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title-link:hover {
    color: var(--bs-body-color);
    text-decoration: underline;
}

.blog-post-meta {
    margin-bottom: 0;
}

.blog-post-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.blog-post-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    text-decoration: none;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-image:hover {
    transform: scale(1.05);
}

.blog-post-text {
    flex: 1;
    min-width: 0;
}

.blog-post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

.read-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.read-more-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ========================================
   BLOG POST PAGE STYLES (BlogPost.razor)
   ======================================== */

.post-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-title {
    color: #333;
    line-height: 1.2;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Обмеження розміру зображень в контенті посту */
.blog-content img {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
}

/* Стилі для посилань в блог контенті */
.blog-content a {
    color: var(--bs-body-color) !important;
    text-decoration: underline;
}

.blog-content a:hover {
    color: var(--bs-body-color) !important;
    opacity: 0.8;
}

/* Стилі для цитат в блог контенті */
.blog-content blockquote {
    border-left: 4px solid #0d6efd !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin: 1rem 0 !important;
    background-color: #fff1ea !important;
    font-style: italic !important;
    color: #495057 !important;
}

.blog-content blockquote p {
    margin-bottom: 0.5rem;
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Стилі для YouTube відео */
.blog-content iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Mobile responsive for blog list */
@media (max-width: 768px) {
    .blog-post-content {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-post-image {
        width: 100%;
        height: 200px;
    }

    .blog-post-title {
        font-size: 1.3rem;
    }

    .blog-content iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .post-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

