/* =========================================================
   SELANGOR FC TEAM CARD HEADER WIDGET v2.1
========================================================= */

.sfc-tc-live,
.sfc-tc-live * {
    box-sizing: border-box;
}

.sfc-tc-live {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    vertical-align: middle;
}

.sfc-tc-live__loading {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, .22);
    border-top-color: #f5c400;
    border-radius: 50%;
    animation: sfcTcSpin .75s linear infinite;
}

/* Guest state */
.sfc-tc-guest-widget {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 6px 14px 6px 6px;
    color: #fff !important;
    text-decoration: none !important;
    border-left: 1px solid rgba(245, 196, 0, .38);
    border-right: 1px solid rgba(245, 196, 0, .18);
    transition: background-color .25s ease, transform .25s ease;
}

.sfc-tc-guest-widget:hover,
.sfc-tc-guest-widget:focus-visible {
    color: #fff !important;
    background: rgba(223, 23, 31, .13);
    transform: translateY(-1px);
}

.sfc-tc-guest-widget:focus-visible,
.sfc-tc-member-widget__main:focus-visible,
.sfc-tc-member-widget__logout:focus-visible {
    outline: 2px solid #f5c400;
    outline-offset: 3px;
}

.sfc-tc-guest-widget__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #fff;
    background: linear-gradient(145deg, #d51b29, #8d0710);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.sfc-tc-guest-widget__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfc-tc-guest-widget__copy,
.sfc-tc-member-widget__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1;
}

.sfc-tc-guest-widget__greeting,
.sfc-tc-member-widget__name {
    color: #fff;
    font-family: "RedGiants", "Arial Narrow", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.sfc-tc-guest-widget__login,
.sfc-tc-member-widget__points {
    margin-top: 6px;
    color: #f5c400;
    font-family: "RedGiants", "Arial Narrow", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .055em;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Member state */
.sfc-tc-member-widget {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    border-left: 1px solid rgba(245, 196, 0, .38);
    border-right: 1px solid rgba(245, 196, 0, .18);
}

.sfc-tc-member-widget__main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 6px 15px 6px 7px;
    color: #fff !important;
    text-decoration: none !important;
    transition: background-color .25s ease;
}

.sfc-tc-member-widget__main:hover {
    color: #fff !important;
    background: rgba(245, 196, 0, .06);
}

.sfc-tc-member-widget__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #090909;
    background: linear-gradient(145deg, #ffd31a, #e9ae00);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
    font-family: "RedGiants", "Arial Narrow", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.sfc-tc-member-widget__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 56px;
    color: rgba(255,255,255,.8) !important;
    text-decoration: none !important;
    border-left: 1px solid rgba(245,196,0,.22);
    transition: color .25s ease, background-color .25s ease;
}

.sfc-tc-member-widget__logout svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfc-tc-member-widget__logout:hover {
    color: #fff !important;
    background: #df171f;
}

/* Account shortcode kept for compatibility */
.sfc-tc-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.sfc-tc-account__welcome { font-weight: 700; }
.sfc-tc-account__points { color: #f5a800; }
.sfc-tc-account__button {
    padding: 10px 16px;
    color: #080808 !important;
    background: #f5c400;
    text-decoration: none !important;
}
.sfc-tc-account__button:hover {
    color: #fff !important;
    background: #df171f;
}

@keyframes sfcTcSpin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
    .sfc-tc-guest-widget,
    .sfc-tc-member-widget__main {
        min-height: 48px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .sfc-tc-member-widget { min-height: 48px; }

    .sfc-tc-guest-widget__icon,
    .sfc-tc-member-widget__avatar {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .sfc-tc-guest-widget__greeting,
    .sfc-tc-member-widget__name {
        font-size: 12px;
    }

    .sfc-tc-guest-widget__login,
    .sfc-tc-member-widget__points {
        font-size: 9px;
    }

    .sfc-tc-member-widget__logout {
        flex-basis: 42px;
        width: 42px;
        height: 48px;
    }
}
