/* Admire Custom Widgets Styles */

/* Grid Layout */
.admire-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.admire-post-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admire-post-card:hover {
    transform: translateY(-5px);
}

.admire-post-thumbnail {
    position: relative;
    overflow: hidden;
    /* Aspect ratio is handled by widget control */
}

.admire-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.admire-post-card:hover .admire-post-thumbnail img {
    transform: scale(1.05);
}

.admire-post-badge {
    background: #7442cb;
    /* New Accent */
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

/* Grid View specific */
.admire-badge-on-image {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.admire-badge-list-view {
    display: none;
    /* Hidden by default in Grid */
}

.admire-post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.admire-post-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.admire-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.admire-post-title a:hover {
    color: #7442cb;
    /* New Accent */
}

.admire-post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admire-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admire-post-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.admire-post-footer {
    margin-top: auto;
}

.admire-read-more {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.admire-read-more:hover {
    color: #7442cb;
    /* New Accent */
}

/* List Layout */
.admire-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admire-posts-list .admire-post-card {
    flex-direction: row-reverse;
    align-items: stretch;
}

.admire-posts-list .admire-post-thumbnail {
    width: 35%;
    padding-top: 0;
    flex-shrink: 0;
}

.admire-posts-list .admire-post-thumbnail img {
    height: 100%;
}

.admire-posts-list .admire-post-content {
    width: 65%;
    justify-content: center;
}

/* Responsive List */
@media (max-width: 768px) {
    .admire-posts-list .admire-post-card {
        flex-direction: column;
    }

    .admire-posts-list .admire-post-thumbnail {
        width: 100%;
        padding-top: 60%;
    }

    .admire-posts-list .admire-post-content {
        width: 100%;
    }
}

/* List View Badge Overrides */
.admire-posts-list .admire-badge-on-image {
    display: none !important;
}

.admire-posts-list .admire-badge-list-view {
    display: inline-block !important;
    /* Force show in List view */
    margin-bottom: 15px;
    width: fit-content;
}

/* Pagination */
.admire-pagination {
    margin-top: 40px;
    text-align: center;
}

.admire-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s;
}

.admire-pagination .page-numbers.current,
.admire-pagination .page-numbers:hover {
    background: #7442cb;
    /* New Accent */
    color: #fff;
    border-color: #7442cb;
    /* New Accent */
}

/* Categories Colors (Demo) */
.cat-fashion {
    background: #7442cb;
}

.cat-tech {
    background: #2196F3;
}

.cat-travel {
    background: #4CAF50;
}