/* Modern Related Share News Widget - Light Theme */

/* Widget Container */
.modern-share-news-widget {
    margin: 1.5rem 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.modern-widget-inner {
    position: relative;
}

/* Widget Header */
.modern-widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 18px 24px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.widget-icon {
    color: #ee7601;
    flex-shrink: 0;
}

.modern-widget-title {
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    letter-spacing: -0.025em;
}

/* Articles List */
.modern-share-articles-list {
    padding: 0;
}

.modern-share-article-item {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.modern-share-article-item:last-child {
    border-bottom: none;
}

.modern-share-article-item:hover {
    background-color: #f9fafb;
}

.modern-share-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.modern-share-article-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Article Date */
.modern-share-article-date {
    flex-shrink: 0;
    text-align: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 50px;
}

.date-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.date-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 500;
}

/* Article Text */
.modern-share-article-text {
    flex: 1;
    min-width: 0;
}

.modern-share-article-title {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 6px 0;
    line-height: 1.5;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-share-article-item:hover .modern-share-article-title {
    color: #ee7601;
}

/* Article Meta */
.modern-share-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.meta-category {
    color: #ee7601;
    font-weight: 500;
}

.meta-time::before {
    content: "•";
    margin-right: 8px;
    color: #d1d5db;
}

/* View All Link */
.modern-view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.modern-view-all-link:hover {
    background: #f3f4f6;
    color: #ee7601;
}

.modern-view-all-link svg {
    transition: transform 0.15s ease;
}

.modern-view-all-link:hover svg {
    transform: translateX(3px);
}

/* No Articles State */
.modern-no-articles {
    padding: 32px 24px;
    text-align: center;
}

.modern-no-articles p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Override old styles */
.related-share-news-widget {
    display: none !important;
}

/* Mobile specific fixes */
.device-medium .modern-share-news-widget,
.device-small .modern-share-news-widget {
    margin: 20px 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-share-news-widget {
        margin: 1rem 0;
    }

    .modern-widget-header {
        padding: 16px 20px;
    }

    .modern-widget-title {
        font-size: 16px;
    }

    .modern-share-article-link {
        padding: 15px 10px;
    }

    .modern-share-article-content {
        gap: 12px;
    }

    .modern-share-article-date {
        min-width: 45px;
        padding: 6px 10px;
    }

    .date-value {
        font-size: 18px;
    }

    .date-label {
        font-size: 11px;
    }

    .modern-share-article-title {
        font-size: 14px;
    }

    .modern-share-article-meta {
        font-size: 12px;
    }

    .modern-view-all-link {
        padding: 14px 20px;
        font-size: 13px;
    }

    /* Ensure proper spacing for mobile widgets */
    .size-4 {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
}

@media (max-width: 480px) {

    .modern-share-article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .meta-time::before {
        display: none;
    }
}
