/*
 * ioann-karpovka AlbumCard (task 15). Markup: components/album-card.blade.php.
 * Design: docs/design/Site.dc.html?page=home, albums section (lines 245-257).
 * The card has no width of its own (the slider / grid sets it) and does not change between breakpoints.
 * If a breakpoint rule is ever needed: desktop = (min-width: 768px), mobile = `not all and (min-width: 768px)`; never max-width (task 36).
 */
.ik-album-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; color: var(--iskm-navy); }
.ik-album-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--iskm-cream-300);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ik-album-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ik-album-card__placeholder { width: 40px; height: 40px; opacity: .7; }
.ik-album-card__count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--iskm-cream-50);
    color: var(--iskm-navy);
    font: 500 13px/1 var(--font-body);
}
.ik-album-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ik-album-card__title { margin: 0; font: 600 24px/1.15 var(--font-title); color: var(--iskm-navy); text-wrap: balance; overflow-wrap: break-word; }
.ik-album-card__link { color: inherit; text-decoration: none; outline: none; }
/* Hover only scales the cover: the title keeps its colour (overrides the global a:hover). */
.ik-album-card__link:hover { color: inherit; }
/* Stretched link: the whole card is one tab stop. */
.ik-album-card__link::after { content: ""; position: absolute; inset: 0; }
.ik-album-card__link:focus-visible::after {
    outline: 2px solid var(--iskm-teal);
    outline-offset: 3px;
    border-radius: var(--radius-card);
}
.ik-album-card__date { font: 400 14px/1.4 var(--font-body); color: var(--iskm-mauve-700); }
@media (hover: hover) {
    .ik-album-card:hover .ik-album-card__img { transform: scale(1.03); }
}
