/*
ThemeWarrior Custom CSS
------------------
Custom styles for Best AI Tool Finder - UpVote theme
*/

/* ========== RECOMMENDED STORIES - 3 Column Grid ========== */
.recommended-stories .three-column-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.recommended-stories .three-column-posts .grid-item {
    flex: 1 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    min-width: 200px;
}

.recommended-stories .three-column-posts .grid-item .post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.recommended-stories .three-column-posts .grid-item .post-category {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== POPULAR STORIES - Horizontal Layout ========== */
/* Fix: post-thumbnail is an <a> tag in content.php, not .thumbnail */
.popular-stories article .post-row-wrap {
    overflow: hidden;
}

.popular-stories article a.post-thumbnail {
    float: left !important;
    width: 90px !important;
    height: 68px !important;
    overflow: hidden !important;
    margin-right: 20px !important;
    display: block !important;
}

.popular-stories article a.post-thumbnail img.thumbnail-img {
    width: 90px !important;
    height: 68px !important;
    object-fit: cover !important;
    display: block !important;
}

.popular-stories article .detail {
    overflow: hidden !important;
}

/* ========== VOTE BOX - Single Post Fix ========== */
.vote-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.vote-box #icon-unlike {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}