/* ==================== SETUP SCREEN ==================== */

.setup-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.setup-container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.setup-container h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4, #ffd700);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.subtitle {
    text-align: center;
    color: #4ecdc4;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.setup-form h2,
.sessions-list h2 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #4ecdc4;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    font-size: 0.9rem;
}

.btn-primary {
    width: 100%;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.4rem;
}

.divider {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin: 30px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.sessions-list {
    margin-top: 30px;
}

#sessionsList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

#sessionsList::-webkit-scrollbar {
    width: 8px;
}

#sessionsList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#sessionsList::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.5);
    border-radius: 10px;
}

.session-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4ecdc4;
    transform: translateX(5px);
}

.session-item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.session-item-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.session-item-winner {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 5px;
}

/* ==================== GAME SCREEN ==================== */

.game-screen {
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.session-info {
    text-align: center;
    color: #4ecdc4;
    font-size: 1.1rem;
    margin-top: 5px;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ecdc4;
    transform: translateX(-5px);
}

/* ==================== BOTÃO DE VITÓRIA ==================== */

.winner-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    color: #000;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 12px 30px;
    border-radius: 50px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 10px 40px rgba(255, 215, 0, 0.5),
        inset 0 -5px 20px rgba(0, 0, 0, 0.2),
        inset 0 5px 20px rgba(255, 255, 255, 0.5);
    animation: pulseGold 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.winner-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    animation: rotate 4s linear infinite;
}

.winner-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine 3s infinite;
}

.winner-button:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow:
        0 25px 60px rgba(255, 215, 0, 0.8),
        inset 0 -5px 20px rgba(0, 0, 0, 0.2),
        inset 0 5px 20px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.winner-button:active {
    transform: translateY(-3px) scale(1.05);
}

.winner-button span {
    position: relative;
    z-index: 1;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes pulseGold {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(255, 215, 0, 0.5),
            inset 0 -5px 20px rgba(0, 0, 0, 0.2),
            inset 0 5px 20px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 15px 60px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.4),
            inset 0 -5px 20px rgba(0, 0, 0, 0.2),
            inset 0 5px 20px rgba(255, 255, 255, 0.5);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Animação de Vitória Mega */
.mega-winner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease;
}

.winner-message {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    color: #000;
    padding: 60px 80px;
    border-radius: 50px; /* Mais arredondado */
    border: 8px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 -10px 30px rgba(0, 0, 0, 0.2),
        inset 0 10px 30px rgba(255, 255, 255, 0.4),
        0 0 100px rgba(255, 215, 0, 0.8);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.winner-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    animation: rotate 6s linear infinite;
}

.winner-message h1 {
    font-size: 6rem;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    letter-spacing: 5px;
}

.winner-message p {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(20deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ==================== RESPONSIVO ==================== */

@media (max-width: 768px) {
    .setup-container {
        padding: 30px 20px;
    }

    .setup-container h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .call-button, .reset-button, .winner-button {
        width: 100%;
    }

    .winner-button {
        font-size: 1.5rem;
        padding: 20px 40px;
        border-width: 3px;
    }

    .winner-message {
        padding: 40px 30px;
        border-radius: 40px;
        border-width: 5px;
    }

    .winner-message h1 {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }

    .winner-message p {
        font-size: 1.8rem;
    }
}
