/* ============================================================================
 * TraPay — /هات-ووچر  HotVoucher HUB layout
 * Sits on top of buy-hotvoucher.css (shares --hotv-green amber + dark hero).
 * Scoped to .hotvh-* so it never leaks into the buy landing.
 * ============================================================================ */

/* ── HERO (centered hub variant) ─────────────────────────────────────────── */
.hotvh-hero { padding: 4.5rem 1.5rem 5rem; text-align: center; }
.hotvh-hero__inner {
    position: relative;
    max-width: 46rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}
.hotvh-hero__logo {
    width: 5.5rem; height: 5.5rem;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(240, 140, 30, 0.35));
    margin-top: 0.4rem;
}
.hotvh-title {
    font-size: clamp(2rem, 5.2vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    color: #f8fafc;
    margin: 0;
    overflow-wrap: anywhere;
}
.hotvh-title__accent { color: var(--hotv-green); font-weight: 700; }
.hotvh-lead {
    max-width: 40rem;
    font-size: clamp(1rem, 2.4vw, 1.18rem);
    line-height: 1.9;
    color: #cbd5e1;
    margin: 0;
}
.hotvh-lead strong { color: #fde3bd; font-weight: 700; }

/* ── ACTION CARDS ────────────────────────────────────────────────────────── */
.hotvh-cards {
    max-width: 64rem;
    margin: -3.5rem auto 0;          /* pull up so cards overlap the hero base */
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}
.hotvh-cards__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
@media (min-width: 780px) {
    .hotvh-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hotvh-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.9rem 1.75rem 1.75rem;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 1.25rem;
    box-shadow: 0 18px 44px -22px rgba(15, 23, 42, 0.35);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hotvh-card::before {                 /* top accent bar */
    content: "";
    position: absolute; inset: 0 0 auto 0;
    height: 4px;
    background: var(--accent, var(--hotv-green));
}
.hotvh-card:hover,
.hotvh-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 26px 56px -20px rgba(15, 23, 42, 0.42);
    border-color: color-mix(in srgb, var(--accent, var(--hotv-green)) 40%, #eef0f4);
}
.hotvh-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }

.hotvh-card--buy  { --accent: var(--hotv-green); }
.hotvh-card--cash { --accent: var(--brand, #0d3e7e); }

.hotvh-card__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3.1rem; height: 3.1rem;
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
}
.hotvh-card__ic svg { width: 1.55rem; height: 1.55rem; }

.hotvh-card__title {
    font-size: 1.32rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.hotvh-card__desc {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #475569;
    margin: 0;
}
.hotvh-card__list {
    list-style: none;
    margin: 0.15rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hotvh-card__list li {
    position: relative;
    padding-inline-start: 1.5rem;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.6;
}
.hotvh-card__list li::before {        /* check mark, uses accent */
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.35rem;
    width: 0.95rem; height: 0.55rem;
    border-inline-start: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(-45deg);
    border-radius: 1px;
}

.hotvh-card__cta {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 0.5rem;
    align-self: flex-start;
    padding: 0.7rem 1.35rem;
    border-radius: 0.75rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    transition: filter .2s ease, gap .2s ease;
}
.hotvh-card:hover .hotvh-card__cta { filter: brightness(1.06); gap: 0.8rem; }
.hotvh-card__cta svg { width: 1.05rem; height: 1.05rem; }
.rtl-flip { transform: scaleX(-1); }

/* ── WHY strip spacing on the hub ────────────────────────────────────────── */
.hotvh-why { padding-top: 4rem; }

/* ── RELATED VOUCHER CHIPS ───────────────────────────────────────────────── */
.hotvh-related {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem 1.5rem 4.5rem;
    text-align: center;
}
.hotvh-related__lead {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0.5rem auto 1.4rem;
    max-width: 40rem;
}
.hotvh-related__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}
.hotvh-chip {
    display: inline-flex; align-items: center;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.hotvh-chip:hover {
    background: color-mix(in srgb, var(--hotv-green) 12%, #f1f5f9);
    border-color: color-mix(in srgb, var(--hotv-green) 40%, #e2e8f0);
    color: #7a3d05;
}

/* ── DARK MODE ───────────────────────────────────────────────────────────── */
:root.dark .hotvh-card,
.dark .hotvh-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.6);
}
.dark .hotvh-card__title { color: #f1f5f9; }
.dark .hotvh-card__desc  { color: #94a3b8; }
.dark .hotvh-card__list li { color: #cbd5e1; }
.dark .hotvh-card__ic { background: color-mix(in srgb, var(--accent) 22%, #0f172a); }
.dark .hotvh-chip {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
.dark .hotvh-chip:hover { color: #fde3bd; }
.dark .hotvh-related__lead { color: #94a3b8; }

/* ── COMPARISON TABLE (in the article block) ─────────────────────────────── */
.hotv-table-wrap { overflow-x: auto; margin: 1.4rem 0; -webkit-overflow-scrolling: touch; }
.hotv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 34rem;
    background: #fff;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.3);
}
.hotv-table thead th {
    background: color-mix(in srgb, var(--hotv-green) 12%, #fff);
    color: #7a3d05;
    font-weight: 800;
    text-align: right;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}
.hotv-table td {
    padding: 0.8rem 1rem;
    border-top: 1px solid #eef0f4;
    color: #334155;
    text-align: right;
    vertical-align: middle;
}
.hotv-table tbody tr:nth-child(even) td { background: #fafbfc; }
.hotv-table a { color: var(--brand, #0d3e7e); font-weight: 600; text-decoration: none; }
.hotv-table a:hover { text-decoration: underline; }
.hotv-note {
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    border-inline-start: 3px solid var(--hotv-green);
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    line-height: 1.8;
}
.dark .hotv-table { background: #0f172a; box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.dark .hotv-table thead th { background: color-mix(in srgb, var(--hotv-green) 20%, #0f172a); color: #fde3bd; }
.dark .hotv-table td { border-top-color: #1e293b; color: #cbd5e1; }
.dark .hotv-table tbody tr:nth-child(even) td { background: #131c2e; }
.dark .hotv-note { background: #131c2e; color: #94a3b8; }

/* ── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hotvh-card, .hotvh-card__cta, .hotvh-chip { transition: none; }
    .hotvh-card:hover, .hotvh-card:focus-visible { transform: none; }
}
