/* =========================================
   Featured Posts Plugin – Front-end Styles
   ========================================= */

/* Grid container */
.fpp-featured-posts {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.fpp-cols-1 { grid-template-columns: 1fr; }
.fpp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fpp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fpp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .fpp-cols-3,
    .fpp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .fpp-featured-posts { grid-template-columns: 1fr; }
}

/* Post card */
.fpp-post-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}
.fpp-post-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Thumbnail */
.fpp-thumb-link { display: block; overflow: hidden; }
.fpp-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.fpp-thumb-link:hover .fpp-thumbnail { transform: scale(1.05); }

/* Post body */
.fpp-post-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta */
.fpp-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}
.fpp-category a {
    background: #2563eb;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
}
.fpp-date { color: #9ca3af; }

/* Title */
.fpp-post-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}
.fpp-post-title a {
    color: #111827;
    text-decoration: none;
}
.fpp-post-title a:hover { color: #2563eb; }

/* Excerpt */
.fpp-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

/* Read more */
.fpp-read-more {
    display: inline-block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}
.fpp-read-more:hover { text-decoration: underline; }

/* No posts message */
.fpp-no-posts {
    padding: 16px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    color: #92400e;
}

/* =========================================
   Sidebar Widgets
   ========================================= */

/* Categories widget */
.fpp-widget-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fpp-widget-categories li {
    border-bottom: 1px solid #f3f4f6;
    padding: 8px 0;
}
.fpp-widget-categories li:last-child { border-bottom: none; }
.fpp-widget-categories a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}
.fpp-widget-categories a:hover { color: #2563eb; }
.fpp-cat-count {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 4px;
}

/* Recent posts widget */
.fpp-widget-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fpp-recent-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.fpp-recent-item:last-child { border-bottom: none; }

.fpp-recent-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.fpp-recent-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fpp-recent-content a {
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.fpp-recent-content a:hover { color: #2563eb; }
.fpp-recent-date {
    font-size: 11px;
    color: #9ca3af;
}
