/**
 * FBC Live - Frontend Styles
 * Version: 1.1.0
 */

/* =================================================================
   CONTAINER
   ================================================================= */

.fbc-live {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1a1a1a;
}

/* =================================================================
   HEADER AREA
   ================================================================= */

.fbc-live__header {
    text-align: center;
    padding: 30px 20px 20px;
}

.fbc-live__title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 12px 0 8px;
    line-height: 1.3;
    color: #1a1a1a;
}

.fbc-live__date {
    font-size: 1.1em;
    color: #555;
    margin: 0 0 5px;
}

.fbc-live__message {
    font-size: 1.05em;
    color: #666;
    margin: 8px 0 0;
    line-height: 1.5;
}

.fbc-live__icon-church {
    color: #888;
    margin-bottom: 8px;
}

/* =================================================================
   BADGES
   ================================================================= */

.fbc-live__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fbc-live__badge--live {
    background: #dc2626;
    color: #fff;
}

.fbc-live__badge--upcoming {
    background: #2c2c2c;
    color: #FCD00E;
}

/* Pulse animation */
.fbc-live__pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: fbc-pulse 1.5s ease-in-out infinite;
}

@keyframes fbc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* =================================================================
   VIDEO PLAYER (LIVE + REPLAY)
   ================================================================= */

.fbc-live__player {
    margin: 0 auto;
    max-width: 900px;
    position: relative;
}

.fbc-live__embed-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fbc-live__embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =================================================================
   UNMUTE PROMPT
   ================================================================= */

.fbc-live__unmute-prompt {
    display: block;
    margin: 12px auto 0;
    padding: 10px 24px;
    background: #2c2c2c;
    color: #FCD00E;
    border: 2px solid #FCD00E;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fbc-unmute-pulse 2s ease-in-out infinite;
}

.fbc-live__unmute-prompt:hover {
    background: #FCD00E;
    color: #2c2c2c;
    transform: translateY(-1px);
}

@keyframes fbc-unmute-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(252, 208, 14, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(252, 208, 14, 0); }
}

/* =================================================================
   THUMBNAIL WITH COUNTDOWN OVERLAY
   ================================================================= */

.fbc-live__thumbnail {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fbc-live__thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.fbc-live__countdown-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 40px 20px 24px;
    text-align: center;
    color: #fff;
}

.fbc-live__countdown-label {
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.fbc-live__countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.fbc-live__countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.fbc-live__countdown-num {
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #FCD00E;
}

.fbc-live__countdown-txt {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-top: 4px;
}

.fbc-live__countdown-sep {
    font-size: 2em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    align-self: flex-start;
    margin-top: 2px;
}

/* =================================================================
   ACTION BUTTONS
   ================================================================= */

.fbc-live__actions {
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fbc-live__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.fbc-live__btn--primary {
    background: #2c2c2c;
    color: #FCD00E;
}
.fbc-live__btn--primary:hover {
    background: #1a1a1a;
    color: #FCD00E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fbc-live__btn--youtube {
    background: #dc2626;
    color: #fff;
}
.fbc-live__btn--youtube:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.fbc-live__btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}
.fbc-live__btn--secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}

/* =================================================================
   NEXT SERVICE BAR
   ================================================================= */

.fbc-live__next-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #2c2c2c;
    color: #fff;
    border-radius: 6px;
    margin: 0 0 4px;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.fbc-live__next-label {
    font-weight: 700;
    color: #FCD00E;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85em;
}

.fbc-live__next-info {
    color: rgba(255, 255, 255, 0.9);
}

/* =================================================================
   LAST SERVICE REPLAY
   ================================================================= */

.fbc-live__replay {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.fbc-live__replay-header {
    text-align: center;
    margin-bottom: 16px;
}

.fbc-live__replay-heading {
    font-size: 1.15em;
    font-weight: 700;
    color: #374151;
    margin: 0 0 6px;
}

.fbc-live__replay-title {
    display: block;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 2px;
}

.fbc-live__replay-date {
    display: block;
    font-size: 0.85em;
    color: #888;
}

.fbc-live__replay-player {
    max-width: 720px;
    margin: 0 auto;
}

.fbc-live__replay-player .fbc-live__embed-wrap {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* =================================================================
   COMPACT BADGE (for sidebars/headers)
   ================================================================= */

.fbc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fbc-live-badge--live {
    background: #dc2626;
    color: #fff;
}
.fbc-live-badge--live:hover {
    background: #b91c1c;
    color: #fff;
    text-decoration: none;
}

.fbc-live-badge--upcoming {
    background: #2c2c2c;
    color: #FCD00E;
}
.fbc-live-badge--upcoming:hover {
    background: #1a1a1a;
    color: #FCD00E;
    text-decoration: none;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 600px) {
    .fbc-live__header {
        padding: 20px 16px 16px;
    }

    .fbc-live__title {
        font-size: 1.3em;
    }

    .fbc-live__countdown-num {
        font-size: 1.6em;
    }

    .fbc-live__countdown-unit {
        min-width: 45px;
    }

    .fbc-live__countdown-sep {
        font-size: 1.5em;
    }

    .fbc-live__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .fbc-live__actions {
        flex-direction: column;
        padding: 16px;
    }

    .fbc-live__next-service {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .fbc-live__replay-player {
        max-width: 100%;
    }
}
