/* ============================================
   Battle of the Bands Styles
   ============================================ */

/* Landing page hero */
.botb-hero {
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.botb-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/botb/banners/stage-lights.webp') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.botb-hero-content {
    position: relative;
    z-index: 1;
}

.botb-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #ff6b6b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    to { background-position: 200% center; }
}

/* Performer cards */
.performer-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.performer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(220,53,69,0.3);
}

.performer-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.performer-card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, rgba(220,53,69,0.2) 0%, rgba(220,53,69,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(220,53,69,0.3);
}

.performer-card-body {
    padding: 1.25rem;
}

.performer-type-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.performer-type-band { background: #dc3545; color: #fff; }
.performer-type-solo { background: #6f42c1; color: #fff; }
.performer-type-comedian { background: #fd7e14; color: #fff; }

/* Leaderboard */
.leaderboard-container {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    overflow: hidden;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.leaderboard-row:hover {
    background: rgba(255,255,255,0.05);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.leaderboard-rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.leaderboard-rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.leaderboard-rank-3 { background: linear-gradient(135deg, #cd7f32, #b87333); color: #fff; }
.leaderboard-rank-default { background: rgba(255,255,255,0.1); color: #adb5bd; }

.leaderboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 1rem;
    flex-shrink: 0;
}

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

.leaderboard-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-stats {
    font-size: 0.875rem;
    color: #adb5bd;
}

.leaderboard-score {
    text-align: right;
    flex-shrink: 0;
    margin-left: 1rem;
}

.leaderboard-score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
}

.leaderboard-score-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

/* Star rating */
.star-rating {
    display: inline-flex;
    gap: 0.25rem;
}

.star-rating .star {
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffd700;
    transform: scale(1.1);
}

.star-rating .star.filled {
    color: #ffd700;
}

.star-rating-large .star {
    font-size: 2.5rem;
}

/* Voting interface */
.vote-container {
    min-height: 100vh;
    padding: 1rem;
    padding-bottom: 100px;
}

.vote-performer-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.vote-performer-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #dc3545;
    margin-bottom: 1rem;
}

.vote-performer-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vote-timer {
    font-size: 3rem;
    font-weight: 700;
    font-family: monospace;
}

.vote-timer.warning { color: #ffc107; }
.vote-timer.danger { color: #dc3545; animation: pulse 0.5s infinite; }

.vote-submitted {
    background: rgba(25,135,84,0.2);
    border: 2px solid #198754;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

/* TV Display */
.botb-tv-container {
    width: 1920px;
    height: 1080px;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.botb-tv-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 10;
}

.botb-tv-logo {
    height: 60px;
}

.botb-tv-join-code {
    background: rgba(220,53,69,0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.botb-tv-main {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    bottom: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.botb-tv-performer {
    text-align: center;
}

.botb-tv-performer-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #dc3545;
    margin-bottom: 2rem;
    box-shadow: 0 0 60px rgba(220,53,69,0.4);
}

.botb-tv-performer-name {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.botb-tv-performer-genre {
    font-size: 1.5rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.botb-tv-progress {
    position: absolute;
    bottom: 200px;
    left: 60px;
    right: 60px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.botb-tv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    border-radius: 4px;
    transition: width 1s linear;
}

.botb-tv-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.botb-tv-lineup {
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.botb-tv-lineup-item {
    flex-shrink: 0;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.botb-tv-lineup-item.current {
    opacity: 1;
    transform: scale(1.1);
}

.botb-tv-lineup-item.completed {
    opacity: 0.3;
}

.botb-tv-lineup-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
}

.botb-tv-lineup-item.current .botb-tv-lineup-photo {
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220,53,69,0.5);
}

.botb-tv-lineup-name {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.botb-tv-leaderboard {
    width: 400px;
    flex-shrink: 0;
}

/* Host controls */
.botb-host-container {
    min-height: 100vh;
    background: #0a0a0a;
    padding: 20px;
}

.botb-host-btn {
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 1rem;
}

.botb-host-status {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.botb-host-performer-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
}

.botb-host-performer-preview img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Judge scoring */
.judge-score-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    outline: none;
}

.judge-score-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220,53,69,0.4);
}

.judge-score-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    border: none;
}

.judge-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #dc3545;
    min-width: 60px;
    text-align: center;
}

/* Drink code verification */
.drink-code-input {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    color: #fff;
}

.drink-code-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.25);
}

.drink-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(25,135,84,0.2);
    border: 1px solid #198754;
    border-radius: 999px;
    color: #198754;
    font-weight: 600;
}

/* QR code display */
.qr-code-container {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
}

/* Performer profile page */
.performer-profile-header {
    position: relative;
    padding: 3rem 0;
}

.performer-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    opacity: 0.3;
}

.performer-profile-content {
    position: relative;
    z-index: 1;
}

.performer-profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #dc3545;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.performer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.performer-stat {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.performer-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #dc3545;
}

.performer-stat-label {
    font-size: 0.8rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Media gallery */
.performer-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.performer-media-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.performer-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.performer-media-item:hover img {
    transform: scale(1.05);
}

.performer-media-item.video::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0,0,0,0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .botb-title {
        font-size: 2rem;
    }

    .performer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .performer-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leaderboard-row {
        flex-wrap: wrap;
    }

    .leaderboard-score {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
        margin-left: 64px;
    }
}
