/* ==========================================================================
   BBT FAN ENGAGEMENT & INTERACTIVE SUITE STYLESHEET
   1. 1v1 Face-Off Battles ("Who Would You Save?")
   2. "I Voted!" Shareable Story Card Canvas & Modal Section
   3. Weekly Eviction Predictor ("BBT Oracle")
   4. Daily Contestant Sentiment & Drama Meter
   5. Daily Episode Rating & Rapid Reaction Poll
   6. Safe Zone vs Danger Zone Risk Meter
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 1v1 Face-Off Duel Battle
   -------------------------------------------------------------------------- */
.bbt-faceoff-section {
    max-width: 1200px;
    margin: 25px auto 35px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.bbt-faceoff-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.92) 100%);
    border: 1.5px solid rgba(234, 88, 12, 0.35);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(234, 88, 12, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.bbt-faceoff-header {
    text-align: center;
    margin-bottom: 24px;
}

.bbt-faceoff-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
}

.bbt-faceoff-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.bbt-faceoff-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.bbt-faceoff-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(12px, 3vw, 24px);
    margin-bottom: 22px;
}

.bbt-faceoff-fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 15px;
    transition: all 0.3s ease;
}

.fighter-left {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.fighter-right {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.bbt-fighter-avatar-wrap {
    position: relative;
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    border-radius: 50%;
    margin-bottom: 12px;
}

.fighter-left .bbt-fighter-avatar-wrap {
    border: 3px solid #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.fighter-right .bbt-fighter-avatar-wrap {
    border: 3px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.bbt-fighter-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bbt-fighter-pct {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pct-left { background: #ef4444; }
.pct-right { background: #3b82f6; }

.bbt-fighter-name {
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0;
}

.bbt-fighter-votes {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 14px;
}

.bbt-faceoff-vote-btn {
    width: 100%;
    max-width: 180px;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-left {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.btn-left:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.6);
}

.btn-right {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.6);
}

.bbt-faceoff-vs-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bbt-vs-emblem {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
    border: 2px solid #ffffff;
    animation: bbt-pulse-vs 2s infinite alternate;
}

@keyframes bbt-pulse-vs {
    from { transform: scale(0.95); }
    to { transform: scale(1.08); }
}

.bbt-faceoff-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.bbt-progress-left {
    background: linear-gradient(90deg, #ef4444, #f87171);
    height: 100%;
    transition: width 0.5s ease;
}

.bbt-progress-right {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    height: 100%;
    transition: width 0.5s ease;
}

/* --------------------------------------------------------------------------
   2. "I Voted!" Shareable Story Card Section inside Modal
   -------------------------------------------------------------------------- */
.bbt-story-card-generator-section {
    margin: 18px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(234, 88, 12, 0.05) 100%);
    border: 1.5px dashed rgba(245, 158, 11, 0.4);
    border-radius: 18px;
    text-align: center;
}

.bbt-story-card-heading {
    font-size: 14.5px;
    font-weight: 800;
    color: #fbbf24;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bbt-story-card-desc {
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.bbt-story-download-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

.bbt-story-download-btn:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.5);
}

/* --------------------------------------------------------------------------
   3. Eviction Predictor ("BBT Oracle")
   -------------------------------------------------------------------------- */
.bbt-predictor-section {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.bbt-predictor-card {
    background: linear-gradient(135deg, #0b1329 0%, #17153a 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.35);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.15);
}

.bbt-predictor-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bbt-predictor-badge {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.8px;
}

.bbt-predictor-week {
    font-size: 12px;
    color: #c084fc;
    font-weight: 700;
}

.bbt-predictor-title {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    margin: 0 0 6px 0;
}

.bbt-predictor-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    text-align: center;
    margin: 0 0 24px 0;
}

.bbt-predictor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.bbt-pred-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
}

.bbt-pred-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

.bbt-pred-thumb-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(168, 85, 247, 0.4);
}

.bbt-pred-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbt-pred-info {
    flex: 1;
    min-width: 0;
}

.bbt-pred-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bbt-pred-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}

.bbt-pred-bar-fill {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    height: 100%;
    transition: width 0.4s ease;
}

.bbt-pred-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

.bbt-pred-pct {
    color: #f472b6;
    font-weight: 700;
}

.bbt-pred-vote-btn {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #d8b4fe;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.bbt-pred-vote-btn:hover {
    background: #a855f7;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. Contestant Sentiment & Drama Meter
   -------------------------------------------------------------------------- */
.bbt-sentiment-meter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 10px;
    margin-top: 10px;
}

.bbt-sentiment-tag {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbt-sentiment-reactions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bbt-sentiment-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 3px 6px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
}

.bbt-sentiment-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.15);
}

.bbt-sentiment-emoji {
    font-size: 15px;
}

.bbt-sentiment-count {
    font-size: 10.5px;
    font-weight: 800;
    color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   5. Daily Episode Rating & Rapid Reaction Poll
   -------------------------------------------------------------------------- */
.bbt-episode-poll-card {
    background: linear-gradient(135deg, #18152e 0%, #0f172a 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.bbt-ep-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.bbt-ep-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.bbt-ep-stars-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 12px;
}

.bbt-ep-score {
    font-size: 14px;
    font-weight: 900;
    color: #fbbf24;
}

.bbt-ep-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    cursor: pointer;
    font-size: 16px;
}

.bbt-star {
    transition: transform 0.15s ease;
}
.bbt-star:hover {
    transform: scale(1.3);
}

.bbt-ep-total-ratings {
    font-size: 11px;
    color: #94a3b8;
}

.bbt-ep-question-box {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.bbt-ep-question {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 10px 0;
}

.bbt-ep-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.bbt-ep-opt-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.2s ease;
}

.bbt-ep-opt-btn:hover {
    background: rgba(234, 88, 12, 0.2);
    border-color: #ea580c;
}

.bbt-opt-pct {
    font-size: 12px;
    font-weight: 900;
    color: #fbbf24;
}

.bbt-ep-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.bbt-ep-bar-fill1 {
    background: #ea580c;
    height: 100%;
    transition: width 0.4s ease;
}
.bbt-ep-bar-fill2 {
    background: #3b82f6;
    height: 100%;
    transition: width 0.4s ease;
}

/* --------------------------------------------------------------------------
   6. Safe Zone vs Danger Zone Risk Meter
   -------------------------------------------------------------------------- */
.bbt-risk-meter-section {
    max-width: 1200px;
    margin: 25px auto 35px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.bbt-risk-header {
    text-align: center;
    margin-bottom: 20px;
}

.bbt-risk-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.bbt-risk-title {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.bbt-risk-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
}

.bbt-risk-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.bbt-risk-col {
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.risk-safe {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.risk-moderate {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
}

.risk-danger {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    animation: bbt-danger-glow 2.5s infinite alternate;
}

@keyframes bbt-danger-glow {
    from { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px rgba(239, 68, 68, 0.2); }
    to { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 30px rgba(239, 68, 68, 0.4); }
}

.bbt-risk-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bbt-risk-col-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    flex: 1;
    margin-left: 8px;
}

.bbt-risk-chip {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
}

.chip-safe { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.chip-moderate { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.chip-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.bbt-risk-names {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbt-risk-name-pill {
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
}

.pill-safe { background: rgba(16, 185, 129, 0.08); color: #a7f3d0; }
.pill-moderate { background: rgba(245, 158, 11, 0.08); color: #fde68a; }
.pill-danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; font-weight: 800; }

/* --------------------------------------------------------------------------
   Mobile Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .bbt-faceoff-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .bbt-faceoff-vs-wrap {
        margin: -5px 0;
    }
    .bbt-risk-columns {
        grid-template-columns: 1fr;
    }
    .bbt-predictor-grid {
        grid-template-columns: 1fr;
    }
}
