/* tutorial-styles.css - Estilos para modal de tutorial */

/* Botão Jogar Agora */
.play-now-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 40px;
    background: var(--search-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.play-now-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.play-now-btn:active {
    transform: translateY(0);
}

.play-now-btn i {
    font-size: 0.9rem;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

/* Modal de Tutorial */
.tutorial-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .tutorial-modal {
    transform: translateY(0) scale(1);
}

/* Header do Modal */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.modal-close:hover {
    background: var(--search-bg);
    color: var(--text-primary);
}

/* Conteúdo do Tutorial */
.tutorial-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(123, 71, 255, 0.3);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(123, 71, 255, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Display do IP */
.ip-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(123, 71, 255, 0.08);
    border: 1px solid rgba(123, 71, 255, 0.2);
    border-radius: 8px;
}

.ip-text {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-primary);
    flex: 1;
    letter-spacing: 0.5px;
}

.copy-ip-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.copy-ip-btn:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 71, 255, 0.3);
}

/* Rodapé do Tutorial */
.tutorial-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.important-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.important-note i {
    color: #ffc107;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.important-note strong {
    color: var(--text-primary);
}

.help-links {
    display: flex;
    justify-content: center;
}

.help-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #5865f2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.help-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .play-now-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .play-now-btn span {
        display: none;
    }
    
    /* Ocultar elementos desnecessários no mobile */
    .config-container {
        display: none !important;
    }
    
    .notifications-container {
        display: none !important;
    }
    
    .play-now-btn {
        display: none !important;
    }
    
    .tutorial-modal {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    .tutorial-content {
        padding: 16px;
    }
    
    .step-item {
        gap: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .ip-display {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .copy-ip-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =======================================
   TEMA CLARO - PLAY NOW / TUTORIAL
   ======================================= */

[data-theme="light"] .play-now-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .play-now-btn:hover {
    background: linear-gradient(135deg, rgba(123, 71, 255, 0.05), rgba(147, 104, 255, 0.03));
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(123, 71, 255, 0.08);
}

[data-theme="light"] .play-now-btn i {
    color: var(--accent-primary);
}

[data-theme="light"] .tutorial-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .modal-header {
    background: linear-gradient(135deg, rgba(123, 71, 255, 0.08), rgba(147, 104, 255, 0.05));
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .modal-header h3 {
    color: var(--text-primary);
}

[data-theme="light"] .modal-header h3 i {
    color: var(--accent-primary);
}

[data-theme="light"] .modal-close {
    color: var(--text-muted);
}

[data-theme="light"] .modal-close:hover {
    background: rgba(123, 71, 255, 0.1);
    color: var(--accent-primary);
}

[data-theme="light"] .step-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .step-item:hover {
    box-shadow: 0 4px 16px rgba(123, 71, 255, 0.12);
    border-color: var(--accent-primary);
}

[data-theme="light"] .step-number {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

[data-theme="light"] .step-content h4 {
    color: var(--text-primary);
}

[data-theme="light"] .step-content p {
    color: var(--text-secondary);
}

[data-theme="light"] .ip-display {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .ip-text {
    color: var(--accent-primary);
}

[data-theme="light"] .copy-ip-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .copy-ip-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

[data-theme="light"] .tutorial-footer {
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .important-note {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
}

[data-theme="light"] .important-note i {
    color: #f59e0b;
}

[data-theme="light"] .important-note strong {
    color: var(--text-primary);
}

[data-theme="light"] .help-btn {
    background: #5865f2;
}

[data-theme="light"] .help-btn:hover {
    background: #4752c4;
}