/**
 * LinkSEO - Unified Posts Shortcode Styles
 */

.linkseo-posts {
    margin-bottom: 20px;
}

.linkseo-posts .linkseo-widget-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.linkseo-posts ul.linkseo-posts-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 15px;
}

.linkseo-posts .linkseo-post-item {
    margin: 0 !important;
    padding: 0;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: none;
}

.linkseo-posts .linkseo-post-item:hover {
    transform: none;
    box-shadow: none;
}

.linkseo-posts .linkseo-post-item:last-child {
    margin-bottom: 0;
}

/* Global Item Elements within Shortcode */
.linkseo-posts .linkseo-post-title {
    display: block;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.linkseo-posts .linkseo-post-date,
.linkseo-posts .linkseo-click-count {
    display: block;
    font-size: 0.85em;
    color: #777;
    margin-top: 4px;
}

/* Template: List (Default) */
.linkseo-template-list .linkseo-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    width: 100%;
}

.linkseo-template-list .linkseo-post-thumbnail {
    flex-shrink: 0;
    margin-right: 15px;
    width: 80px;
    height: 80px;
}

.linkseo-template-list .linkseo-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.linkseo-template-list .linkseo-post-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.linkseo-template-list .linkseo-post-title {
    font-weight: 700;
    margin: 0 0 6px 0 !important;
    font-size: 1.1em;
    color: #333;
}

.linkseo-template-list .linkseo-post-title:hover {
    color: #0073aa;
}

/* Template: Simple (No thumbnails) */
.linkseo-template-simple .linkseo-post-item {
    padding-bottom: 8px;
    border-bottom: none;
    display: block;
}

.linkseo-template-simple .linkseo-post-item:last-child {
    border-bottom: none;
}

/* Template: Card */
.linkseo-template-card .linkseo-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    width: 100%;
    gap: 20px;
    align-items: start;
}

.linkseo-template-card .linkseo-post-item {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
    background: transparent;
    height: 100%;
    margin: 0 !important;
    padding: 0;
}

.linkseo-template-card .linkseo-post-item:hover {
    transform: none;
    box-shadow: none;
}

.linkseo-template-card .linkseo-post-thumbnail {
    width: 100%;
    height: 150px;
    margin-right: 0;
}

.linkseo-template-card .linkseo-post-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.linkseo-template-card .linkseo-post-title {
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.linkseo-posts .linkseo-post-excerpt {
    font-size: 0.9em;
    color: #555;
    margin-top: 8px;
    line-height: 1.5;
}