/**
 * Wikaz Post List Styles
 */

.wikaz-post-list-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Search Bar Styling */
.wikaz-post-search-wrap {
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.wikaz-post-search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.wikaz-post-search-form input[type="text"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.wikaz-post-search-form input[type="text"]:focus {
    border-color: #333;
    background: #fff;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wikaz-post-search-form button {
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wikaz-post-search-form button:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Post List Items */
.wikaz-post-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wikaz-post-item {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.wikaz-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.wikaz-post-thumb {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.wikaz-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wikaz-post-item:hover .wikaz-post-thumb img {
    transform: scale(1.1);
}

.wikaz-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wikaz-post-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.wikaz-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.wikaz-post-title a:hover {
    color: #555;
}

.wikaz-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #888;
}

.wikaz-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    font-size: 14px;
    opacity: 0.8;
}

.wikaz-post-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Compatibility for Theme Archive Pages */
.wrap-blog-article {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wikaz-post-item.blog-post {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    padding: 20px;
    margin-bottom: 0;
    border: 1px solid #f0f0f0;
    align-items: flex-start;
}

.wikaz-post-item.blog-post .featured-post,
.wikaz-post-item.blog-post .entry_image {
    width: 250px !important;
    /* Slightly larger thumbnail for theme content */
    height: 180px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border-radius: 12px;
    overflow: hidden;
}

.wikaz-post-item.blog-post .featured-post img,
.wikaz-post-item.blog-post .entry_image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

.wikaz-post-item.blog-post .blog-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wikaz-post-item.blog-post .entry-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.wikaz-post-item.blog-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0 12px 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #888;
    border: none;
}

.wikaz-post-item.blog-post .entry-meta li {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.wikaz-post-item.blog-post .entry-meta .br-line {
    display: none;
}

.wikaz-post-item.blog-post .entry-meta li.entry_author .avatar {
    display: none;
    /* Hide theme avatar for consistency */
}

/* Add icons to theme meta if they don't have them */
.wikaz-post-item.blog-post .entry-meta li.entry_author::before {
    content: "👤";
    font-size: 14px;
    opacity: 0.8;
}

.wikaz-post-item.blog-post .entry-meta li.entry_date::before {
    content: "📅";
    font-size: 14px;
    opacity: 0.8;
}

.wikaz-post-item.blog-post .entry-meta li.entry_comment::before {
    content: "💬";
    font-size: 14px;
    opacity: 0.8;
}

.wikaz-post-item.blog-post .entry-content p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Pagination */
.wikaz-post-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wikaz-post-pagination a,
.wikaz-post-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #eee;
}

.wikaz-post-pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.wikaz-post-pagination a:hover {
    border-color: #333;
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 600px) {

    .wikaz-post-item,
    .wikaz-post-item.blog-post {
        flex-direction: column;
        gap: 20px;
    }

    .wikaz-post-thumb,
    .wikaz-post-item.blog-post .featured-post,
    .wikaz-post-item.blog-post .entry_image {
        width: 100% !important;
        height: 200px !important;
    }
}