/**
 * MD Inline Related Posts - Beautiful Theme Style
 * Author: MINOANDESIGN
 * Version: 1.0.2
 * Last Modified: 2025-09-26
 */

.md-inline-related-post {
    margin: 30px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.3s ease;
}

.md-inline-related-post:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.md-inline-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.md-inline-related-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.md-inline-related-label {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.8px;
}

.md-inline-related-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.md-inline-related-image {
    flex: 0 0 100px;
    height: 75px;
    overflow: hidden;
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.md-inline-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.md-inline-related-image:hover img {
    transform: scale(1.05);
}

h3.md-inline-related-title,
.md-inline-related-title {
    margin: 0 !important;
    font-family: "Gotham Narrow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    flex: 1;
    display: flex;
    align-items: center;
}

.md-inline-related-title a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    font-family: "Gotham Narrow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    transition: color 0.2s ease;
}

.md-inline-related-title a:hover {
    color: #d9000e !important;
    text-decoration: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .md-inline-related-post {
        margin: 20px -10px;
        padding: 12px;
        border-radius: 0;
    }
    
    .md-inline-related-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .md-inline-related-image {
        flex: 0 0 90px;
        height: 65px;
    }
    
    .md-inline-related-title {
        font-size: 16px !important;
        flex: 1;
    }
    
    .md-inline-related-title a {
        font-size: 16px !important;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .md-inline-related-post {
        background: #1a1a1a;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .md-inline-related-post:hover {
        background: #222;
    }
    
    .md-inline-related-header {
        border-bottom-color: #333;
    }
    
    .md-inline-related-label {
        color: #999;
    }
    
    .md-inline-related-title a {
        color: #ddd !important;
    }
    
    .md-inline-related-title a:hover {
        color: #d9000e !important;
    }
}