/* Related Posts Widget Styles */

.dcs-related-posts-container {
    margin: 40px 0;
}

.dcs-related-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.dcs-related-posts-grid {
    display: grid;
    gap: 25px;
}

.dcs-related-posts-grid.columns-1 {
    grid-template-columns: 1fr;
}

.dcs-related-posts-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dcs-related-posts-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dcs-related-posts-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.dcs-related-post {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dcs-related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dcs-related-post .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.dcs-related-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dcs-related-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.dcs-related-post .post-content {
    padding: 20px;
}

.dcs-related-post .post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.dcs-related-post .post-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dcs-related-post .post-title a:hover {
    color: var(--accent-color);
}

.dcs-related-post .post-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.dcs-related-post .post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.dcs-related-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* Dark Mode */
body:not(.light-mode) .dcs-related-post {
    background: rgba(45, 45, 45, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body:not(.light-mode) .dcs-related-post:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Light Mode */
body.light-mode .dcs-related-post {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .dcs-related-posts-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dcs-related-posts-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dcs-related-posts-container {
        margin: 30px 0;
    }

    .dcs-related-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .dcs-related-posts-grid.columns-2,
    .dcs-related-posts-grid.columns-3,
    .dcs-related-posts-grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .dcs-related-post .post-content {
        padding: 15px;
    }

    .dcs-related-post .post-title {
        font-size: 16px;
    }
}