/* assets/css/pages/comparison.css - Premium E-Commerce Platform Comparison 2026 */

:root {
    --shopify: #96bf48;
    --ikas: #0f172a;
    --woocom: #7f54b3;
    --ticimax: #1a64b9;
    --ideasoft: #f58220;
    --tsoft: #000000;

    --bg-light: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.cmp-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 160px 0 80px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.cmp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/patterns/grid-pattern.svg') repeat;
    opacity: 0.05;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-title span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* MATRIX TABLE (MOBILE OPTIMIZED) */
.table-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    overflow-x: auto;
    /* Allow horizontal scroll on mobile */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.cmp-matrix {
    width: 100%;
    min-width: 900px;
    /* Force scroll on small screens */
    border-collapse: separate;
    border-spacing: 0;
}

.cmp-matrix th {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cmp-matrix th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    background: white;
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cmp-matrix td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

.cmp-matrix td:first-child {
    position: sticky;
    left: 0;
    background: white;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 5;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.02);
}

.matrix-logo {
    height: 35px;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.badge-score {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.score-green {
    background: #dcfce7;
    color: #166534;
}

.score-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.score-red {
    background: #fee2e2;
    color: #991b1b;
}

.score-blue {
    background: #e0f2fe;
    color: #075985;
}

/* PLATFORM REVIEW CARDS */
.platform-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.1);
}

.pc-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.pc-logo-box {
    display: flex;
    align-items: center;
}

.pc-logo-box img {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
}

.pc-audience {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.pc-content {
    margin-bottom: 30px;
}

/* Pros and Cons Lists */
.pros-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.pros-cons-list li i {
    margin-top: 4px;
    margin-right: 12px;
    font-size: 0.9rem;
}

.text-pro {
    color: #10b981;
}

.text-con {
    color: #ef4444;
}


/* Custom Progress Bars for Ratings */
.rating-bars {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
}

.rating-row {
    margin-bottom: 12px;
}

.rating-row:last-child {
    margin-bottom: 0;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.progress {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 50px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* HUGE CTA SECTION */
.huge-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.huge-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.cta-header {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn-cta-premium {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    text-decoration: none;
    border: none;
}

.btn-cta-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
    color: white;
}

/* Top Accent Borders for specific cards */
.border-ikas {
    border-top: 5px solid var(--ikas);
}

.border-shopify {
    border-top: 5px solid var(--shopify);
}

.border-woocommerce {
    border-top: 5px solid var(--woocom);
}

.border-ticimax {
    border-top: 5px solid var(--ticimax);
}

.border-ideasoft {
    border-top: 5px solid var(--ideasoft);
}

.border-tsoft {
    border-top: 5px solid var(--tsoft);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cmp-hero {
        padding: 120px 0 60px 0;
    }

    .table-container {
        padding: 15px;
        border-radius: 12px;
        margin-top: -20px;
    }

    .cmp-matrix th,
    .cmp-matrix td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .platform-card {
        padding: 25px;
    }

    .huge-cta-card {
        padding: 40px 20px;
    }

    .cta-header {
        font-size: 1.8rem;
    }

    .btn-cta-premium {
        font-size: 1rem;
        padding: 15px 25px;
        width: 100%;
        justify-content: center;
    }
}