/* =========================================================
   FluentCommunity Video Calls — Portal Styles
   ========================================================= */

/* ── Space header call buttons ──────────────────────────── */
.fc-jitsi-space-link,
.fc-zoom-space-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.fc-jitsi-space-link {
    color: var(--color-primary, #7c6af7);
    border: 1px solid var(--color-primary, #7c6af7);
}
.fc-jitsi-space-link:hover {
    background: var(--color-primary, #7c6af7);
    color: #fff;
}
.fc-zoom-space-link {
    color: #2D8CFF;
    border: 1px solid #2D8CFF;
}
.fc-zoom-space-link:hover {
    background: #2D8CFF;
    color: #fff;
}

/* ── LIVE tag on call header button ─────────────────────── */
.fc-jitsi-live-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    background: #e53e3e;
    color: #fff;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 4px;
    animation: fc-pulse 1.5s ease-in-out infinite;
}
.fc-live-count-chip {
    font-size: 10px;
    color: #e53e3e;
    font-weight: 600;
    margin-left: 3px;
}

/* ── LIVE CARD (sidebar before-content) ─────────────────── */
.fc-live-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border: 1px solid rgba(229, 62, 62, 0.35);
    border-radius: 14px;
    padding: 18px 18px 14px;
    margin-bottom: 18px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, .22),
        0 0 0 1px rgba(229, 62, 62, .10) inset;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind the card */
.fc-live-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229,62,62,.22) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Card header row ──────────────────────────────────────── */
.fc-live-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

/* Outer pulse ring */
.fc-live-pulse-ring {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #e53e3e;
    animation: fc-ring-pulse 1.8s ease-out infinite;
    opacity: 0;
}

/* Inner solid dot */
.fc-live-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e53e3e;
    box-shadow: 0 0 8px rgba(229,62,62,.8);
    flex-shrink: 0;
    margin-left: 1px;
    animation: fc-dot-glow 1.8s ease-in-out infinite;
}

.fc-live-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e53e3e;
    background: rgba(229,62,62,.12);
    border: 1px solid rgba(229,62,62,.3);
    border-radius: 4px;
    padding: 1px 7px;
}

.fc-live-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    letter-spacing: .2px;
}

/* ── Card body ─────────────────────────────────────────── */
.fc-live-card__body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fc-live-icon {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
}

.fc-live-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
}

.fc-live-count {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    margin: 0;
    line-height: 1;
}

/* ── Join button ──────────────────────────────────────── */
.fc-live-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    border-radius: 9px;
    background: linear-gradient(90deg, #e53e3e 0%, #c53030 100%);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-decoration: none !important;
    transition: filter .2s, transform .15s;
    box-shadow: 0 3px 12px rgba(229,62,62,.35);
}
.fc-live-join-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(229,62,62,.45);
}
.fc-live-join-btn:active {
    transform: translateY(0);
}
.fc-live-join-btn svg {
    flex-shrink: 0;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fc-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

@keyframes fc-dot-glow {
    0%, 100% { box-shadow: 0 0 6px rgba(229,62,62,.7); }
    50%       { box-shadow: 0 0 14px rgba(229,62,62,1); }
}

@keyframes fc-ring-pulse {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* ── Dark-mode compatibility ──────────────────────────── */
.fcom-dark .fc-live-card {
    border-color: rgba(229,62,62,.45);
}
