/* ============================================================
   compare-pages.css — Shared styles for all CifraHQ comparison pages
   ============================================================ */

/* ----- Hero ----- */
.compare-hero {
    background: linear-gradient(135deg, #083D7F 0%, #073d73 100%);
    padding: 120px 0 80px;
}

/* ----- VS badge ----- */
.vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 150, 63, 0.2);
    border: 1px solid #E8963F;
    color: #E8963F;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ----- Hero stats (used on some pages) ----- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E8963F;
}
.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

/* ----- Content sections (used on richer pages) ----- */
.content-section {
    padding: 4rem 0;
}
.content-section:nth-child(even) {
    background: var(--cifra-bg-secondary, #f8f9fa);
}
.section-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 61, 127, 0.1);
    border-radius: 16px;
    color: #083D7F;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ----- Comparison table ----- */
.comparison-table {
    background: var(--cifra-bg-primary, white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Light-header variant (acumatica, dynamics, elconix, etc.) */
.comparison-table th {
    background: var(--cifra-bg-secondary, #f8f9fa);
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

/* Blue-header variant (alegra, quickbooks, xero) — applied via extra inline rule on those pages */
.comparison-table.table-blue-header th {
    background: #083D7F;
    color: white;
    border-bottom: 2px solid #073d73;
}

.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table tbody tr:hover {
    background: rgba(8, 61, 127, 0.03);
}

/* ----- Check icons ----- */
.check-yes    { color: #28a745; font-size: 1.25rem; font-weight: 600; }
.check-no     { color: #dc3545; font-size: 1.25rem; font-weight: 600; }
.check-partial { color: #ffc107; font-size: 1.25rem; font-weight: 600; }
.check-coming { color: #6366f1; font-weight: 600; }

/* ----- Winner badge ----- */
.winner-badge {
    background: linear-gradient(135deg, #E8963F 0%, #f59e0b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* ----- Advantage cards ----- */
.advantage-card {
    background: var(--cifra-bg-primary, white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
    border-left: 4px solid #083D7F;
}
.advantage-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 61, 127, 0.1);
    border-radius: 12px;
    color: #083D7F;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ----- Highlight box ----- */
.highlight-box {
    background: linear-gradient(135deg, rgba(8, 61, 127, 0.05) 0%, rgba(8, 61, 127, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #083D7F;
}

/* ----- Ideal / reason cards ----- */
.ideal-card,
.reason-card {
    background: var(--cifra-bg-primary, white);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.ideal-card h4,
.reason-card h4 {
    color: #083D7F;
    margin-bottom: 1.5rem;
}
.ideal-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ideal-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.ideal-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #28a745;
}

/* ----- Industry links grid ----- */
.industry-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.industry-link {
    background: var(--cifra-bg-primary, white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--cifra-text-primary, #1a1a1a);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.industry-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    color: #083D7F;
}
.industry-link i {
    font-size: 2rem;
    color: #083D7F;
    margin-bottom: 0.75rem;
    display: block;
}

/* ----- CTA section ----- */
.cta-section {
    background: linear-gradient(135deg, #083D7F 0%, #073d73 100%);
    padding: 5rem 0;
}

/* ----- Tech / scope badges ----- */
.tech-badge,
.scope-badge {
    display: inline-block;
    background: rgba(8, 61, 127, 0.1);
    color: #083D7F;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}
.tech-badge.legacy,
.scope-badge.limited {
    background: rgba(147, 149, 152, 0.2);
    color: #6c757d;
}

/* ----- Competitor stats ----- */
.competitor-stat {
    background: rgba(147, 149, 152, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.competitor-stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: #6c757d;
}

/* ----- Legacy warning (sapb1) ----- */
.legacy-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.legacy-warning i {
    color: #856404;
}

/* ----- Competitor strength boxes (alegra-strength, xero-strength, qb-does-well) ----- */
.alegra-strength,
.xero-strength,
.qb-does-well {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #bbf7d0;
}

/* ----- Intro card (quickbooks) ----- */
.intro-card {
    background: var(--cifra-bg-primary, white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #E8963F;
}

/* ----- Migration card (quickbooks) ----- */
.migration-card {
    background: linear-gradient(135deg, #E8963F 0%, #f59e0b 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
}

/* ============================================================
   Dark mode overrides
   ============================================================ */
[data-theme="dark"] .content-section:nth-child(even) {
    background: rgba(255,255,255,0.02);
}
[data-theme="dark"] .comparison-table {
    background: #1e293b;
}
[data-theme="dark"] .comparison-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}
[data-theme="dark"] .advantage-card,
[data-theme="dark"] .ideal-card,
[data-theme="dark"] .reason-card,
[data-theme="dark"] .intro-card,
[data-theme="dark"] .alegra-strength,
[data-theme="dark"] .xero-strength,
[data-theme="dark"] .qb-does-well {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .highlight-box {
    background: rgba(8, 61, 127, 0.2);
}
[data-theme="dark"] .industry-link {
    background: #1e293b;
    color: #e5e7eb;
}
