/* ============================================
   ESTILOS DO SISTEMA DE CONQUISTAS
   ============================================ */

/* Notificação de conquista desbloqueada */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: -400px; /* Começa fora da tela */
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
    border: 2px solid #00FF41;
    border-radius: 10px;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    transition: right 0.5s ease;
    max-width: 350px;
}

.achievement-notification.show {
    right: 20px;
}

.achievement-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-icon {
    font-size: 3em;
    text-shadow: 0 0 20px #00FF41;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    color: #00FF41;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.achievement-name {
    color: #FFFFFF;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-description {
    color: #008F11;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.achievement-points {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1em;
}

/* Painel de conquistas */
.achievements-panel {
    background-color: #0A0A0A;
    border: 2px solid #003B00;
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

.achievements-header {
    text-align: center;
    margin-bottom: 40px;
}

.achievements-header h2 {
    font-size: 2.5em;
    color: #00FF41;
    text-shadow: 0 0 10px #00FF41;
    margin-bottom: 10px;
}

.level-indicator {
    background-color: #003B00;
    padding: 15px 30px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
}

.level-number {
    font-size: 2em;
    font-weight: bold;
    color: #00FF41;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #003B00;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FF41, #008F11);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #00FF41;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.achievement-card {
    background-color: #0F0F0F;
    border: 2px solid #003B00;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.6;
}

.achievement-card.unlocked {
    opacity: 1;
    border-color: #00FF41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.achievement-card.unlocked::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #00FF41;
    font-weight: bold;
    font-size: 1.5em;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
}

.achievement-card-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.achievement-card.unlocked .achievement-card-icon {
    text-shadow: 0 0 15px #00FF41;
}

.achievement-card-name {
    color: #00FF41;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
}

.achievement-card.unlocked .achievement-card-name {
    text-shadow: 0 0 5px #00FF41;
}

.achievement-card-description {
    color: #008F11;
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.achievement-card-points {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9em;
}

.achievement-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7em;
    color: #003B00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tooltip educativo */
.edu-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #00FF41;
    color: #00FF41;
}

.edu-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0A0A0A;
    border: 2px solid #00FF41;
    padding: 15px;
    border-radius: 5px;
    width: 300px;
    z-index: 1000;
    font-size: 0.9em;
    line-height: 1.5;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* Painel de missões */
.missions-panel {
    background-color: #0A0A0A;
    border: 2px solid #003B00;
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
}

.mission-item {
    background-color: #0F0F0F;
    border-left: 4px solid #003B00;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mission-item.completed {
    border-left-color: #00FF41;
    opacity: 0.7;
}

.mission-item.active {
    border-left-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.mission-title {
    color: #00FF41;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
}

.mission-description {
    color: #008F11;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.mission-progress {
    background-color: #003B00;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.mission-progress-fill {
    height: 100%;
    background-color: #00FF41;
    transition: width 0.3s ease;
}

.mission-reward {
    color: #FFD700;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .achievement-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Overlay e Modal do Tutorial */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.tutorial-modal {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
    border: 3px solid #00FF41;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.5);
    animation: slideIn 0.3s ease;
}

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

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #003B00;
    padding-bottom: 15px;
}

.tutorial-header h3 {
    color: #00FF41;
    font-size: 1.8em;
    margin: 0;
}

.tutorial-step {
    color: #008F11;
    font-size: 1em;
    font-weight: bold;
}

.tutorial-content h4 {
    color: #FFFFFF;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.tutorial-content p {
    color: #008F11;
    font-size: 1.1em;
    line-height: 1.6;
}

.tutorial-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #003B00;
}

.btn-tutorial-prev,
.btn-tutorial-next,
.btn-tutorial-skip,
.btn-tutorial-launch {
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    font-weight: bold;
    border: 2px solid #00FF41;
    background-color: transparent;
    color: #00FF41;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-tutorial-prev:hover,
.btn-tutorial-next:hover,
.btn-tutorial-skip:hover,
.btn-tutorial-launch:hover {
    background-color: #00FF41;
    color: #050505;
    box-shadow: 0 0 15px #00FF41;
}

.btn-tutorial-skip {
    border-color: #008F11;
    color: #008F11;
}

.btn-tutorial-skip:hover {
    background-color: #008F11;
    color: #050505;
    box-shadow: 0 0 15px #008F11;
}

.btn-tutorial-launch {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    font-size: 1.1em;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    z-index: 1000;
}

/* Highlight de elementos no tutorial */
.tutorial-highlight {
    box-shadow: 0 0 0 4px #00FF41, 0 0 30px rgba(0, 255, 65, 0.8) !important;
    animation: tutorialPulse 1.5s infinite;
    z-index: 9998;
    position: relative;
}

@keyframes tutorialPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px #00FF41, 0 0 30px rgba(0, 255, 65, 0.8);
    }
    50% {
        box-shadow: 0 0 0 8px #00FF41, 0 0 50px rgba(0, 255, 65, 1);
    }
}