/* ExtraTV Package Details – compare.css  v3.0.0 */

/* ── Compare section ──────────────────────────────── */
.extratv-compare-section {
    background: #0a0a1a;
    padding: 60px 20px 80px;
}

.extratv-compare-inner {
    max-width: 900px;
    margin: 0 auto;
}

.extratv-compare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    direction: rtl;
}

.extratv-compare-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.extratv-compare-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff00b4, #cc00ff);
    margin-top: 8px;
    border-radius: 2px;
}

.extratv-compare-reset-btn {
    background: transparent;
    border: 1px solid rgba(255, 0, 180, 0.35);
    color: #ff00b4;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.extratv-compare-reset-btn:hover {
    background: rgba(255, 0, 180, 0.1);
}

/* ── Compare table ────────────────────────────────── */
.extratv-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.extratv-compare-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    font-size: 0.92rem;
}

.extratv-compare-th-label {
    width: 140px;
    min-width: 100px;
    text-align: right;
    padding: 14px 12px;
    color: #777;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.extratv-compare-th-pkg {
    text-align: center;
    padding: 16px 20px;
    background: rgba(255, 0, 180, 0.05);
    border-bottom: 2px solid rgba(255, 0, 180, 0.2);
    min-width: 160px;
}

.extratv-compare-pkg-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.extratv-compare-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff00b4, #cc00ff);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 6px;
}

.extratv-compare-row-label {
    text-align: right;
    padding: 14px 12px;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
    white-space: nowrap;
}

.extratv-compare-cell {
    text-align: center;
    padding: 14px 20px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
    background: rgba(255, 255, 255, 0.01);
    transition: background 0.2s;
}

.extratv-compare-cell--desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #999;
    text-align: right;
}

.extratv-compare-cell--best {
    background: rgba(0, 210, 120, 0.07);
    color: #00d278;
    font-weight: 700;
}

.extratv-compare-best-icon {
    font-size: 0.8rem;
    color: #00d278;
}

/* ── Highlights list ──────────────────────────────── */
.extratv-compare-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.extratv-compare-highlights li {
    padding: 3px 0;
    font-size: 0.82rem;
    color: #bbb;
    line-height: 1.4;
}

/* ── "إضافة للمقارنة" button (inside detail section) */
.extratv-pd-compare-add-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.extratv-pd-compare-add-btn:hover {
    border-color: rgba(255, 0, 180, 0.4);
    color: #fff;
}

.extratv-pd-compare-add-btn--active {
    background: rgba(255, 0, 180, 0.12);
    border-color: #ff00b4;
    color: #ff00b4;
}

/* ── Floating compare bar ─────────────────────────── */
.extratv-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #13132b;
    border-top: 1px solid rgba(255, 0, 180, 0.25);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
}

.extratv-compare-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.extratv-compare-bar-slots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.extratv-compare-bar-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 180, 0.1);
    border: 1px solid rgba(255, 0, 180, 0.25);
    border-radius: 50px;
    padding: 6px 14px;
}

.extratv-compare-bar-slot-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.extratv-compare-bar-slot-remove {
    background: transparent;
    border: none;
    color: #ff00b4;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.extratv-compare-bar-slot-remove:hover {
    color: #fff;
}

.extratv-compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.extratv-compare-bar-count {
    font-size: 0.82rem;
    color: #888;
    white-space: nowrap;
}

.extratv-compare-bar-trigger {
    background: linear-gradient(135deg, #ff00b4, #cc00ff);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 0, 180, 0.3);
    transition: opacity 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.extratv-compare-bar-trigger:hover {
    opacity: 0.88;
    box-shadow: 0 6px 20px rgba(255, 0, 180, 0.45);
}

/* ── Mobile ───────────────────────────────────────── */
@media ( max-width: 600px ) {
    .extratv-compare-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .extratv-compare-bar-trigger {
        width: 100%;
        text-align: center;
    }

    .extratv-compare-table {
        font-size: 0.82rem;
    }

    .extratv-compare-th-pkg,
    .extratv-compare-cell {
        padding: 10px 12px;
        min-width: 120px;
    }

    .extratv-compare-th-label,
    .extratv-compare-row-label {
        padding: 10px 8px;
        min-width: 80px;
        font-size: 0.78rem;
    }
}

/* =====================================================
   Phase 4 – UX upgrade additions (extension only)
   ===================================================== */

/* ── .active class parity with --active modifier ─── */
.extratv-pd-compare-add-btn.active {
    background: rgba(255, 0, 180, 0.12);
    border-color: #ff00b4;
    color: #ff00b4;
}

/* ── Hover state on active button → red "remove" cue */
.extratv-pd-compare-add-btn[data-state="active"]:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: #ef4444;
    color: #ef4444;
}

/* ── Clear-all button in bar ─────────────────────── */
.extratv-compare-bar-clear {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.extratv-compare-bar-clear:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #ef4444;
    border-color: #ef4444;
}

/* ── Empty state ─────────────────────────────────── */
.extratv-compare-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 0.95rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* ── Mobile bar layout adjustment ────────────────── */
@media ( max-width: 600px ) {
    .extratv-compare-bar-clear {
        flex: 1;
    }
    .extratv-compare-bar-trigger {
        flex: 2;
    }
}
