/* Comparison Page Styles — v1.0
   Dùng cho archive-comparison.php và single-comparison.php.
   Cùng ngôn ngữ thị giác với integrations.css. */

:root {
    --cmp-dark-bg: #070a1d;
    --cmp-accent: #7bd50c;
    --cmp-accent-soft: #c0e52b;
    --cmp-text: #303030;
    --cmp-text-muted: #616161;
    --cmp-white: #ffffff;
    --cmp-light-bg: #f1f1f1;
    --cmp-border: #e3e3e3;
}

/* =========================================
   SHARED
   ========================================= */
.t1-cmp-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.t1-cmp-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cmp-accent-soft);
    margin-bottom: 18px;
}

.t1-cmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 28px;
    border-radius: 16px;
    font-family: inherit;
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.t1-cmp-btn--primary {
    background-color: var(--cmp-accent);
    border-color: var(--cmp-accent);
    color: var(--cmp-dark-bg);
}

.t1-cmp-btn--primary:hover {
    background-color: var(--cmp-accent-soft);
    border-color: var(--cmp-accent-soft);
}

.t1-cmp-btn--ghost {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--cmp-white);
}

.t1-cmp-btn--ghost:hover {
    border-color: var(--cmp-white);
}

.t1-cmp-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background-color: var(--cmp-white);
    border: 1px solid var(--cmp-border);
    padding: 6px;
}

.t1-cmp-logo--mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    font-size: 18px;
    font-weight: 700;
    color: hsl(var(--mono-hue) 62% 28%);
    background-color: hsl(var(--mono-hue) 68% 92%);
}

.t1-cmp-logo--lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 24px;
}

/* =========================================
   HERO
   ========================================= */
.t1-cmp-hero {
    display: flex;
    justify-content: center;
    padding: 200px 16px 80px;
    background: url("../images/whatsapp-marketing/dark-grid-bg.webp") center / cover no-repeat;
    background-color: var(--cmp-dark-bg);
    border-radius: 0 0 16px 16px;
}

.t1-cmp-hero__inner {
    width: 100%;
    max-width: 860px;
    text-align: center;
    color: var(--cmp-white);
}

.t1-cmp-hero__title {
    font-weight: 900;
    font-size: 46px;
    line-height: 110%;
    color: var(--cmp-white);
    margin: 0;
}

.t1-cmp-hero__sub {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 20px auto 0;
    max-width: 680px;
}

.t1-cmp-hero__meta {
    margin-top: 24px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
}

.t1-cmp-hero__meta strong {
    color: var(--cmp-accent-soft);
    font-weight: 700;
}

.t1-cmp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.t1-cmp-crumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
}

.t1-cmp-crumbs a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.t1-cmp-crumbs a:hover {
    color: var(--cmp-accent-soft);
    text-decoration: underline;
}

.t1-cmp-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.t1-cmp-pair__vs {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   NỘI DUNG BÀI
   ========================================= */
.t1-cmp-body {
    padding: 64px 0 16px;
}

.t1-cmp-content {
    max-width: 860px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--cmp-text);
}

.t1-cmp-content h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin: 48px 0 16px;
    color: var(--cmp-text);
}

.t1-cmp-content h2:first-child {
    margin-top: 0;
}

.t1-cmp-content p {
    margin: 0 0 16px;
}

.t1-cmp-content ul {
    margin: 0 0 20px;
    padding-left: 22px;
}

.t1-cmp-content ul li {
    list-style: disc;
    margin-bottom: 10px;
    padding-left: 4px;
}

/* Bảng so sánh */
.t1-cmp-content .wp-block-table {
    margin: 0 0 24px;
    overflow-x: auto;
}

.t1-cmp-content .wp-block-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background-color: var(--cmp-white);
    border: 1px solid var(--cmp-border);
    border-radius: 16px;
    overflow: hidden;
    font-size: 15.5px;
}

.t1-cmp-content .wp-block-table th {
    text-align: left;
    padding: 16px 18px;
    background-color: var(--cmp-dark-bg);
    color: var(--cmp-white);
    font-weight: 700;
    font-size: 16px;
    border: 0;
}

/* Cột của mình được tô sáng để mắt bám vào trước */
.t1-cmp-content .wp-block-table th:nth-child(2) {
    color: var(--cmp-accent-soft);
}

.t1-cmp-content .wp-block-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--cmp-border);
    vertical-align: top;
    color: var(--cmp-text-muted);
}

.t1-cmp-content .wp-block-table td:first-child {
    font-weight: 600;
    color: var(--cmp-text);
    white-space: nowrap;
}

.t1-cmp-content .wp-block-table td:nth-child(2) {
    color: var(--cmp-text);
    background-color: rgba(192, 229, 43, 0.09);
}

.t1-cmp-content .wp-block-table figcaption,
.t1-cmp-content .wp-element-caption {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--cmp-text-muted);
}

/* =========================================
   CHUYỂN ĐỔI DỮ LIỆU
   ========================================= */
.t1-cmp-migrate {
    padding: 32px 0 16px;
}

.t1-cmp-migrate__box {
    max-width: 860px;
    padding: 32px;
    background-color: var(--cmp-light-bg);
    border-radius: 20px;
    border-left: 4px solid var(--cmp-accent);
}

.t1-cmp-migrate__box h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--cmp-text);
    margin: 0;
}

.t1-cmp-migrate__box p {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--cmp-text-muted);
    margin: 10px 0 20px;
}

/* =========================================
   LIÊN QUAN
   ========================================= */
.t1-cmp-browse {
    padding: 56px 0 8px;
}

.t1-cmp-appgroup {
    padding-top: 40px;
}

.t1-cmp-appgroup__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.t1-cmp-appgroup__head img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.t1-cmp-appgroup__head h2 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--cmp-text);
    margin: 0;
}

.t1-cmp-appgroup__head h2 span {
    font-size: 15px;
    font-weight: 500;
    color: var(--cmp-text-muted);
}

.t1-cmp-related {
    padding: 48px 0 16px;
}

.t1-cmp-related__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.t1-cmp-related__head h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--cmp-text);
    margin: 0;
}

.t1-cmp-related__head a {
    font-size: 15px;
    font-weight: 600;
    color: var(--cmp-text-muted);
    text-decoration: none;
}

.t1-cmp-related__head a:hover {
    color: var(--cmp-text);
}

.t1-cmp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.t1-cmp-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background-color: var(--cmp-white);
    border: 1px solid var(--cmp-border);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.t1-cmp-card:hover {
    border-color: var(--cmp-text);
    box-shadow: 0 12px 28px -20px rgba(7, 10, 29, 0.55);
    transform: translateY(-2px);
}

.t1-cmp-card__body {
    flex: 1;
    min-width: 0;
}

.t1-cmp-card__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cmp-text);
    margin: 0;
}

.t1-cmp-card__desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--cmp-text-muted);
    margin: 6px 0 0;
}

.t1-cmp-card__action {
    align-self: center;
    flex-shrink: 0;
    color: var(--cmp-text-muted);
}

/* =========================================
   CTA + GHI CHÚ
   ========================================= */
.t1-cmp-cta {
    padding: 56px 0 96px;
}

.t1-cmp-cta__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 40px;
    background-color: var(--cmp-dark-bg);
    border-radius: 24px;
}

.t1-cmp-cta__box h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--cmp-white);
    margin: 0;
}

.t1-cmp-cta__box p {
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.65);
    margin: 8px 0 0;
    max-width: 60ch;
}

.t1-cmp-note {
    margin: 24px auto 0;
    max-width: 860px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--cmp-text-muted);
}

.t1-cmp-note a {
    color: var(--cmp-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 767px) {
    .t1-cmp-hero {
        padding: 150px 16px 56px;
    }

    .t1-cmp-hero__title {
        font-size: 30px;
    }

    .t1-cmp-hero__sub {
        font-size: 17px;
    }

    .t1-cmp-grid {
        grid-template-columns: 1fr;
    }

    .t1-cmp-content h2 {
        font-size: 24px;
    }

    .t1-cmp-cta__box,
    .t1-cmp-migrate__box {
        padding: 28px;
    }

    .t1-cmp-appgroup__head h2,
    .t1-cmp-related__head h2,
    .t1-cmp-cta__box h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t1-cmp-card,
    .t1-cmp-btn {
        transition: none;
    }

    .t1-cmp-card:hover {
        transform: none;
    }
}
