/* ==========================================================================
   زر تسجيل الدخول في الهيدر — مظهر أوضح وأخف من الحبة الضيقة السابقة
   ========================================================================== */

.header-wrapper a.radius-btn.login-btn {
    width: auto;
    min-width: 0;
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(57, 219, 191, 0.42);
    background: rgba(57, 219, 191, 0.1);
    color: #39dbbf !important;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.header-wrapper a.radius-btn.login-btn:hover,
.header-wrapper a.radius-btn.login-btn:focus-visible {
    background: #39dbbf;
    border-color: #39dbbf;
    color: #0e1019 !important;
}

.header-wrapper a.radius-btn.login-btn:active {
    transform: translateY(0);
}

/* الوضع الفاتح */
html.light .header-wrapper a.radius-btn.login-btn {
    border-color: rgba(22, 174, 148, 0.5);
    background: rgba(22, 174, 148, 0.07);
    color: #16ae94 !important;
}

html.light .header-wrapper a.radius-btn.login-btn:hover,
html.light .header-wrapper a.radius-btn.login-btn:focus-visible {
    background: #16ae94;
    border-color: #16ae94;
    color: #fff !important;
}

/* لغات LTR: خط أوضح للنص الإنجليزي/الفرنسي/الإسباني */
html[dir="ltr"] .header-wrapper a.radius-btn.login-btn {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================================
   تنبيهات المباريات (app-js/push-prompt.js): مفتاح في الإعدادات، وبطاقة تظهر بعد
   "متابعة". الأساس داكن و html.light يعيد الألوان الفاتحة كبقية الموقع.
   ============================================================ */
.push-row-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #707488;
}
html.light .push-row-hint {
    color: #6C6F83;
}

.push-prompt {
    position: fixed;
    z-index: 60;
    bottom: 24px;
    /* يمين ثابت في العربية والإنجليزية: أسفل اليسار يشغله زر الخصوصية من جوجل (Funding Choices) */
    right: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    width: min(360px, calc(100vw - 24px));
    padding: 16px;
    border-radius: 16px;
    background: #191D2D;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    line-height: 1.6;
    animation: push-prompt-in 0.25s ease-out;
}
html.light .push-prompt {
    background: #FFFFFF;
    color: #0E1019;
    box-shadow: 0 10px 30px rgba(14, 16, 25, 0.12);
}
.push-prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(57, 219, 191, 0.12);
    color: #39DBBF;
}
html.light .push-prompt-icon {
    background: rgba(22, 174, 148, 0.1);
    color: #16AE94;
}
.push-prompt-text {
    margin: 0;
    font-weight: 700;
}
.push-prompt-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.push-prompt-actions button {
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.push-prompt-yes {
    background: #39DBBF;
    color: #0E1019;
}
html.light .push-prompt-yes {
    background: #16AE94;
    color: #FFFFFF;
}
.push-prompt-later {
    background: transparent;
    color: #707488;
}
html.light .push-prompt-later {
    color: #6C6F83;
}
.push-prompt-actions button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
/* فوق شريط التنقل السفلي في الجوال (ارتفاعه 92px) */
@media (max-width: 991px) {
    .push-prompt {
        inset-inline: 12px;
        width: auto;
        bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }
}
@keyframes push-prompt-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .push-prompt { animation: none; }
}

/* ============================================================
   جرس المباراة (partials/match_mobile_toolbar، ورأس صفحة التشكيلة lineup-detail،
   و app-js/push-prompt.js): أيقونة جرس دائرية فقط كبقية أزرار الشريط.
   نصّه («نبّهني بأحداث المباراة» أو حالته) في .mm-bell-label يظهر تلميحاً عند
   تمرير الفأرة أو التركيز بلوحة المفاتيح، وفي اللمس تكفي رسالة ما بعد الضغط.
   ============================================================ */
.profile-header-wrapper.match .mm-icon-btn.mm-bell {
    position: relative;
}
.profile-header-wrapper.match .mm-icon-btn.mm-bell.is-on,
.match-bell-pill.is-on {
    color: #39DBBF;
    border-color: rgba(57, 219, 191, 0.42);
    background: rgba(57, 219, 191, 0.12);
}
html.light .profile-header-wrapper.match .mm-icon-btn.mm-bell.is-on,
html.light .match-bell-pill.is-on {
    color: #16AE94;
    border-color: rgba(22, 174, 148, 0.5);
    background: rgba(22, 174, 148, 0.08);
}
.profile-header-wrapper.match .mm-icon-btn.mm-bell.is-busy,
.match-bell-pill.is-busy {
    opacity: 0.6;
    cursor: progress;
}
/* الأوسع: في طرف الشريط العلوي دون أن يزيح اسم البطولة عن الوسط */
@media (min-width: 768px) {
    .profile-header-wrapper.match .match-mobile-toolbar {
        position: relative;
    }
    .profile-header-wrapper.match .mm-icon-btn.mm-bell {
        position: absolute;
        top: 50%;
        inset-inline-end: 22px;
        transform: translateY(-50%);
    }
}

/* رأس صفحة التشكيلة: نفس الدائرة بألوان أزرار شريط المباراة، في طرف صف العنوان
   (‎.lineup-breadcrumb-head‎ أدناه). */
.match-bell-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 12px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: background-color .2s ease;
}
.match-bell-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}
html.light .match-bell-pill {
    border-color: rgba(14, 16, 25, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: #2a3142;
    box-shadow: 0 1px 4px rgba(14, 16, 25, 0.06);
}
html.light .match-bell-pill:hover {
    background: #ffffff;
    border-color: rgba(14, 16, 25, 0.16);
}
/* الجرس مقابل سطري العنوان والمسار مباشرة، متوسطاً عليهما في كل المقاسات (طلب صاحب
   الموقع): صف مرن، الكتلة النصية تأخذ ما بقي والجرس في طرفها. كان على الجوال سطراً
   مستقلاً تحت النص التعريفي، وعلى الأوسع مثبتاً على 24px من أعلى البطاقة. */
.lineup-breadcrumb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* غلاف العنوان على الكمبيوتر يضيّق أبناءه على محتواهم، فيلتصق الجرس بالعنوان */
    align-self: stretch;
    width: 100%;
}
.lineup-breadcrumb-head__text {
    flex: 1 1 auto;
    min-width: 0;
}
.lineup-breadcrumb-head .match-bell-pill {
    flex: 0 0 auto;
    margin: 0;
}

/* التاريخ في النص التعريفي لا ينكسر عند شرطته (lineup-detail: bdi.lineup-teaser-date) */
.lineup-teaser-date {
    white-space: nowrap;
}

/* التلميح */
.mm-bell .mm-bell-label,
.match-bell-pill .mm-bell-label,
.add-fav-champ .mm-bell-label,
.team-bell .mm-bell-label {
    display: none;
}
@media (hover: hover) {
    .mm-bell .mm-bell-label,
    .match-bell-pill .mm-bell-label,
    .add-fav-champ .mm-bell-label,
    .team-bell .mm-bell-label {
        display: block;
        position: absolute;
        top: calc(100% + 8px);
        inset-inline-end: 0;
        z-index: 30;
        padding: 6px 10px;
        border-radius: 8px;
        background: #0E1019;
        color: #ffffff;
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
        white-space: nowrap;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity .15s ease, transform .15s ease, visibility .15s;
        pointer-events: none;
    }
    html.light .mm-bell .mm-bell-label,
    html.light .match-bell-pill .mm-bell-label,
    html.light .add-fav-champ .mm-bell-label,
    html.light .team-bell .mm-bell-label {
        background: #2a3142;
    }
    .mm-bell:hover .mm-bell-label,
    .mm-bell:focus-visible .mm-bell-label,
    .match-bell-pill:hover .mm-bell-label,
    .match-bell-pill:focus-visible .mm-bell-label,
    .add-fav-champ:hover .mm-bell-label,
    .add-fav-champ:focus-visible .mm-bell-label,
    .team-bell:hover .mm-bell-label,
    .team-bell:focus-visible .mm-bell-label {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* ============================================================
   رسائل التنبيه أعلى الصفحة (toastMessage في js/script.js): الحاوية ثابتة بعرض 90%
   فوق كل شيء، فكانت تحجب الضغط على الهيدر كله حتى تختفي. الضغط يمرّ الآن من
   الحاوية وصفوفها، ولا يلتقطه إلا كرت الرسالة نفسه (الضغط عليه يغلقه).
   ============================================================ */
.toast_messages,
.toast_messages .toast_message_item {
    pointer-events: none;
}
.toast_messages .toast_message {
    pointer-events: auto;
}
