/**
 * Posters page - layout overrides
 * Same as Worksheets: card section width, sidebar, card size, New/Age badges
 */

/* Card section width */
.poster-categories .container {
    max-width: 1300px;
    padding: 0 24px;
}

/* Left sidebar */
.poster-categories .categories-sidebar {
    width: 300px;
    min-width: 300px;
}

/* Responsive - sidebar widths */
@media (max-width: 1400px) {
    .poster-categories .container {
        max-width: 1300px;
    }
    .poster-categories .categories-sidebar {
        width: 280px;
        min-width: 280px;
    }
}

@media (max-width: 1200px) {
    .poster-categories .container {
        max-width: 100%;
    }
    .poster-categories .categories-sidebar {
        width: 260px;
        min-width: 260px;
    }
}

@media (max-width: 992px) {
    .poster-categories .categories-sidebar {
        width: 240px;
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .poster-categories .categories-sidebar {
        width: 100%;
        min-width: auto;
        max-height: 320px;
    }
}

/* Card size - same as worksheets */
.poster-categories .thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.poster-categories .colouring-card,
.poster-categories .card-preview,
.poster-categories .preview-image,
.poster-categories .card-image {
    height: 396px;
    min-height: 396px;
}

.poster-categories .card-image {
    object-fit: cover;
    object-position: center;
}

/* New badge - same style as storybooks/worksheets */
.poster-categories .new-badge {
    position: absolute;
    top: 8px;
    right: -42px;
    left: auto;
    width: 140px;
    text-align: center;
    border-radius: 0;
    transform: rotate(40deg);
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

/* Age badge - above card-actions layer */
.poster-categories .card-age {
    position: absolute;
    bottom: 12px;
    right: -42px;
    left: auto;
    width: 140px;
    text-align: center;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    padding: 4px 10px;
    border-radius: 0;
    transform: rotate(-40deg);
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Hide binocular overlay - we have View button */
.poster-categories .card-overlay {
    display: none !important;
}
