/* QUIZ MODAL - SISTEMA DE TREINAMENTO */

/* BOTÃO FLUTUANTE - DESIGN CHAMATIVO E MENOR */
.training-btn-float {
    position: fixed;
    bottom: 20px;
    left: 20px; /* ESQUERDA */
    z-index: 999999 !important;
    animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.03);
    }
}

.training-btn {
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 50%, #ffd700 100%);
    border: 3px solid #fff;
    color: #fff;
    padding: 12px 24px; /* REDUZIDO de 20px 40px */
    border-radius: 50px;
    font-size: 0.9em; /* REDUZIDO de 1.2em */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 
        0 8px 30px rgba(255, 0, 128, 0.6),
        0 0 40px rgba(255, 140, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px; /* REDUZIDO de 15px */
    font-family: 'Consolas', 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho animado */
.training-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

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

.training-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 
        0 15px 50px rgba(255, 0, 128, 0.9),
        0 0 80px rgba(255, 140, 0, 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    border-color: #ffd700;
}

.training-btn i {
    font-size: 1.3em; /* REDUZIDO de 1.5em */
    animation: iconPulse 2s infinite;
    position: relative;
    z-index: 2;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

.training-btn span {
    position: relative;
    z-index: 2;
}

/* Efeito de partículas ao redor do botão */
.training-btn::after {
    content: '✨';
    position: absolute;
    top: -20px;
    right: -15px;
    font-size: 1.5em; /* REDUZIDO de 2em */
    animation: sparkle 2s infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

/* QUIZ MODAL */
.quiz-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999999;
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease;
}

.quiz-modal-overlay.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quiz-modal {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border: 3px solid #00ffff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(0, 255, 255, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quiz-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(138, 43, 226, 0.15));
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding: 25px 30px;
    position: relative;
}

.quiz-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff4444;
    color: #ff4444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-close:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: rotate(90deg);
}

.quiz-title {
    color: #00ffff;
    font-size: 1.8em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin-bottom: 10px;
}

.quiz-subtitle {
    color: #8892b0;
    font-size: 1em;
}

.quiz-progress {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.quiz-progress-bar {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 50%, #ffd700 100%);
    height: 100%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
}

.quiz-body {
    padding: 35px 30px;
}

.quiz-question {
    display: none;
    animation: fadeInQuestion 0.5s ease;
}

.quiz-question.active {
    display: block;
}

@keyframes fadeInQuestion {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-label {
    color: #fff;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 25px;
    display: block;
    line-height: 1.5;
}

.question-number {
    color: #ff8c00;
    font-size: 0.8em;
    display: block;
    margin-bottom: 10px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-option {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 12px;
    padding: 20px 25px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-option:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: #ff8c00;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.3);
}

.quiz-option.selected {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(255, 140, 0, 0.2));
    border-color: #ff8c00;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
}

.quiz-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.quiz-footer {
    padding: 20px 30px;
    border-top: 2px solid rgba(255, 140, 0, 0.3);
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.quiz-btn {
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.quiz-btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quiz-btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quiz-btn-next {
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 100%);
    color: #fff;
    border: none;
    flex: 1;
}

.quiz-btn-next:hover {
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.5);
    transform: translateY(-2px);
}

.quiz-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .training-btn-float {
        bottom: 15px;
        left: 15px;
    }
    
    .training-btn {
        padding: 10px 20px;
        font-size: 0.75em;
        letter-spacing: 1px;
    }
    
    .training-btn i {
        font-size: 1.1em;
    }
    
    .quiz-modal {
        margin: 10px;
    }
    
    .quiz-title {
        font-size: 1.4em;
    }
    
    .question-label {
        font-size: 1.1em;
    }
    
    .quiz-option {
        padding: 15px 18px;
        font-size: 1em;
    }
    
    .quiz-footer {
        flex-direction: column;
    }
}
