/* =====================================================
   MIDAN HERO
===================================================== */



.portal-midan-hero-placeholder {
    display: none;
}

.portal-midan-hero {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 22px;
    padding: 18px;

    border: 1px solid #eee;
    border-radius: 18px;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);

    transition:
            padding .2s ease,
            gap .2s ease,
            border-radius .2s ease,
            box-shadow .2s ease;
}

.portal-midan-hero-logo {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
            width .2s ease,
            height .2s ease,
            flex-basis .2s ease;
}

.portal-midan-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-midan-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-midan-hero-info h3 {
    margin: 7px 0;

    font-size: 21px;
    font-weight: 700;

    transition:
            margin .2s ease,
            font-size .2s ease;
}

.portal-current-midan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 14px;
    font-weight: 600;

    color: var(--primary-color);
}

.portal-current-season {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #888;
    font-size: 14px;

    transition: font-size .2s ease;
}


/* =====================================================
   HERO أثناء السكرول
===================================================== */

.portal-midan-hero.is-floating {
    position: fixed;
    z-index: 999;

    top: var(--portal-midan-fixed-top, 0px);

    right: 15px;
    left: 15px;

    width: auto;
    max-width: 1100px;
    margin: 0 auto;

    gap: 10px;
    padding: 8px 12px;

    border-radius: 0 0 12px 12px;

    box-shadow: 0 6px 22px rgba(0, 0, 0, .13);
}

.portal-midan-hero.is-floating .portal-midan-hero-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.portal-midan-hero.is-floating .portal-midan-hero-info h3 {
    margin: 0 0 2px;

    font-size: 16px;
}

.portal-midan-hero.is-floating .portal-current-midan-badge {
    display: none;
}

.portal-midan-hero.is-floating .portal-current-season {
    font-size: 13px;
}



/* =====================================================
   MIDAN HERO - COMPACT
===================================================== */

.portal-midan-hero.is-compact {
    gap: 10px;
    padding: 8px 12px;

    border-radius: 12px;

    box-shadow: 0 7px 22px rgba(0, 0, 0, .10);
}

.portal-midan-hero.is-compact .portal-midan-hero-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.portal-midan-hero.is-compact .portal-midan-hero-info h3 {
    margin: 0 0 2px;
    font-size: 16px;
}

.portal-midan-hero.is-compact .portal-current-midan-badge {
    display: none;
}

.portal-midan-hero.is-compact .portal-current-season {
    font-size: 13px;
}


/* =====================================================
   MEMBERSHIP
===================================================== */

.portal-membership-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 24px;
    padding: 12px 14px;

    border-radius: 12px;
    background: #f8f9fa;
}

.portal-section-label {
    font-size: 14px;
    font-weight: 600;
}

.portal-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.portal-membership-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-right: auto;

    min-height: 36px;
    padding: 5px 10px;

    border-radius: 8px;
    background: #fff;

    color: var(--primary-color);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none !important;
}


/* =====================================================
   SECTION
===================================================== */

.portal-section-header,
.portal-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 6px;
    margin-bottom: 14px;
}

.portal-section-header h5,
.portal-section-row h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.portal-section-header p,
.portal-section-row p {
    margin: 4px 0 0;
    color: #888;
    font-size: 14px;
}


/* =====================================================
   QUICK ACTIONS
===================================================== */

.portal-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 120px;
    padding: 14px 8px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;
    color: #333;

    text-align: center;
    text-decoration: none !important;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .035);

    transition:
            transform .15s ease,
            box-shadow .15s ease;
}

.portal-quick-card:active {
    transform: scale(.97);
}

.portal-quick-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92, 45, 145, .08);

    color: var(--primary-color);
    font-size: 19px;
}

.portal-quick-title {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}


/* =====================================================
   SEASON
===================================================== */

.portal-season-btn {
    min-height: 40px;

    border: 1px solid #e5e5e5;
    border-radius: 9px;

    background: #fff;

    font-size: 14px;
}


/* =====================================================
   PARTIES
===================================================== */

.portal-parties-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-party-card {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 105px;
    padding: 12px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;
    color: #333;

    text-decoration: none !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, .035);
}

.portal-party-card:active {
    background: #fafafa;
}

.portal-party-image {
    flex: 0 0 76px;

    width: 76px;
    height: 76px;

    overflow: hidden;

    border-radius: 12px;
}

.portal-party-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.portal-party-info {
    flex: 1;
    min-width: 0;
}

.portal-party-info h6 {
    margin: 7px 0;

    font-size: 16px;
    font-weight: 700;
}

.portal-party-number {
    display: inline-flex;

    padding: 3px 8px;

    border-radius: 6px;

    background: rgba(92, 45, 145, .08);
    color: var(--primary-color);

    font-size: 13px;
    font-weight: 600;
}

.portal-party-date {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #888;
    font-size: 14px;
}

.portal-party-arrow {
    flex: 0 0 20px;

    color: #bbb;
    font-size: 13px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-midan-dashboard {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-midan-hero {
        gap: 14px;
        padding: 14px;

        border-radius: 15px;
    }

    .portal-midan-hero-logo {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .portal-midan-hero-info h3 {
        font-size: 18px;
    }

    .portal-midan-hero.is-floating {
        gap: 9px;
        padding: 7px 10px;

        border-radius: 0 0 10px 10px;
    }

    .portal-midan-hero.is-floating .portal-midan-hero-logo {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .portal-midan-hero.is-floating .portal-midan-hero-info h3 {
        font-size: 16px;
    }

    .portal-midan-hero.is-floating .portal-current-season {
        font-size: 13px;
    }

    .portal-membership-summary {
        align-items: flex-start;
    }

    .portal-membership-card-link {
        width: 100%;
        margin-top: 5px;

        justify-content: center;
    }

    .portal-quick-card {
        min-height: 105px;
    }

    .portal-section-row {
        align-items: flex-end;
    }

    .portal-section-row p {
        display: none;
    }

    .portal-party-card {
        gap: 11px;
    }

    .portal-party-image {
        flex-basis: 65px;
        width: 65px;
        height: 65px;
    }
}
