/* ==========================================================================
   Comparison & Alternatives Pages — Minecraftle
   Shared styles for /compare/ section
   ========================================================================== */

.cmp-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 50px 0 40px;
    color: #fff;
}
.cmp-hero h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    margin: 0 0 16px;
    color: #fff;
    max-width: 900px;
}
.cmp-hero .cmp-lede {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d5dced;
    max-width: 820px;
    margin: 0;
}
.cmp-hero .cmp-lede a { color: #7ed957; }

/* Breadcrumbs */
.cmp-breadcrumb {
    font-size: 0.85rem;
    color: #9fb0cc;
    margin-bottom: 18px;
}
.cmp-breadcrumb a { color: #9fb0cc; text-decoration: none; }
.cmp-breadcrumb a:hover { color: #7ed957; text-decoration: underline; }
.cmp-breadcrumb span { margin: 0 6px; opacity: 0.6; }

/* Trust / meta bar */
.cmp-meta-bar {
    background: #0f3460;
    border-bottom: 2px solid #4CAF50;
    padding: 12px 0;
}
.cmp-meta-bar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
    font-size: 0.85rem;
    color: #cfd9ea;
}
.cmp-meta-bar strong { color: #fff; }

/* Main content shell */
.cmp-main { padding: 40px 0 10px; }
.cmp-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}
/* Grid children need explicit min-width:0 so a wide table scrolls inside
   .cmp-table-wrap instead of stretching the column and overflowing the page. */
.cmp-layout > .cmp-body,
.cmp-layout > .cmp-sidebar { min-width: 0; }
@media (max-width: 900px) {
    .cmp-layout { grid-template-columns: 1fr; gap: 28px; }
}

.cmp-body h2 {
    font-size: 1.55rem;
    color: #1a1a2e;
    margin: 40px 0 14px;
    line-height: 1.3;
}
.cmp-body h2:first-child { margin-top: 0; }
.cmp-body h3 {
    font-size: 1.15rem;
    color: #23234a;
    margin: 26px 0 10px;
}
.cmp-body p {
    color: #444;
    line-height: 1.8;
    margin: 0 0 16px;
    font-size: 1rem;
}
.cmp-body ul, .cmp-body ol {
    color: #444;
    line-height: 1.85;
    padding-left: 22px;
    margin: 0 0 18px;
}
.cmp-body li { margin-bottom: 6px; }
.cmp-body a { color: #2e7d32; font-weight: 600; }
.cmp-body a:hover { text-decoration: underline; }

/* Verdict box (above the fold summary) */
.cmp-verdict {
    background: #f1f8f2;
    border: 1px solid #cfe6d2;
    border-left: 5px solid #4CAF50;
    border-radius: 10px;
    padding: 22px 24px;
    margin: 0 0 32px;
}
.cmp-verdict h2 {
    font-size: 1.2rem !important;
    margin: 0 0 12px !important;
    color: #1b5e20;
}
.cmp-verdict p { margin-bottom: 10px; color: #33452f; }
.cmp-verdict p:last-child { margin-bottom: 0; }

/* Comparison table */
.cmp-table-wrap {
    overflow-x: auto;
    margin: 0 0 14px;
    -webkit-overflow-scrolling: touch;
}
table.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    min-width: 560px;
    background: #fff;
}
table.cmp-table caption {
    caption-side: top;
    text-align: left;
    font-size: 0.85rem;
    color: #777;
    padding: 0 0 8px;
}
table.cmp-table th, table.cmp-table td {
    border: 1px solid #e3e7ee;
    padding: 11px 13px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}
table.cmp-table thead th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}
table.cmp-table tbody th {
    background: #f7f9fc;
    color: #23234a;
    font-weight: 600;
    width: 27%;
}
table.cmp-table tbody tr:nth-child(even) td { background: #fbfcfe; }
table.cmp-table td.cmp-center, table.cmp-table th.cmp-center { text-align: center; }
.cmp-yes { color: #2e7d32; font-weight: 700; }
.cmp-no { color: #c62828; font-weight: 700; }
.cmp-partial { color: #ef6c00; font-weight: 700; }
.cmp-na { color: #888; font-style: italic; }
.cmp-table-note {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.65;
    margin: 0 0 26px;
}

/* Pros / cons */
.cmp-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 20px 0 28px;
}
@media (max-width: 640px) { .cmp-proscons { grid-template-columns: 1fr; } }
.cmp-pros, .cmp-cons {
    border-radius: 10px;
    padding: 18px 20px;
}
.cmp-pros { background: #f1f8f2; border: 1px solid #cfe6d2; }
.cmp-cons { background: #fdf3f2; border: 1px solid #f0d4d1; }
.cmp-pros h4, .cmp-cons h4 { margin: 0 0 10px; font-size: 1rem; }
.cmp-pros h4 { color: #1b5e20; }
.cmp-cons h4 { color: #b3261e; }
.cmp-pros ul, .cmp-cons ul { margin: 0; padding-left: 20px; font-size: 0.92rem; line-height: 1.75; }

/* Inline CTA */
.cmp-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 12px;
    padding: 26px 28px;
    margin: 30px 0;
    color: #fff;
}
.cmp-cta h3 { color: #fff; margin: 0 0 10px; font-size: 1.15rem; }
.cmp-cta p { color: #cfd9ea; margin: 0 0 16px; line-height: 1.7; font-size: 0.95rem; }
.cmp-cta-btn {
    display: inline-block;
    background: #4CAF50;
    color: #fff !important;
    padding: 11px 24px;
    border-radius: 26px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.cmp-cta-btn:hover { background: #43a047; transform: translateY(-2px); text-decoration: none !important; }
.cmp-cta-btn.cmp-btn-alt { background: #2196F3; }
.cmp-cta-btn.cmp-btn-alt:hover { background: #1e88e5; }

/* Sidebar */
.cmp-sidebar-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.cmp-sidebar-card h3 {
    font-size: 1rem;
    color: #1a1a2e;
    margin: 0 0 14px;
}
.cmp-sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.cmp-sidebar-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e8ebef;
    font-size: 0.9rem;
    line-height: 1.55;
}
.cmp-sidebar-card ul li:last-child { border-bottom: none; }
.cmp-sidebar-card a { color: #2e7d32; text-decoration: none; font-weight: 600; }
.cmp-sidebar-card a:hover { text-decoration: underline; }
.cmp-info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e8ebef;
    font-size: 0.88rem;
}
.cmp-info-row:last-child { border-bottom: none; }
.cmp-info-row .lbl { color: #888; }
.cmp-info-row .val { color: #23234a; font-weight: 600; text-align: right; }

/* Ranked alternative entries */
.cmp-entry {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid #e8ebef;
}
.cmp-entry:first-of-type { border-top: none; }
@media (max-width: 640px) { .cmp-entry { grid-template-columns: 1fr; gap: 14px; } }
.cmp-entry-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #eef1f5;
}
.cmp-entry-thumb img {
    display: block;
    width: 100%;
    height: 107px;
    object-fit: cover;
}
@media (max-width: 640px) { .cmp-entry-thumb img { height: 170px; } }
.cmp-entry h3 { margin: 0 0 8px !important; font-size: 1.2rem !important; }
.cmp-entry h3 .cmp-rank {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 2px 8px;
    margin-right: 8px;
    vertical-align: middle;
}
.cmp-tags { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-tag {
    background: #eef4ff;
    color: #1a3a6b;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.76rem;
    font-weight: 600;
}
.cmp-tag.cmp-tag-free { background: #e8f5e9; color: #1b5e20; }
.cmp-bestfor {
    background: #fffdf3;
    border-left: 3px solid #ffca28;
    padding: 9px 14px;
    font-size: 0.9rem;
    color: #5c4b00;
    border-radius: 0 6px 6px 0;
    margin: 12px 0 0;
    line-height: 1.65;
}

/* FAQ */
.cmp-faq { margin: 34px 0 0; }
.cmp-faq-item {
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #fff;
}
.cmp-faq-item h3 { margin: 0 0 8px !important; font-size: 1.02rem !important; color: #1a1a2e; }
.cmp-faq-item p { margin: 0; font-size: 0.94rem; }

/* Hub cards */
.cmp-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin: 24px 0 10px;
}
.cmp-hub-card {
    display: block;
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 12px;
    padding: 22px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(20, 30, 60, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cmp-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(20, 30, 60, 0.11);
    text-decoration: none;
}
.cmp-hub-card h3 { margin: 0 0 9px; font-size: 1.1rem; color: #1a1a2e; line-height: 1.4; }
.cmp-hub-card p { margin: 0 0 12px; color: #556; font-size: 0.9rem; line-height: 1.65; }
.cmp-hub-card .cmp-hub-kw { font-size: 0.78rem; color: #2e7d32; font-weight: 700; }

/* Methodology / disclosure */
.cmp-disclosure {
    background: #f7f9fc;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 34px 0 0;
    font-size: 0.88rem;
    color: #5a6472;
    line-height: 1.75;
}
.cmp-disclosure h3 { margin: 0 0 8px !important; font-size: 0.98rem !important; color: #1a1a2e; }
.cmp-disclosure p { font-size: 0.88rem; color: #5a6472; margin-bottom: 8px; }
.cmp-disclosure p:last-child { margin-bottom: 0; }

/* Related links footer strip */
.cmp-related { background: #f8f9fa; padding: 38px 0; margin-top: 40px; }
.cmp-related h2 { font-size: 1.35rem; color: #1a1a2e; margin: 0 0 18px; }
.cmp-ad-slot { margin: 24px 0; text-align: center; }
