/* Kocięta - Frontend Styles */

/* ─── Siatka miotów ─── */
.kocieta-litters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.kocieta-litter-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.kocieta-litter-tile:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ─── Nagłówek miotu (litera) ─── */
.kocieta-litter-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kocieta-litter-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ─── Rodzice ─── */
.kocieta-litter-parents {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.kocieta-parent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 150px;
    overflow: hidden;
}

.kocieta-parent a {
    display: block;
    line-height: 0;
    overflow: hidden;
    width: 150px;
    height: 150px;
}

.kocieta-parent a:hover .kocieta-parent-photo {
    transform: scale(1.03);
}

.kocieta-parent img.kocieta-parent-photo,
.kocieta-parent-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.kocieta-parent-name {
    font-weight: 600;
    font-size: 16px;
}

.kocieta-parent-names {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Placeholder gdy brak zdjęcia */
.kocieta-placeholder {
    width: 150px;
    height: 150px;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.kocieta-placeholder::after {
    content: 'Brak zdjęcia';
    font-size: 12px;
}

/* ─── Data urodzenia ─── */
.kocieta-litter-date {
    margin: 10px 0;
    font-size: 15px;
}

/* ─── Przycisk ─── */
.kocieta-btn {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.kocieta-btn:hover {
    text-decoration: none;
}

/* ─── Strona pojedynczego miotu ─── */
.kocieta-litter-single {
    max-width: 1000px;
    margin: 0 auto;
}

.kocieta-litter-single .kocieta-litter-parents {
    margin-bottom: 20px;
}

.kocieta-litter-single .kocieta-parent {
    width: 300px;
}

.kocieta-litter-single .kocieta-parent a {
    width: 300px;
    height: 300px;
}

.kocieta-litter-single .kocieta-parent img.kocieta-parent-photo,
.kocieta-litter-single .kocieta-parent-photo {
    width: 300px;
    height: 300px;
}

.kocieta-litter-single .kocieta-placeholder {
    width: 300px;
    height: 300px;
}

.kocieta-litter-single .kocieta-litter-date {
    font-size: 17px;
    margin: 15px 0;
}

.kocieta-litter-single .kocieta-btn {
    margin-bottom: 30px;
}

/* ─── Nagłówek kociąt ─── */
.kocieta-kittens-heading {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ─── Siatka kociąt ─── */
.kocieta-kittens-grid {
    display: grid;
    gap: 20px;
}

.kocieta-kitten-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.kocieta-kitten-tile:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ─── Zdjęcie kociaka ─── */
.kocieta-kitten-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 10px;
}

.kocieta-kitten-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.kocieta-kitten-photo:hover img {
    transform: scale(1.05);
}

.kocieta-kitten-photo .kocieta-placeholder {
    width: 100%;
    height: 100%;
}

/* ─── Info kociaka ─── */
.kocieta-kitten-info {
    padding: 5px 0;
}

.kocieta-kitten-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.kocieta-kitten-detail {
    font-size: 14px;
    margin-bottom: 3px;
}

.kocieta-kitten-label {
    font-weight: 600;
}

/* ─── Status badge kociaka ─── */
.kocieta-kitten-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-top: 5px;
}

.kocieta-kitten-status--wolny {
    background-color: #27ae60;
}

.kocieta-kitten-status--opcja {
    background-color: #f39c12;
}

.kocieta-kitten-status--rezerwacja {
    background-color: #e74c3c;
}

.kocieta-kitten-status--zostaje {
    background-color: #3498db;
}

/* ─── Brak wyników ─── */
.kocieta-no-results {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 30px;
}

/* ─── Lightbox ─── */
.kocieta-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.kocieta-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.kocieta-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.kocieta-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
}

.kocieta-lightbox-close:hover {
    color: #ddd;
}

/* ─── Responsywność ─── */
@media (max-width: 768px) {
    .kocieta-litters-grid {
        grid-template-columns: 1fr;
    }

    .kocieta-kittens-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .kocieta-litter-parents {
        flex-direction: column;
        align-items: center;
    }

    .kocieta-parent {
        width: 120px;
    }

    .kocieta-parent a {
        width: 120px;
        height: 120px;
    }

    .kocieta-parent img.kocieta-parent-photo,
    .kocieta-parent-photo {
        width: 120px;
        height: 120px;
    }

    .kocieta-placeholder {
        width: 120px;
        height: 120px;
    }

    .kocieta-litter-single .kocieta-parent {
        width: 200px;
    }

    .kocieta-litter-single .kocieta-parent a {
        width: 200px;
        height: 200px;
    }

    .kocieta-litter-single .kocieta-parent img.kocieta-parent-photo,
    .kocieta-litter-single .kocieta-parent-photo {
        width: 200px;
        height: 200px;
    }

    .kocieta-litter-single .kocieta-placeholder {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .kocieta-kittens-grid {
        grid-template-columns: 1fr !important;
    }
}
