﻿
.badge-size-custom {
    height: 28.1px;
    width: 28.1px;
}

.app-btn-padding-small {
    padding-top: 0.03rem;
    padding-bottom: 0.03rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.text-truncate-custom {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.img-container {
    height: 200px;
    overflow: hidden;
}

.img-zoom {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

/* Стили для карточек книг */
.background-color .card {
    background: linear-gradient(135deg, #f6fff8 0%, #eaf4f4 100%) !important;
    border: 2px solid #cce3de !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.background-color .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(164, 195, 178, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.background-color .card:hover::before {
    left: 100%;
}

.background-color .card:hover {
    border-color: #6b9080 !important;
    box-shadow: 0 8px 24px rgba(107, 144, 128, 0.2) !important;
    background: linear-gradient(135deg, #f6fff8 0%, #eaf4f4 50%, #f6fff8 100%) !important;
}

.background-color .card-body {
    position: relative;
    z-index: 1;
    background: transparent;
}

.background-color .card-footer {
    background: transparent !important;
    border-top: 1px solid #cce3de !important;
    position: relative;
    z-index: 1;
}

.background-color .card:hover .card-footer {
    background: transparent !important;
    border-top-color: #a4c3b2 !important;
}

.background-color .card-title {
    transition: color 0.3s ease;
    color: #4a6b5c;
}

.background-color .card:hover .card-title {
    color: #6b9080;
}

@media (max-width: 1200px) {
    .img-container {
        height: 200px; /*225px*/
    }
}

@media (max-width: 992px) {
    .img-container {
        height: 200px; /*250px*/
    }
}

@media (max-width: 768px) {
    .img-container {
        height: 200px; /*275px*/
    }
}

@media (max-width: 576px) {
    .img-container {
        height: 200px; /*300px*/
    }
}