/* styles-blog.css — подключается отдельно от styles.css, см. App\Support\SiteCss. */

/* Таблицы и связанные материалы в статьях блога */
.article-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    -webkit-overflow-scrolling: touch;
}

.article-data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.article-data-table thead {
    color: #fff;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
}

.article-data-table th,
.article-data-table td {
    padding: 0.95rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.article-data-table th {
    font-size: 0.95rem;
    font-weight: 600;
}

.article-data-table td {
    color: var(--dark-text);
    font-size: 0.92rem;
}

.article-data-table td:first-child {
    font-weight: 600;
}

.article-data-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.article-data-table tbody tr:last-child {
    border-bottom: 0;
}

.article-data-table tbody tr:hover {
    background: rgba(156, 39, 176, 0.04);
}

.article-data-table .is-best {
    background: rgba(76, 175, 80, 0.08);
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 1.2rem 0 1.6rem;
    padding-left: 1.4rem;
}

.article-content li {
    margin-bottom: 0.7rem;
    line-height: 1.55;
}

.related-articles {
    margin: 2.5rem 0 1rem;
    padding: 1.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border-left: 5px solid var(--primary-purple);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.related-articles h3 {
    margin: 0 0 1rem;
    color: var(--primary-purple);
    font-size: 1.25rem;
}

.related-articles ul {
    margin: 0;
    padding-left: 1.2rem;
}

.related-articles li {
    margin-bottom: 0.55rem;
}

.related-articles a {
    color: var(--primary-blue);
    font-weight: 600;
}

@media (max-width: 768px) {

    .article-table-wrap {
        overflow: visible;
        margin: 1.4rem 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .article-data-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .article-data-table thead {
        display: none;
    }

    .article-data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .article-data-table tbody tr {
        display: block;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(26, 31, 54, 0.08);
        border-radius: 16px;
        box-shadow: var(--shadow-light);
    }

    .article-data-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.97);
    }

    .article-data-table td {
        display: block;
        padding: 0.85rem 1rem 0.95rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .article-data-table td:last-child {
        border-bottom: 0;
    }

    .article-data-table td:first-child {
        padding: 0.95rem 1rem;
        color: #fff;
        background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
        border-bottom: 0;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .article-data-table td:not(:first-child)::before {
        display: block;
        margin-bottom: 0.28rem;
        color: var(--primary-purple);
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .article-data-table td.is-best {
        background: rgba(76, 175, 80, 0.1);
        border-left: 4px solid #4caf50;
    }
}
