/* ==========================================================================
   مجمع الفارس التجاري — SECTION 6: profile «الملف التعريفي بالمجمع»
   Section-specific rules only. Namespaced `prf-`.
   Loads AFTER elfares.css AND elfares-ui.css. Reuses the .elx-* kit; adds
   the full-bleed dark-overlaid feature panels + the QR quick-access footer.
   RTL-first: logical properties throughout, no letter-spacing on Arabic.
   ========================================================================== */

/* ---------- Feature panels grid ---------- */
.prf-panels { align-items: stretch; }

/* single-panel layout (PDF only) — center it with a comfortable max width */
.prf-panels--single { display: flex; justify-content: center; }
.prf-panels--single .prf-panel { width: 100%; max-width: 760px; }

/* Each panel is an .elx-card (border / radius / shadow / hover-lift) turned
   into a tall full-bleed image tile with centered overlay content. */
.prf-panel {
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: clamp(340px, 40vw, 460px);
    padding: clamp(28px, 4vw, 52px);
    color: #fff;
    isolation: isolate;
}

/* full-bleed background image (its own layer so it can zoom independently) */
.prf-panel__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    transition: transform .7s var(--elx-ease);
}
.prf-panel:hover .prf-panel__bg { transform: scale(1.07); }

/* navy legibility wash — deepens on hover */
.prf-panel__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(16, 38, 63, .40) 0%,
            rgba(16, 38, 63, .62) 52%,
            rgba(16, 38, 63, .88) 100%),
        linear-gradient(300deg,
            rgba(46, 96, 158, .30) 0%,
            rgba(16, 38, 63, 0) 60%);
    transition: opacity .45s var(--elx-ease);
}
.prf-panel:hover .prf-panel__overlay { opacity: .92; }

/* centered content stack sits above the layers */
.prf-panel__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--elx-4);
    max-width: 34ch;
}

/* icon: outlined by default (white ring on the dark panel), fills on hover */
.prf-panel__icon {
    position: relative;
    margin-bottom: var(--elx-1);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .82);
    color: #fff;
    box-shadow: none;
    transition: background .4s var(--elx-ease), border-color .4s var(--elx-ease),
                color .4s var(--elx-ease), box-shadow .4s var(--elx-ease);
}
.prf-panel:hover .prf-panel__icon {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(0, 165, 229, .34);
}

/* pulsing cyan ring on the video play icon */
.prf-panel__icon--play::before,
.prf-panel__icon--play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--theme-color2);
    opacity: 0;
    animation: prf-pulse 2.6s var(--elx-ease) infinite;
    pointer-events: none;
}
.prf-panel__icon--play::after { animation-delay: 1.3s; }
@keyframes prf-pulse {
    0%   { opacity: .7; transform: scale(1); }
    70%  { opacity: 0;  transform: scale(1.7); }
    100% { opacity: 0;  transform: scale(1.7); }
}
/* nudge the play glyph slightly off-centre so it reads as "play" */
.prf-panel__icon--play i { margin-inline-start: 4px; }

/* quiet glass tag (kicker) */
.prf-panel__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--elx-radius-pill);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: var(--title-font);
    font-weight: 600;
    font-size: .82rem;
    line-height: 1;
}

.prf-panel__title {
    margin: 0;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 2px 18px rgba(16, 38, 63, .5);
}

/* ghost button on top of dark imagery (kit auto-invert only fires on
   dark/brand bands; this panel lives on a tint band, so invert it here) */
.prf-panel .prf-panel__btn {
    margin-top: var(--elx-1);
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.prf-panel:hover .prf-panel__btn {
    background: #fff;
    color: var(--title-dark);
    border-color: #fff;
}
/* the panel is the anchor: its inner "button" must not steal the hover nudge */
.prf-panel:hover .prf-panel__btn i { transform: translateX(-4px); }
.prf-panel--video:hover .prf-panel__btn i { transform: scale(1.12); }

/* ==========================================================================
   QR quick-access footer
   ========================================================================== */
.prf-qr {
    margin-top: clamp(36px, 5vw, 60px);
    padding-top: clamp(28px, 4vw, 44px);
    border-top: 1px solid var(--smoke-color);
    text-align: center;
}
.prf-qr__hint {
    display: inline-flex;
    align-items: center;
    gap: var(--elx-2);
    margin-bottom: var(--elx-6);
    color: var(--body-color);
    font-family: var(--title-font);
    font-weight: 600;
    font-size: .95rem;
}
.prf-qr__hint i { color: var(--theme-color2); }

.prf-qr__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 2.4vw, 28px);
}
.prf-qr__item { flex: 0 0 auto; }

.prf-qr__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--elx-3);
    width: clamp(128px, 15vw, 156px);
    padding: 16px 16px 18px;
    background: #fff;
    border: 1px solid var(--smoke-color);
    border-radius: var(--elx-radius);
    box-shadow: var(--elx-shadow);
    transition: transform .35s var(--elx-ease),
                box-shadow .35s var(--elx-ease),
                border-color .35s var(--elx-ease);
}
.prf-qr__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--elx-shadow-md);
    border-color: transparent;
    color: inherit;
}

.prf-qr__img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--elx-radius-sm);
    overflow: hidden;
    background: var(--gray-color);
}
.prf-qr__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.prf-qr__label {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: 700;
    font-size: .9rem;
    line-height: 1;
}
.prf-qr__card:hover .prf-qr__label { color: var(--theme-color); }

/* ==========================================================================
   Responsive + motion
   ========================================================================== */
@media (max-width: 575px) {
    .prf-panel { min-height: 300px; }
    .prf-qr__card { width: clamp(120px, 40vw, 150px); }
}

@media (prefers-reduced-motion: reduce) {
    .prf-panel__bg,
    .prf-panel__overlay,
    .prf-panel__btn,
    .prf-qr__card { transition: none; }
    .prf-panel__icon--play::before,
    .prf-panel__icon--play::after { animation: none; }
}
