/* Frontend CSS Grid Layout for Reading Logs - Version 1.1 */

.wibr-reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.wibr-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wibr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Positioning wrapper for image and overlapping badges */
.wibr-card-media-wrapper {
    position: relative;
    width: 100%;
}

.wibr-card-image {
    margin: 0;
    padding: 0;
    height: 180px;
    overflow: hidden;
    background: #f7fafc;
}

.wibr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wibr-card:hover .wibr-card-image img {
    transform: scale(1.03);
}

/* Placeholder container if an article has no image */
.wibr-card-no-image-placeholder {
    height: 60px; /* Shorter header area if no image is present */
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

/* Badge Positioning and Styling */
.wibr-badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 5;
}

.wibr-cat-badge {
    background: rgba(26, 32, 44, 0.85); /* Slick translucent dark background */
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px); /* Soft modern blur behind the text */
}

.wibr-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wibr-card-source {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3182ce;
    font-weight: 700;
    margin-bottom: 8px;
}

.wibr-card-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 600;
}

.wibr-card-title a {
    color: #1a202c;
    text-decoration: none;
}

.wibr-card-title a:hover {
    color: #3182ce;
}

.wibr-card-summary {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.wibr-card-meta {
    font-size: 0.8rem;
    color: #a0aec0;
    border-top: 1px solid #edf2f7;
    padding-top: 12px;
    margin-top: auto;
}

.wibr-no-posts {
    text-align: center;
    padding: 40px;
    background: #f7fafc;
    border-radius: 8px;
    color: #718096;
    font-style: italic;
}
