
/* Стили карточек книг на главной странице */

.book-info h3 {
    color: #2c3e50 !important;
    font-size: 1.3rem !important;
    font-family: 'Times New Roman', serif !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 4px #c4c6df !important;
}

.book-card.has-price-display .book-info h3 {
    margin-bottom: 0.8rem !important;
}

.book-series-label {
    color: #3498db !important;
    font-size: 0.9rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

.book-series-title {
    color: #3498db !important;
    font-size: 0.9rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

.book-series-position-label {
    color: #3498db !important;
    font-size: 0.9rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

.book-series-position-number {
    color: #3498db !important;
    font-size: 0.9rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

.book-genre {
    color: #366538 !important;
    font-size: 0.85rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

.book-work-info {
    margin-top: 0rem !important;
    margin-bottom: 0.5rem;
}

.book-work-form {
    color: #2c3e50 !important;
    font-size: 0.9rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 700 !important;
}

.book-work-volume {
    color: #2f2f4d !important;
    font-size: 0.9rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

.book-description {
    color: #333333 !important;
    font-size: 0.85rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
    margin-bottom: 0.5rem !important;
}

.book-description * {
    color: #333333 !important;
    font-size: 0.85rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

.book-description strong,
.book-description b {
    font-weight: bold !important;
    color: #333333 !important;
}

.book-description em,
.book-description i {
    font-style: italic !important;
    color: #333333 !important;
}

.book-description u {
    text-decoration: underline !important;
    color: #333333 !important;
}

.book-description del,
.book-description s,
.book-description strike {
    text-decoration: line-through !important;
    color: #333333 !important;
}

.book-description span[style*="font-size"] {
    color: #333333 !important;
    font-size: 0.85rem !important;
    font-family: Arial, sans-serif !important;
}

.book-card {
    position: relative !important;
}

.book-actions {
    position: absolute !important;
    right: 15px !important;
    bottom: 15px !important;
}

.book-actions .btn-secondary {
    background-color: #95a5a6 !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

.book-actions .btn-primary {
    background-color: #3498db !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
}

@media (max-width: 768px) {
    .book-actions {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 1rem !important;
        margin-bottom: 10px !important;
        padding: 0 1rem !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    .book-info {
        padding-bottom: 0 !important;
    }
}

.book-meta h1 {
    color: #2c3e50 !important;
    font-size: 1.3rem !important;
    font-family: 'Times New Roman', serif !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 4px #c4c6df !important;
}

.book-meta.has-price-display h1 {
    margin-bottom: 0.8rem !important;
}

.book-work-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.publication-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92em;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.publication-status.is-in-progress {
    color: #2d9cdb;
}

.publication-status.is-completed {
    color: #27ae60;
}

.publication-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    line-height: 1;
    width: 1em;
    height: 1em;
    flex: 0 0 1em;
    vertical-align: middle;
}

.publication-status.is-in-progress .publication-status-icon {
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
    white-space: nowrap;
    transform: translateY(-0.02em) rotate(45deg);
    transform-origin: 50% 50%;
}

.publication-status.is-in-progress .publication-status-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    display: block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 5 9l7 13 7-13-7-7Zm0 5.25a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5Zm-1.65 5L8.9 18h6.2l-1.45-5.75L12 13.8l-1.65-1.55Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 5 9l7 13 7-13-7-7Zm0 5.25a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5Zm-1.65 5L8.9 18h6.2l-1.45-5.75L12 13.8l-1.65-1.55Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 768px) {
    .publication-status.is-in-progress .publication-status-icon {
        transform: translateY(-0.02em) rotate(45deg);
        transform-origin: 50% 50%;
    }
}

.series-publication-status {
    display: inline-flex;
    margin-top: 0.35rem;
}

.series-meta .series-publication-status,
.cycle-info .series-publication-status {
    margin-bottom: 0.2rem;
}

@media (max-width: 768px) {
    .book-actions .btn,
    .book-actions .btn-primary,
    .book-actions .btn-secondary,
    .book-actions button,
    .book-actions a,
    .book-action-group button,
    .book-action-group a,
    .book-download-btn {
        padding: 9px 12px !important;
        font-size: 0.86rem !important;
        line-height: 1.18 !important;
        min-height: 38px !important;
        height: auto !important;
        max-height: none !important;
    }

    .book-actions {
        gap: 0.45rem !important;
        margin-top: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .book-actions .btn,
    .book-actions .btn-primary,
    .book-actions .btn-secondary,
    .book-actions button,
    .book-actions a,
    .book-action-group button,
    .book-action-group a,
    .book-download-btn {
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
        min-height: 36px !important;
    }
}
