/* Best Bug/Crash Game Styles */

/* Round Info */
.bug-round-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.bug-round-info .round-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.bug-round-info .progress-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Instruction Text */
.bug-instruction {
    text-align: center;
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Match Container */
.bug-match-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
}

/* Bug Card */
.bug-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border-radius: 24px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(239, 68, 68, 0.3);
    overflow: hidden;
    width: 300px;
    max-width: 95vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bug-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.bug-card:hover {
    transform: translateY(-8px);
    border-color: #ef4444;
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.4);
}

.bug-card:hover::before {
    opacity: 1;
}

/* Clip Preview Circle */
/* Clip Preview Rectangle */
.bug-clip-preview {
    width: 100%;
    aspect-ratio: 16/9;
    /* Video formatı */
    background: #000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(239, 68, 68, 0.4);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
    /* Video taşmasın */
    margin-bottom: 1rem;
}

.bug-card:hover .bug-clip-preview {
    border-color: #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

.bug-clip-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.bug-clip-icon.large {
    font-size: 5rem;
}

.bug-clip-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ef4444;
    margin-top: 0.25rem;
}

.bug-clip-number.large {
    font-size: 2rem;
    margin-top: 0.5rem;
}

/* Name Label */
.bug-name-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    z-index: 1;
}

/* Watch Button */
.bug-watch-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    position: relative;
}

.bug-watch-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.6);
}

.bug-watch-btn .play-icon {
    font-size: 1.1rem;
}

.bug-watch-btn.winner {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    margin-top: 1rem;
}

/* Select Area */
.bug-select-area {
    margin-top: 0.5rem;
    z-index: 1;
}

.bug-card .select-hint {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.bug-card:hover .select-hint {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}

/* Card States */
.bug-card.selected {
    border-color: #22c55e !important;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.6);
    transform: scale(1.05);
}

.bug-card.selected .bug-clip-preview {
    border-color: #22c55e;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
}

.bug-card.selected .select-hint {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.bug-card.eliminated {
    opacity: 0.25;
    filter: grayscale(90%);
    transform: scale(0.9);
    pointer-events: none;
}

/* VS Divider */
.bug-vs-divider {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ef4444;
    text-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    animation: bugVsPulse 1.5s infinite;
    display: flex;
    align-items: center;
}

@keyframes bugVsPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Result Area */
.bug-result-area {
    text-align: center;
    padding: 2rem;
}

.bug-result-area h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fbbf24;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
}

.bug-winner-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bug-crown {
    font-size: 4.5rem;
    animation: crownBounce 1s ease infinite;
}

@keyframes crownBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Winner Card */
.bug-winner-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 4px solid #fbbf24;
    border-radius: 28px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.4);
}

.bug-winner-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fbbf24;
}

/* Celebrate Animation */
.bug-result-area.celebrate {
    animation: celebrateGlow 2s ease infinite;
}

@keyframes celebrateGlow {

    0%,
    100% {
        background: transparent;
    }

    50% {
        background: rgba(251, 191, 36, 0.08);
    }
}

/* Fade In Animation */
.bug-card.fade-in {
    animation: bugCardFadeIn 0.5s ease;
}

@keyframes bugCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .bug-match-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .bug-card {
        width: 100%;
        max-width: 300px;
    }

    .bug-vs-divider {
        font-size: 2rem;
        padding: 0.5rem 0;
    }

    .bug-result-area h2 {
        font-size: 2rem;
    }

    .bug-crown {
        font-size: 3.5rem;
    }

    .bug-clip-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .bug-clip-icon {
        font-size: 2.8rem;
    }

    .bug-instruction {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

@media (min-width: 769px) {
    .bug-match-container {
        flex-direction: row;
    }
}