/* ============================================================================
 * AIGP GEO Blocks
 * Stylesheet for AI-friendly structured blocks inside long-form articles:
 *   - .aigp-geo-meta   : Last-updated / Tested-on / Editor banner
 *   - .aigp-geo-tldr   : Key Takeaways bullet list
 *   - .aigp-geo-stats  : By-the-Numbers compact stat list
 *   - .aigp-geo-howto  : Quick Recipe numbered steps
 *   - .aigp-geo-glossary : Definition list for key terms
 *   - .aigp-geo-comparison-table : Side-by-side comparison
 *
 * Design language: aligned with the site's cyberpunk-neon dark aesthetic.
 * Color tokens: --ai-fuchsia / --ai-cyan / --ai-violet on near-black cards.
 * ============================================================================ */

:root {
    --geo-bg:           #0d0d0d;
    --geo-bg-soft:      rgba(255, 255, 255, 0.02);
    --geo-border:       rgba(255, 0, 200, 0.20);
    --geo-border-soft:  rgba(255, 255, 255, 0.08);
    --geo-text:         #bdc1c6;
    --geo-text-strong:  #ffffff;
    --geo-muted:        #888;
    --geo-fuchsia:      #ff00c8;
    --geo-cyan:         #00f2ff;
    --geo-violet:       #8b5cf6;
    --geo-green:        #06ffa8;
    --geo-gold:         #ffd700;
}

/* ============================================================================
 * Last-updated / Tested-on / Editor banner
 * ============================================================================ */
.aigp-geo-meta {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(0, 242, 255, 0.05) 100%);
    border: 1px solid var(--geo-border);
    border-left: 3px solid var(--geo-cyan);
    padding: 14px 20px;
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--geo-text);
    border-radius: 0 8px 8px 0;
}
.aigp-geo-meta strong {
    color: var(--geo-text-strong);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ============================================================================
 * Key Takeaways (TL;DR)
 * ============================================================================ */
.aigp-geo-tldr {
    list-style: none;
    margin: 18px 0 28px;
    padding: 20px 22px;
    background: var(--geo-bg);
    border: 1px solid var(--geo-border);
    border-radius: 10px;
    position: relative;
}
.aigp-geo-tldr::before {
    content: "★";
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--geo-fuchsia);
    color: #000;
    font-weight: 900;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.aigp-geo-tldr li {
    position: relative;
    padding: 8px 0 8px 28px;
    margin: 0;
    color: var(--geo-text);
    line-height: 1.6;
    border-bottom: 1px solid var(--geo-border-soft);
}
.aigp-geo-tldr li:last-child { border-bottom: none; }
.aigp-geo-tldr li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--geo-cyan);
    font-weight: 700;
}
.aigp-geo-tldr li strong {
    color: var(--geo-text-strong);
    font-weight: 600;
}

/* Heading sits above the TL;DR list — kill default margin */
h2#key-takeaways {
    margin-bottom: 10px;
    color: var(--geo-text-strong);
}

/* ============================================================================
 * By-the-Numbers compact stat list
 * ============================================================================ */
.aigp-geo-stats {
    list-style: none;
    margin: 14px 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.aigp-geo-stats li {
    background: var(--geo-bg);
    border: 1px solid var(--geo-border-soft);
    border-left: 2px solid var(--geo-gold);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--geo-text);
    border-radius: 0 6px 6px 0;
    list-style: none !important;
}
.aigp-geo-stats li strong {
    color: var(--geo-gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

h3#by-the-numbers {
    color: var(--geo-text-strong);
    margin: 28px 0 10px;
}

/* ============================================================================
 * HowTo Quick Recipe (numbered)
 * ============================================================================ */
.aigp-geo-howto {
    counter-reset: aigp-step;
    list-style: none;
    margin: 18px 0 28px;
    padding: 22px 24px;
    background: var(--geo-bg);
    border: 1px solid var(--geo-border);
    border-radius: 10px;
    position: relative;
}
.aigp-geo-howto::before {
    content: "Quick recipe";
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--geo-green);
    color: #000;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.aigp-geo-howto li {
    counter-increment: aigp-step;
    position: relative;
    padding: 12px 0 12px 44px;
    color: var(--geo-text);
    line-height: 1.6;
    border-bottom: 1px solid var(--geo-border-soft);
}
.aigp-geo-howto li:last-child { border-bottom: none; }
.aigp-geo-howto li::before {
    content: counter(aigp-step);
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--geo-green);
    color: #000;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.aigp-geo-howto li strong { color: var(--geo-text-strong); }

/* ============================================================================
 * Glossary definition list
 * ============================================================================ */
.aigp-geo-glossary {
    margin: 14px 0 28px;
    padding: 20px 22px;
    background: var(--geo-bg);
    border: 1px solid var(--geo-border);
    border-radius: 10px;
    position: relative;
}
.aigp-geo-glossary::before {
    content: "Glossary";
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--geo-violet);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.aigp-geo-glossary dt {
    color: var(--geo-cyan);
    font-weight: 600;
    margin: 14px 0 4px;
    font-size: 14px;
}
.aigp-geo-glossary dt:first-child { margin-top: 6px; }
.aigp-geo-glossary dt strong { color: var(--geo-cyan); }
.aigp-geo-glossary dd {
    margin: 0 0 12px;
    padding: 0;
    color: var(--geo-text);
    font-size: 13px;
    line-height: 1.6;
    border-bottom: 1px solid var(--geo-border-soft);
    padding-bottom: 10px;
}
.aigp-geo-glossary dd:last-child { border-bottom: none; padding-bottom: 0; }

/* ============================================================================
 * Comparison table (side-by-side)
 * ============================================================================ */
.aigp-geo-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0 28px;
    background: var(--geo-bg);
    border: 1px solid var(--geo-border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
}
.aigp-geo-comparison-table thead tr {
    background: linear-gradient(135deg, rgba(255, 0, 200, 0.08) 0%, rgba(0, 242, 255, 0.05) 100%);
}
.aigp-geo-comparison-table th,
.aigp-geo-comparison-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--geo-border-soft);
    border-right: 1px solid var(--geo-border-soft);
    color: var(--geo-text);
}
.aigp-geo-comparison-table th:last-child,
.aigp-geo-comparison-table td:last-child {
    border-right: none;
}
.aigp-geo-comparison-table tbody tr:last-child td { border-bottom: none; }
.aigp-geo-comparison-table th {
    color: var(--geo-text-strong);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.aigp-geo-comparison-table td:first-child {
    color: var(--geo-fuchsia);
    font-weight: 600;
}
.aigp-geo-comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.aigp-geo-comparison-table strong { color: var(--geo-text-strong); }

/* ============================================================================
 * Baseline styling for ANY plain <table> inside article body
 * (pricing tables, comparison rows, anything authored without a class).
 * Hits both the review CPT and standard blog post content containers.
 * Without this, plain <table> falls back to browser defaults — light bg +
 * dark text — which is unreadable on the site's dark theme.
 * ============================================================================ */
.single-post-list-content table,
.entry-content table,
.post-content table,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0 28px;
    background: var(--geo-bg, #0d0d0d);
    border: 1px solid var(--geo-border, rgba(255, 0, 200, 0.20));
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    color: var(--geo-text, #bdc1c6);
}

.single-post-list-content table thead tr,
.entry-content table thead tr,
.post-content table thead tr,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) thead tr {
    background: linear-gradient(135deg, rgba(255, 0, 200, 0.08) 0%, rgba(0, 242, 255, 0.05) 100%);
}

.single-post-list-content table th,
.single-post-list-content table td,
.entry-content table th,
.entry-content table td,
.post-content table th,
.post-content table td,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) th,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--geo-border-soft, rgba(255, 255, 255, 0.08));
    border-right: 1px solid var(--geo-border-soft, rgba(255, 255, 255, 0.08));
    color: var(--geo-text, #bdc1c6);
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.single-post-list-content table th,
.entry-content table th,
.post-content table th,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) th {
    color: var(--geo-text-strong, #ffffff);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.single-post-list-content table th:last-child,
.single-post-list-content table td:last-child,
.entry-content table th:last-child,
.entry-content table td:last-child,
.post-content table th:last-child,
.post-content table td:last-child,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) th:last-child,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) td:last-child {
    border-right: none;
}

.single-post-list-content table tbody tr:last-child td,
.entry-content table tbody tr:last-child td,
.post-content table tbody tr:last-child td,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) tbody tr:last-child td {
    border-bottom: none;
}

.single-post-list-content table tbody tr:hover,
.entry-content table tbody tr:hover,
.post-content table tbody tr:hover,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.single-post-list-content table td:first-child,
.entry-content table td:first-child,
.post-content table td:first-child,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) td:first-child {
    color: var(--geo-fuchsia, #ff00c8);
    font-weight: 600;
}

.single-post-list-content table strong,
.entry-content table strong,
.post-content table strong,
article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) strong {
    color: var(--geo-text-strong, #ffffff);
}

/* Mobile: horizontal scroll on small screens to keep columns readable */
@media (max-width: 768px) {
    .single-post-list-content table,
    .entry-content table,
    .post-content table,
    article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) {
        display: block;
        overflow-x: auto;
        table-layout: auto;
        white-space: normal;
        -webkit-overflow-scrolling: touch;
    }
    .single-post-list-content table th,
    .single-post-list-content table td,
    .entry-content table th,
    .entry-content table td,
    .post-content table th,
    .post-content table td,
    article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) th,
    article table:not(.aigp-geo-comparison-table):not(.ai-summary-table):not(.rankings-table):not(.brand-meta-bar) td {
        padding: 10px;
        font-size: 12px;
    }
}

/* ============================================================================
 * Responsive — collapse 3-col grids on small screens
 * ============================================================================ */
@media (max-width: 600px) {
    .aigp-geo-stats { grid-template-columns: 1fr; }
    .aigp-geo-comparison-table th,
    .aigp-geo-comparison-table td {
        padding: 10px;
        font-size: 12px;
    }
    .aigp-geo-tldr,
    .aigp-geo-howto,
    .aigp-geo-glossary {
        padding: 18px 16px;
    }
}

/* ============================================================================
 * Hide "Likes" engagement UI on SINGLE review pages.
 * Editorial decision (2026-05-14): stars + views are enough as social proof;
 * the heart button was redundant with the rating widget, never accumulated
 * real engagement (≤2% of brands had a real like) and inflated synthetic
 * baselines that looked deceptive. AJAX handler kept intact so the feature
 * can be re-enabled by removing this rule if we change our mind.
 *
 * Note: on CATEGORY pages the ".ai-feedback-likes" div has been replaced by
 * ".ai-feedback-views" at template-level (inc/ai-category-comparison.php), so
 * no CSS hide needed there.
 * ============================================================================ */
.brand-like-btn,
.review-like-btn {
    display: none !important;
}

