/* ============================================
 * Module: Blog
 * Source views: index, show, _gallery
 * ============================================ */

/* --- index.blade.php --- */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}
.card-title a:hover {
    color: #0d6efd !important;
}
.blog-list-item,
.blog-list-alt-item {
    transition: box-shadow 0.2s ease;
}
.blog-list-item:hover,
.blog-list-alt-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}
/* Minimal layout */
.blog-minimal-item {
    transition: background-color 0.2s ease;
}
.blog-minimal-item:hover {
    background-color: #f8f9fa;
}
.blog-minimal-title:hover {
    color: #0d6efd !important;
}
/* Minimal with thumb */
.blog-minimal-thumb {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}
.blog-minimal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.blog-minimal-thumb:hover img {
    transform: scale(1.05);
}
.blog-minimal-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.5rem;
}
/* List alt layout */
.blog-list-alt-item .card-body {
    padding: 1.5rem 2rem;
}

/* --- show.blade.php --- */
.blog-hero-background {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
}
.blog-hero-background .hero-overlay-link {
    text-decoration: none;
    display: block;
}
.blog-hero-background .hero-overlay {
    background: rgba(0,0,0,0.6);
    min-height: 400px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}
.blog-hero-background:hover .hero-overlay {
    background: rgba(0,0,0,0.5);
}
.post-content { font-size: 1.1rem; line-height: 1.8; max-width: 780px; }
.post-content p { margin-bottom: 1.5rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 0.375rem; margin: 1rem 0; }
.post-content.full-width { max-width: none; }
.post-content h2, .post-content h3, .post-content h4 { margin-top: 2rem; margin-bottom: 1rem; }
.post-content blockquote { border-left: 4px solid #0d6efd; padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: #6c757d; }
.post-content ul, .post-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.post-content li { margin-bottom: 0.5rem; }
/* Cover image with gallery indicator */
.cover-figure {
    position: relative;
}
.cover-figure a {
    display: block;
    position: relative;
}
.cover-figure img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.cover-figure:hover img {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.blog-hero-cover {
    position: relative;
}
.blog-hero-cover a {
    display: block;
    position: relative;
}
.blog-hero-cover img {
    transition: filter 0.3s ease;
}
.blog-hero-cover:hover img {
    filter: brightness(0.95);
}
.gallery-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.3s ease;
}
.gallery-indicator i {
    margin-right: 5px;
}
.cover-figure:hover .gallery-indicator,
.blog-hero-cover:hover .gallery-indicator {
    background: rgba(0,0,0,0.85);
    transform: scale(1.05);
}

/* Floating left ad */
.ad-floating-left {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    max-width: 160px;
}
@media (max-width: 1400px) {
    .ad-floating-left { display: none !important; }
}

/* Ad positions */
.ad-position { text-align: center; }
.ad-position img { max-width: 100%; height: auto; }
