/**
 * movie-card.css — Стили карточки фильма для контента постов
 * Используется update.php для build_post_content()
 */

/* === Карточка фильма === */
.movie-card {
    background: rgba(26,26,46,.6);
    border: 1px solid rgba(108,92,231,.15);
    border-radius: 14px;
    padding: 24px;
    margin: 1.5em 0;
}

/* === Бейджи рейтингов === */
.movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.rating-badge,
.quality-badge,
.translation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 600;
    line-height: 1;
}

.rating-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.rating-high {
    background: rgba(52,211,153,.15);
    color: #34d399;
    border: 1px solid rgba(52,211,153,.25);
}

.rating-mid {
    background: rgba(251,191,36,.12);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,.2);
}

.rating-low {
    background: rgba(248,113,113,.12);
    color: #f87171;
    border: 1px solid rgba(248,113,113,.2);
}

.quality-badge {
    background: rgba(96,165,250,.12);
    color: #60a5fa;
    border: 1px solid rgba(96,165,250,.2);
}

.translation-badge {
    background: rgba(168,85,247,.1);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,.2);
}

/* === Таблица информации === */
.movie-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.movie-info-table tr {
    border-bottom: 1px solid rgba(108,92,231,.08);
}

.movie-info-table tr:last-child {
    border-bottom: none;
}

.movie-info-table td {
    padding: 9px 0;
    font-size: 0.92em;
    vertical-align: top;
    line-height: 1.5;
}

.movie-info-table .mi-label {
    color: #94a3b8;
    font-weight: 500;
    width: 110px;
    padding-right: 12px;
    white-space: nowrap;
}

.movie-info-table td:last-child {
    color: #e2e8f0;
}

.movie-info-table td a {
    color: var(--wp--preset--color--accent-1, #6c5ce7);
    text-decoration: none;
    transition: color 0.2s;
}

.movie-info-table td a:hover {
    color: var(--wp--preset--color--accent-2, #a855f7);
    text-decoration: underline;
}

/* === Описание === */
.movie-description {
    color: #cbd5e1;
    font-size: 0.92em;
    line-height: 1.7;
    padding-top: 16px;
    border-top: 1px solid rgba(108,92,231,.1);
}

/* === Адаптивность === */
@media (max-width: 600px) {
    .movie-card {
        padding: 16px;
        border-radius: 10px;
    }

    .movie-info-table .mi-label {
        width: 90px;
        font-size: 0.85em;
    }

    .movie-info-table td {
        font-size: 0.85em;
        padding: 7px 0;
    }

    .movie-badges {
        gap: 6px;
    }

    .rating-badge,
    .quality-badge,
    .translation-badge {
        font-size: 0.78em;
        padding: 4px 10px;
    }
}

/* === Поправки для тёмной темы - миниатюры в каталоге === */
.wp-block-post-featured-image img {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-post-featured-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(108,92,231,.25);
}

/* === Теги постов в каталоге === */
.wp-block-post-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wp-block-post-terms__separator {
    display: none !important;
}

.wp-block-post-terms a {
    background: rgba(108,92,231,.12);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    color: var(--wp--preset--color--accent-1) !important;
    text-decoration: none !important;
    transition: background 0.2s;
}

.wp-block-post-terms a:hover {
    background: rgba(108,92,231,.25);
}

/* === Пагинация === */
.wp-block-query-pagination a,
.wp-block-query-pagination .current {
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.wp-block-query-pagination a:hover {
    background: rgba(108,92,231,.15);
}

.wp-block-query-pagination .current {
    background: var(--wp--preset--color--accent-1);
    color: #fff;
}
