/* 
 * Post Items & Lists
 * Used for post cards, lists, grids, and placeholders.
 */

/* NO IMAGE placeholder - pure CSS replacement for noimage.png */
.no-image-placeholder {
    width: 98px;
    height: 98px;
    background-color: #f7f7f7;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
}

/* Approval: Ultra-subtle room perspective (Vanishing point at 25% 45%) */
.no-image-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Back Wall (Larger for shallower depth, light grey) */
        linear-gradient(#e0e0e0, #e0e0e0) 25% 45% / 37.5% 37.5% no-repeat,
        /* Perspective at 25% 45% (Ultra-Subtle / Half-of-Half contrast) */
        conic-gradient(from 0deg at 25% 45%, 
            #eeeeee 0deg 59.0deg,     /* Right Wall */
            #d4d4d4 59.0deg 126.3deg,   /* Floor */
            #e9e9e9 126.3deg 204.4deg, /* Left Wall */
            #dadada 204.4deg 330.9deg, /* Ceiling */
            #eeeeee 330.9deg 360deg    /* Right Wall completion */
        );
    filter: blur(2.5px);
}

/* Atmospheric light details */
.no-image-placeholder::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        /* Faint window light source */
        linear-gradient(rgba(255, 255, 255, 0.2), transparent) 80% 25% / 12% 35% no-repeat,
        /* Ambient floor glow */
        radial-gradient(ellipse at 70% 85%, rgba(255, 255, 255, 0.15), transparent 70%);
    filter: blur(2.5px);
}

.no-image-placeholder .label-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 3;
    color: rgba(0, 0, 0, 0.6);
    font-size: 15px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    pointer-events: none; /* Avoid interfering with clicks on the card */
}

/* ===== Posts Grid (2-column layout) ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.posts-grid-item {
    display: flex;
}


.post-category {
    margin: 3px 0 8px 0;
    padding: 0;
    font-size: 12px;
    font-weight: bold;
}

.post-content {
    display: flex;
    gap: 8px;
    flex-grow: 1;
}

.post-image {
    flex-shrink: 0;
}

.post-image img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.post-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 11px;
}

.post-address,
.post-author,
.post-date {
    margin: 2px 0;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.post-action {
    margin-top: auto;
    padding-top: 8px;
    text-align: right;
}

.post-action .btn {
    padding: 2px 6px;
    font-size: 11px;
}

.post-card {
    display: flex;
    flex-direction: column;
}
.post-card-header {
    background-color: #d9edf7;
    border-bottom: 1px solid #bce8f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.post-card-title {
    margin: 0;
    flex-grow: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.post-card-title a {
    text-decoration: none;
    font-weight: bold;
    color: #31708f;
}
.post-card-meta {
    flex-shrink: 0;
}
.post-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.post-card-table {
    font-size: 11px;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.post-card-media {
    margin-top: 0.5rem;
}
