/* contestant-detail.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Prosto+One&family=Protest+Strike&display=swap');

.contestant-detail-section {
    background-image: url('/static/images/tr-blue-bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    padding: 3vw 5vw;
}

.contestant-detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contestant-detail-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(40, 20, 60, 0.85) 100%);
    border-radius: 25px;
    padding: 3rem;
    border: 3px solid #F100F7;
    box-shadow: 0 10px 50px rgba(241, 0, 247, 0.3), 0 0 100px rgba(0, 229, 255, 0.1);
    backdrop-filter: blur(10px);
}

.action-buttons-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.back-button {
    background: linear-gradient(135deg, #FFA200 0%, #FF5E00 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 162, 0, 0.4);
    font-family: 'Poppins', sans-serif;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 162, 0, 0.6);
}

.share-button {
    background: linear-gradient(135deg, #00E5FF 0%, #0099CC 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

.share-icon {
    font-size: 1.2rem;
}

.contestant-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 162, 0, 0.3);
}

.profile-photo-container {
    position: relative;
    flex-shrink: 0;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFA200;
    box-shadow: 0 0 30px rgba(255, 162, 0, 0.6), 0 0 60px rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 162, 0, 0.8), 0 0 80px rgba(0, 229, 255, 0.4);
}

.contestant-header-info {
    flex: 1;
    min-width: 250px;
}

.contestant-username {
    color: #FFA200;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 0.5rem 0;
    font-family: 'Prosto One', cursive;
    text-shadow: 0 0 20px rgba(255, 162, 0, 0.5);
}

.contestant-arena {
    color: #00E5FF;
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin: 0.5rem 0;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.contestant-votes {
    color: white;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin: 1rem 0;
}

.votes-count {
    color: #FFA200;
    font-weight: 700;
    font-size: 1.2em;
}

.submission-section {
    margin: 3rem 0;
}

.submission-title {
    color: #FFA200;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #F100F7;
    font-family: 'Prosto One', cursive;
    text-shadow: 0 0 15px rgba(255, 162, 0, 0.4);
}

.submission-description {
    color: white;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.media-container {
    margin: 3rem 0;
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #00E5FF;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), 0 10px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.image-wrapper {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.submission-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 20px;
    border: 4px solid #00E5FF;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), 0 10px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.5);
}

.meta-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(241, 0, 247, 0.3);
    text-align: center;
}

.meta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.vote-section {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vote-button-detail {
    background: linear-gradient(135deg, #FFA200 0%, #FF5E00 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 162, 0, 0.4);
    font-family: 'Poppins', sans-serif;
}

.vote-button-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 162, 0, 0.6);
}

.vote-button-detail:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contestant-detail-card {
        padding: 1.5rem;
    }
    
    .contestant-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .action-buttons-header {
        flex-direction: column;
    }
    
    .back-button,
    .share-button {
        width: 100%;
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════════════
   WHO VOTED - Real-time Voter Box
   ═══════════════════════════════════════════════════ */

/* Detail page - full box */
.who-voted-box {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(255, 162, 0, 0.07) 100%);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

.who-voted-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00E5FF, #FF00FF, #FFA200);
    border-radius: 16px 16px 0 0;
}

.who-voted-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.who-voted-title {
    color: #00E5FF;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.who-voted-icon {
    font-size: 1.1rem;
}

.live-badge {
    background: rgba(255, 60, 60, 0.15);
    border: 1px solid rgba(255, 60, 60, 0.4);
    color: #ff4444;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.08em;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.voter-count {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}

.voter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.voter-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.voter-chip:hover {
    background: rgba(0, 229, 255, 0.25);
    border-color: #00E5FF;
    color: #00E5FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.voter-overflow {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    margin: 0.5rem 0 0;
    font-style: italic;
}

.no-voters-msg {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* ── Mini box for contestants list cards ── */
.who-voted-box-mini {
    padding: 0.65rem 0.85rem 0.65rem;
    background: rgba(0, 229, 255, 0.05);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 0 0 14px 14px;
    margin-top: 0.5rem;
}

.who-voted-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.who-voted-mini-title {
    color: #00E5FF;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.live-dot {
    color: #ff4444;
    font-size: 0.65rem;
    animation: livePulse 2s ease-in-out infinite;
}

.voter-chips-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 24px;
}

.voter-chip-mini {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255,255,255,0.85);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.voter-chip-mini:hover {
    background: rgba(0, 229, 255, 0.15);
    color: #00E5FF;
    border-color: rgba(0, 229, 255, 0.3);
}

.voter-chip-mini.voter-none {
    color: rgba(255,255,255,0.35);
    font-style: italic;
    border-color: transparent;
    background: transparent;
}

.voter-chip-mini.voter-more {
    color: rgba(255,255,255,0.45);
    font-style: italic;
    border-color: transparent;
    background: transparent;
}

.voter-loading {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    font-style: italic;
}
/* ═══════════════════════════════════════════════════ */
