/**
 * WPSolution Latest & Popular Post - Frontend Styles
 *
 * @package WPSolution_Latest_Popular_Post
 * @since 1.0.0
 */

/* =============================================
   Container Wrapper
   ============================================= */
.wpsolution-lpp-wrapper {
    background-color: #f2f2f2;
    border: 1px solid #cfd4d6;
    border-radius: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* =============================================
   Tab Navigation
   ============================================= */
.wpsolution-lpp-tab-nav {
    display: flex;
    border-bottom: 1px solid #9ca9b0;
    background-color: #d7dde0;
}

.wpsolution-lpp-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #d7dde0;
    color: #111111;
    position: relative;
    line-height: 1.4;
    margin: 0;
    font-family: inherit;
}

.wpsolution-lpp-tab-btn:hover {
    opacity: 0.9;
}

.wpsolution-lpp-tab-btn.wpsolution-lpp-tab-active {
    background-color: #0f4e6a;
    color: #ffffff;
}

.wpsolution-lpp-tab-btn:first-child {
    border-right: 1px solid #7c8c94;
}

/* Active tab indicator */
.wpsolution-lpp-tab-btn.wpsolution-lpp-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0f4e6a;
}

/* =============================================
   Tab Content
   ============================================= */
.wpsolution-lpp-tab-content {
    padding: 0;
}

.wpsolution-lpp-tab-panel {
    animation: wpsolutionLppFadeIn 0.3s ease-in-out;
}

@keyframes wpsolutionLppFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Post Item
   ============================================= */
.wpsolution-lpp-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
    border-bottom: 1px solid #a9be8f;
    transition: background-color 0.2s ease;
}

.wpsolution-lpp-post-item:last-child {
    border-bottom: none;
}

.wpsolution-lpp-post-item:hover {
    background-color: #ececec;
}

/* =============================================
   Thumbnail
   ============================================= */
.wpsolution-lpp-thumbnail {
    flex-shrink: 0;
    min-width: 80px;
}

.wpsolution-lpp-thumbnail a {
    display: block;
    line-height: 0;
}

.wpsolution-lpp-thumbnail img,
.wpsolution-lpp-thumb-img {
    width: 80px;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpsolution-lpp-thumbnail a:hover img {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* =============================================
   Post Info
   ============================================= */
.wpsolution-lpp-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wpsolution-lpp-post-title {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.wpsolution-lpp-post-title a {
    color: #111111;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    display: block;
    transition: color 0.2s ease;
}

.wpsolution-lpp-post-title a:hover {
    color: #0f4e6a;
}

/* Excerpt */
.wpsolution-lpp-post-excerpt {
    margin: 4px 0 0;
    padding: 0;
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
}

/* =============================================
   No Posts Message
   ============================================= */
.wpsolution-lpp-no-posts {
    padding: 20px;
    text-align: center;
    color: #999999;
    font-size: 14px;
}

/* =============================================
   Branding
   ============================================= */
.wpsolution-lpp-branding {
    text-align: center;
    padding: 6px 10px;
    border-top: 1px solid #e5e5e5;
    background-color: #fafafa;
}

.wpsolution-lpp-branding a {
    color: #aaaaaa;
    font-size: 11px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.wpsolution-lpp-branding a:hover {
    color: #d0021b;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 480px) {
    .wpsolution-lpp-tab-btn {
        font-size: 13px;
        padding: 8px 10px;
    }

    .wpsolution-lpp-thumbnail img,
    .wpsolution-lpp-thumb-img {
        width: 60px;
        height: auto;
    }

    .wpsolution-lpp-thumbnail {
        min-width: 60px;
    }

    .wpsolution-lpp-post-title a {
        font-size: 13px;
    }

    .wpsolution-lpp-post-item {
        gap: 8px;
        padding: 10px;
    }
}
